Skip to content

Commit 45fe4a7

Browse files
authored
Merge pull request #232 from mwtoews/setup-cfg
2 parents 5ba0e34 + 91c88a8 commit 45fe4a7

File tree

4 files changed

+35
-31
lines changed

4 files changed

+35
-31
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
python -m pip install --upgrade pip
2929
pip install build
3030
- name: Build package
31-
run: python -m build --sdist --wheel --outdir dist/
31+
run: python -m build
3232
- name: Publish package
3333
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
3434
with:

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[metadata]
2+
name = pyshp
3+
version = attr: shapefile.__version__
4+
description = Pure Python read/write support for ESRI Shapefile format
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = Joel Lawhead
8+
author_email = [email protected]
9+
maintainer = Karim Bahgat
10+
maintainer_email = [email protected]
11+
url = https://github.com/GeospatialPython/pyshp
12+
download_url = https://pypi.org/project/pyshp/
13+
license = MIT
14+
license_files = LICENSE.TXT
15+
keywords = gis, geospatial, geographic, shapefile, shapefiles
16+
classifiers =
17+
Development Status :: 5 - Production/Stable
18+
Programming Language :: Python
19+
Programming Language :: Python :: 2.7
20+
Programming Language :: Python :: 3
21+
Topic :: Scientific/Engineering :: GIS
22+
Topic :: Software Development :: Libraries
23+
Topic :: Software Development :: Libraries :: Python Modules
24+
25+
[options]
26+
py_modules = shapefile
27+
python_requires = >=2.7
28+
29+
[bdist_wheel]
30+
universal=1

setup.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,3 @@
11
from setuptools import setup
22

3-
4-
def read_file(file):
5-
with open(file, 'rb') as fh:
6-
data = fh.read()
7-
return data.decode('utf-8')
8-
9-
setup(name='pyshp',
10-
version='2.2.0',
11-
description='Pure Python read/write support for ESRI Shapefile format',
12-
long_description=read_file('README.md'),
13-
long_description_content_type='text/markdown',
14-
author='Joel Lawhead, Karim Bahgat',
15-
author_email='[email protected]',
16-
url='https://github.com/GeospatialPython/pyshp',
17-
py_modules=['shapefile'],
18-
license='MIT',
19-
zip_safe=False,
20-
keywords='gis geospatial geographic shapefile shapefiles',
21-
python_requires='>= 2.7',
22-
classifiers=['Programming Language :: Python',
23-
'Programming Language :: Python :: 2.7',
24-
'Programming Language :: Python :: 3',
25-
'Programming Language :: Python :: 3.5',
26-
'Programming Language :: Python :: 3.6',
27-
'Programming Language :: Python :: 3.7',
28-
'Programming Language :: Python :: 3.8',
29-
'Programming Language :: Python :: 3.9',
30-
'Topic :: Scientific/Engineering :: GIS',
31-
'Topic :: Software Development :: Libraries',
32-
'Topic :: Software Development :: Libraries :: Python Modules'])
3+
setup()

0 commit comments

Comments
 (0)