diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4edc2a8 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,7 @@ +root = true + +[*] +charset = utf-8 +indent_style = spaces +indent_size = 4 +insert_final_newline = true 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 index 47e37b8..f24a04c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,48 @@ +[metadata] +name = deb-pkg-tools +author = Peter Odding +author_email = peter@peterodding.com +description = Debian packaging tools +long_description = file: README.rst +url = https://deb-pkg-tools.readthedocs.io +classifiers = + Development Status :: 5 - Production/Stable + Environment :: Console + Intended Audience :: Developers + Intended Audience :: Information Technology + Intended Audience :: System Administrators + License :: OSI Approved :: MIT License + Operating System :: POSIX :: Linux + Programming Language :: Python + Programming Language :: Python :: 2 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.4 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + Topic :: Software Development + Topic :: Software Development :: Build Tools + Topic :: Software Development :: Libraries :: Python Modules + Topic :: System :: Archiving :: Packaging + Topic :: System :: Installation/Setup + Topic :: System :: Software Distribution + Topic :: System :: Systems Administration + Topic :: Terminals + Topic :: Utilities + +[options] +packages = find: + +[options.entry_points] +console_scripts = deb-pkg-tools = deb_pkg_tools.cli:main + +[options.extras_require] +memcached = python-memcached >= 1.58 + # Enable building of universal wheels so we can publish wheel # distribution archives to PyPI (the Python package index) # that are compatible with Python 2 as well as Python 3. diff --git a/setup.py b/setup.py index f1781cf..0611413 100755 --- a/setup.py +++ b/setup.py @@ -61,46 +61,5 @@ def get_absolute_path(*args): setup(name='deb-pkg-tools', version=get_version('deb_pkg_tools', '__init__.py'), - description="Debian packaging tools", - long_description=get_contents('README.rst'), - url='https://deb-pkg-tools.readthedocs.io', - author="Peter Odding", - author_email='peter@peterodding.com', - license='MIT', - packages=find_packages(), - test_suite='deb_pkg_tools.tests', - install_requires=get_requirements('requirements.txt'), - extras_require={ - 'memcached': ['python-memcached >= 1.58'], - }, - entry_points=dict(console_scripts=[ - 'deb-pkg-tools = deb_pkg_tools.cli:main', - ]), - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Environment :: Console', - 'Intended Audience :: Developers', - 'Intended Audience :: Information Technology', - 'Intended Audience :: System Administrators', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - '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 :: Implementation :: CPython', - 'Programming Language :: Python :: Implementation :: PyPy', - 'Topic :: Software Development', - 'Topic :: Software Development :: Build Tools', - 'Topic :: Software Development :: Libraries :: Python Modules', - 'Topic :: System :: Archiving :: Packaging', - 'Topic :: System :: Installation/Setup', - 'Topic :: System :: Software Distribution', - 'Topic :: System :: Systems Administration', - 'Topic :: Terminals', - 'Topic :: Utilities', - ]) + install_requires=get_requirements('requirements.txt') +)