From 9e1cc26f8af9d7c042e45ce7e3aa1f6762c19078 Mon Sep 17 00:00:00 2001 From: Josep Cugat Date: Thu, 3 Oct 2019 23:35:38 +0200 Subject: [PATCH] Build and upload universal wheels to PyPI (#439) --- scripts/publish | 2 +- setup.cfg | 3 +++ test-requirements.txt | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/publish b/scripts/publish index 16cbf689..5ab9ead1 100755 --- a/scripts/publish +++ b/scripts/publish @@ -24,7 +24,7 @@ fi find ${PACKAGE} -type f -name "*.py[co]" -delete find ${PACKAGE} -type d -name __pycache__ -delete -${PREFIX}python setup.py sdist +${PREFIX}python setup.py sdist bdist_wheel ${PREFIX}twine upload dist/* ${PREFIX}mkdocs gh-deploy diff --git a/setup.cfg b/setup.cfg index 6317c8a0..9b771167 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ +[bdist_wheel] +universal = 1 + [flake8] ignore = W503, E203, B305 max-line-length = 88 diff --git a/test-requirements.txt b/test-requirements.txt index be06182e..749b3ad7 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -17,6 +17,7 @@ pytest-cov trio trustme uvicorn +wheel # https://github.com/MagicStack/uvloop/issues/266 uvloop<0.13; sys_platform != 'win32' and sys_platform != 'cygwin' and platform_python_implementation != 'pypy' -- 2.47.3