diff --git a/ci/travis.sh b/ci/travis.sh index 7098011..5ece58f 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -54,8 +54,8 @@ fi pip install -U pip setuptools wheel if [ "$CHECK_FORMATTING" = "1" ]; then - pip install black - if ! black --check --diff setup.py exceptiongroup; then + pip install black==20.8b1 + if ! black --check --diff setup.py exceptiongroup docs; then cat <= 46.4.0", "wheel"] +build-backend = "setuptools.build_meta" + [tool.towncrier] package = "exceptiongroup" filename = "docs/source/history.rst" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..bec5674 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,31 @@ +[metadata] +name = exceptiongroup +version = attr: exceptiongroup._version.__version__ +description = A way to represent multiple things going wrong at the same time, in Python +url = https://github.com/python-trio/exceptiongroup +long_description = file: README.rst +long_description_content_type = text/x-rst +author = Nathaniel J. Smith +author_email = njs@pobox.com +license = MIT -or- Apache License 2.0 +keywords = + async + exceptions + error handling +classifiers = + License :: OSI Approved :: MIT License + License :: OSI Approved :: Apache Software License + Framework :: Trio + Framework :: AsyncIO + Operating System :: POSIX :: Linux + Operating System :: MacOS :: MacOS X + Operating System :: Microsoft :: Windows + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: Implementation :: CPython + Programming Language :: Python :: Implementation :: PyPy + Intended Audience :: Developers + +[options] +packages = find: +install_requires = trio +python_requires = >=3.5 diff --git a/setup.py b/setup.py index 9b1f6d6..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,33 +1,3 @@ -from setuptools import setup, find_packages +from setuptools import setup -exec(open("exceptiongroup/_version.py", encoding="utf-8").read()) - -LONG_DESC = open("README.rst", encoding="utf-8").read() - -setup( - name="exceptiongroup", - version=__version__, - description="A way to represent multiple things going wrong at the same time, in Python", - url="https://github.com/python-trio/exceptiongroup", - long_description=LONG_DESC, - author="Nathaniel J. Smith", - author_email="njs@pobox.com", - license="MIT -or- Apache License 2.0", - packages=find_packages(), - install_requires=["trio"], - keywords=["async", "exceptions", "error handling"], - python_requires=">=3.5", - classifiers=[ - "License :: OSI Approved :: MIT License", - "License :: OSI Approved :: Apache Software License", - "Framework :: Trio", - "Framework :: AsyncIO", - "Operating System :: POSIX :: Linux", - "Operating System :: MacOS :: MacOS X", - "Operating System :: Microsoft :: Windows", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: Implementation :: CPython", - "Programming Language :: Python :: Implementation :: PyPy", - "Intended Audience :: Developers", - ], -) +setup()