Skip to content

Convert setup.py to declarative configuration setup.cfg file #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build --sdist --wheel --outdir dist/
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
30 changes: 30 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[metadata]
name = pyshp
version = attr: shapefile.__version__
description = Pure Python read/write support for ESRI Shapefile format
long_description = file: README.md
long_description_content_type = text/markdown
author = Joel Lawhead
author_email = [email protected]
maintainer = Karim Bahgat
maintainer_email = [email protected]
url = https://github.com/GeospatialPython/pyshp
download_url = https://pypi.org/project/pyshp/
license = MIT
license_files = LICENSE.TXT
keywords = gis, geospatial, geographic, shapefile, shapefiles
classifiers =
Development Status :: 5 - Production/Stable
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Topic :: Scientific/Engineering :: GIS
Topic :: Software Development :: Libraries
Topic :: Software Development :: Libraries :: Python Modules

[options]
py_modules = shapefile
python_requires = >=2.7

[bdist_wheel]
universal=1
31 changes: 1 addition & 30 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
from setuptools import setup


def read_file(file):
with open(file, 'rb') as fh:
data = fh.read()
return data.decode('utf-8')

setup(name='pyshp',
version='2.2.0',
description='Pure Python read/write support for ESRI Shapefile format',
long_description=read_file('README.md'),
long_description_content_type='text/markdown',
author='Joel Lawhead, Karim Bahgat',
author_email='[email protected]',
url='https://github.com/GeospatialPython/pyshp',
py_modules=['shapefile'],
license='MIT',
zip_safe=False,
keywords='gis geospatial geographic shapefile shapefiles',
python_requires='>= 2.7',
classifiers=['Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'])
setup()