From dab57ea98e9d1790489d5370616c8a5a5a400891 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Fri, 4 Oct 2019 18:42:36 +0300 Subject: [PATCH] Moved the metadata into setup.cfg --- pyproject.toml | 5 +++++ setup.cfg | 25 +++++++++++++++++++++++++ setup.py | 37 +++---------------------------------- 3 files changed, 33 insertions(+), 34 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..66ddafd --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,5 @@ +[build-system] +requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..0e5019d --- /dev/null +++ b/setup.cfg @@ -0,0 +1,25 @@ +[metadata] +name = stdeb +author = Andrew Straw +author_email = strawman@astraw.com +license = MIT +description = Python to Debian source package conversion utility +url = http://github.com/astraw/stdeb +long_description = file: README.rst +long_description_content_type = text/x-rst +classifiers = + Development Status :: 5 - Production/Stable + Intended Audience :: Developers + Intended Audience :: System Administrators + License :: OSI Approved :: MIT License + Operating System :: POSIX :: Linux + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + +[options] +packages = stdeb, stdeb.command +scripts = + scripts/py2dsc + scripts/py2dsc-deb + scripts/pypi-download + scripts/pypi-install diff --git a/setup.py b/setup.py index d5308dd..7f1a176 100644 --- a/setup.py +++ b/setup.py @@ -1,35 +1,4 @@ -from distutils.core import setup -import codecs +from setuptools import setup -with codecs.open('README.rst', encoding='utf-8') as file: - long_description = file.read() - - -setup( - name='stdeb', - # Keep version in sync with stdeb/__init__.py and install section - # of README.rst. - version='0.10.0', - author='Andrew Straw', - author_email='strawman@astraw.com', - description='Python to Debian source package conversion utility', - long_description=long_description, - license='MIT', - url='http://github.com/astraw/stdeb', - packages=['stdeb', 'stdeb.command'], - scripts=[ - 'scripts/py2dsc', - 'scripts/py2dsc-deb', - 'scripts/pypi-download', - 'scripts/pypi-install', - ], - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - ], -) +if __name__ == "__main__": + setup()