forked from aio-libs/aiohttp
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Travis CI migration and packaging improvements (aio-libs#2990)
* Opt-in to use edge Travis CI config parser * Drop outdated comment from Travis CI config * Turn env vars in Travis CI config to key-value * Move towncrier linter into its own job * Upgrade refs across repo to point to travis-ci.com * Make run_docker script saver to maintain * Announce support for Python 3.7 * Use pytest-runner in dist setup * Don't install mypy under PyPy * Don't install uvloop under 3.7 * Run pytest directly in AppVeyor CI
- Loading branch information
Showing
10 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
setuptools-git==1.2 | ||
mypy==0.600 | ||
mypy==0.600; implementation_name=="cpython" | ||
|
||
-r doc.txt | ||
-r ci-wheel.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[aliases] | ||
test = pytest | ||
|
||
[metadata] | ||
license_file = LICENSE.txt | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
DistutilsPlatformError) | ||
|
||
from setuptools import Extension, setup | ||
from setuptools.command.test import test as TestCommand | ||
|
||
|
||
if sys.version_info < (3, 5, 3): | ||
|
@@ -85,17 +84,11 @@ def read(f): | |
return (here / f).read_text('utf-8').strip() | ||
|
||
|
||
class PyTest(TestCommand): | ||
user_options = [] | ||
NEEDS_PYTEST = {'pytest', 'test'}.intersection(sys.argv) | ||
pytest_runner = ['pytest-runner'] if NEEDS_PYTEST else [] | ||
|
||
def run(self): | ||
import subprocess | ||
errno = subprocess.call([sys.executable, '-m', 'pytest', 'tests']) | ||
raise SystemExit(errno) | ||
|
||
|
||
tests_require = install_requires + ['pytest', 'gunicorn', | ||
'pytest-timeout', 'async-generator'] | ||
tests_require = ['pytest', 'gunicorn', | ||
'pytest-timeout', 'async-generator'] | ||
|
||
|
||
args = dict( | ||
|
@@ -110,6 +103,7 @@ def run(self): | |
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Development Status :: 5 - Production/Stable', | ||
'Operating System :: POSIX', | ||
'Operating System :: MacOS :: MacOS X', | ||
|
@@ -122,16 +116,28 @@ def run(self): | |
maintainer=', '.join(('Nikolay Kim <[email protected]>', | ||
'Andrew Svetlov <[email protected]>')), | ||
maintainer_email='[email protected]', | ||
url='https://github.com/aio-libs/aiohttp/', | ||
url='https://github.com/aio-libs/aiohttp', | ||
project_urls={ | ||
'Chat: Gitter': 'https://gitter.im/aio-libs/Lobby', | ||
'CI: AppVeyor': 'https://ci.appveyor.com/project/asvetlov/aiohttp', # FIXME: move under aio-libs/* slug | ||
'CI: Circle': 'https://circleci.com/gh/aio-libs/aiohttp', | ||
'CI: Shippable': 'https://app.shippable.com/github/aio-libs/aiohttp', | ||
'CI: Travis': 'https://travis-ci.com/aio-libs/aiohttp', | ||
'Coverage: codecov': 'https://codecov.io/github/aio-libs/aiohttp', | ||
'Docs: RTD': 'https://docs.aiohttp.org', | ||
'GitHub: issues': 'https://github.com/aio-libs/aiohttp/issues', | ||
'GitHub: repo': 'https://github.com/aio-libs/aiohttp', | ||
}, | ||
license='Apache 2', | ||
packages=['aiohttp'], | ||
python_requires='>=3.5.3', | ||
install_requires=install_requires, | ||
tests_require=tests_require, | ||
setup_requires=pytest_runner, | ||
include_package_data=True, | ||
ext_modules=extensions, | ||
cmdclass=dict(build_ext=ve_build_ext, | ||
test=PyTest)) | ||
cmdclass=dict(build_ext=ve_build_ext), | ||
) | ||
|
||
try: | ||
setup(**args) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters