From 0ba939a13f9c9c3d019db8662ed0f368199b382d Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 20 Jun 2021 13:58:17 -0400 Subject: [PATCH] chore: use setup.cfg (#457) --- setup.cfg | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 59 +---------------------------------------------------- 2 files changed, 62 insertions(+), 58 deletions(-) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..5d720982 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,61 @@ +[metadata] +name = nox +version = 2021.6.12 +description = Flexible test automation. +long_description = file: README.rst +long_description_content_type = text/x-rst +url = https://nox.thea.codes +author = Alethea Katherine Flowers +author_email = me@thea.codes +license = Apache-2.0 +license_file = LICENSE +classifiers = + Development Status :: 5 - Production/Stable + Environment :: Console + Intended Audience :: Developers + License :: OSI Approved :: Apache Software License + Operating System :: MacOS + Operating System :: Microsoft :: Windows + Operating System :: POSIX + Operating System :: Unix + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Topic :: Software Development :: Testing +keywords = testing automation tox +project_urls = + Documentation = https://nox.thea.codes + Source Code = https://github.com/theacodes/nox + Bug Tracker = https://github.com/theacodes/nox/issues + +[options] +packages = + nox +install_requires = + argcomplete>=1.9.4,<2.0 + colorlog>=2.6.1,<7.0.0 + packaging>=20.9 + py>=1.4.0,<2.0.0 + typing_extensions>=3.7.4;python_version < '3.8' + virtualenv>=14.0.0 + importlib_metadata;python_version < '3.8' +python_requires = >=3.6 +include_package_data = True +zip_safe = False + +[options.entry_points] +console_scripts = + nox = nox.__main__:main + tox-to-nox = nox.tox_to_nox:main [tox_to_nox] + +[options.extras_require] +tox_to_nox = + jinja2 + tox + +[options.package_data] +nox = py.typed diff --git a/setup.py b/setup.py index 92e3d6a1..6df7270c 100644 --- a/setup.py +++ b/setup.py @@ -12,63 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from codecs import open - from setuptools import setup -long_description = open("README.rst", "r", encoding="utf-8").read() - -setup( - name="nox", - version="2021.6.12", - description="Flexible test automation.", - long_description=long_description, - url="https://nox.thea.codes", - author="Alethea Katherine Flowers", - author_email="me@thea.codes", - license="Apache Software License", - classifiers=[ - "Development Status :: 5 - Production/Stable", - "Intended Audience :: Developers", - "License :: OSI Approved :: Apache Software License", - "Topic :: Software Development :: Testing", - "Environment :: Console", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Operating System :: POSIX", - "Operating System :: MacOS", - "Operating System :: Unix", - "Operating System :: Microsoft :: Windows", - ], - keywords="testing automation tox", - packages=["nox"], - package_data={"nox": ["py.typed"]}, - include_package_data=True, - zip_safe=False, - install_requires=[ - "argcomplete>=1.9.4,<2.0", - "colorlog>=2.6.1,<7.0.0", - "packaging>=20.9", - "py>=1.4.0,<2.0.0", - "typing_extensions>=3.7.4; python_version < '3.8'", - "virtualenv>=14.0.0", - "importlib_metadata; python_version < '3.8'", - ], - extras_require={"tox_to_nox": ["jinja2", "tox"]}, - entry_points={ - "console_scripts": [ - "nox=nox.__main__:main", - "tox-to-nox=nox.tox_to_nox:main [tox_to_nox]", - ] - }, - project_urls={ - "Documentation": "https://nox.thea.codes", - "Source Code": "https://github.com/theacodes/nox", - "Bug Tracker": "https://github.com/theacodes/nox/issues", - }, - python_requires=">=3.6", -) +setup()