Convert setup.py setup(...) options to declarative setup.cfg

This commit is contained in:
dgelessus 2019-07-13 11:35:30 +02:00
parent a9a3168345
commit 9dfb33f436
2 changed files with 37 additions and 27 deletions

36
setup.cfg Normal file
View File

@ -0,0 +1,36 @@
[metadata]
name = rsrcfork
version = attr: rsrcfork.__version__
url = https://github.com/dgelessus/python-rsrcfork
author = dgelessus
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Utilities
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
license = MIT
license_file = LICENSE
description = A pure Python library for reading old Macintosh resource manager data
long_description = file: README.rst
long_description_content_type = text/x-rst
keywords =
rsrc
fork
resource
manager
macintosh
mac
macos
[options]
setup_requires =
setuptools>=39.2.0
python_requires = >=3.6
packages =
rsrcfork

View File

@ -2,30 +2,4 @@
import setuptools import setuptools
with open("README.rst", "r", encoding="utf-8") as f: setuptools.setup()
long_description = f.read()
setuptools.setup(
name="rsrcfork",
version="1.1.2",
description="A pure Python library for reading old Macintosh resource manager data",
long_description=long_description,
url="https://github.com/dgelessus/python-rsrcfork",
author="dgelessus",
license="MIT",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
],
keywords="rsrc fork resource manager macintosh mac macos",
python_requires=">=3.6",
packages=["rsrcfork"],
)