Skip to content

Commit a1c16e5

Browse files
authored
Build python3.7 wheels. Related #14 (#26)
* Build python3.7 wheels. Related #14 Travis is still do not allow to switch on the "release" tag * require typing on python 3.7 too * remove basepython directive from tox * Call static analysis on python 3.6, force wheel for python 2.7
1 parent 5021889 commit a1c16e5

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ python:
55
- 2.7
66
- 3.4
77
- 3.5
8-
- &mainstream_python 3.6
9-
- pypy
8+
- 3.6
9+
- &mainstream_python 3.7-dev
10+
- &pypy pypy
1011
- pypy3.5
11-
- 3.7-dev
1212
install:
1313
- &upgrade_python_toolset pip install --upgrade pip setuptools wheel
1414
- pip install tox-travis
@@ -21,7 +21,7 @@ jobs:
2121
fast_finish: true
2222
include:
2323
- stage: Static analisys
24-
python: *mainstream_python
24+
python: 3.6
2525
services: skip
2626
install:
2727
- *upgrade_python_toolset
@@ -43,7 +43,7 @@ jobs:
4343
- stage: deploy
4444
# This prevents job from appearing in test plan unless commit is tagged:
4545
if: tag IS present
46-
python: *mainstream_python
46+
python: *pypy
4747
services:
4848
- docker
4949
install:
@@ -52,6 +52,7 @@ jobs:
5252
- ./tools/run_docker.sh "logwrap"
5353
before_deploy:
5454
- pip install -r build_requirements.txt
55+
- python setup.py bdist_wheel
5556
deploy:
5657
- provider: pypi
5758
# `skip_cleanup: true` is required to preserve binary wheels, built

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
six >=1.9
2-
typing >= 3.6 ; python_version < "3.7"
2+
typing >= 3.6 ; python_version < "3.8"

tools/build-wheels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
PYTHON_VERSIONS="cp34-cp34m cp35-cp35m cp36-cp36m"
2+
PYTHON_VERSIONS="cp34-cp34m cp35-cp35m cp36-cp36m cp37-cp37m"
33

44
# Avoid creation of __pycache__/*.py[c|o]
55
export PYTHONDONTWRITEBYTECODE=1

tox.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,12 @@ usedevelop = False
7979
commands = pip install ./ -vvv -U
8080

8181
[testenv:pylint]
82-
basepython = python3.6
8382
deps =
8483
pylint
8584
-r{toxinidir}/CI_REQUIREMENTS.txt
8685
commands = pylint logwrap
8786

8887
[flake8]
89-
basepython = python3.6
9088
exclude =
9189
.venv,
9290
.git,

0 commit comments

Comments
 (0)