Skip to content

Commit

Permalink
Support Python 3.4
Browse files Browse the repository at this point in the history
Only test latest 2.X and 3.X versions in CircleCI
  • Loading branch information
Rigas Papathanasopoulos committed Nov 14, 2018
1 parent 55cec15 commit b3c2ab1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ jobs:
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
TOX_PY27: 2.7.13
TOX_PY35: 3.5.5
TOX_PY36: 3.6.5
TOX_PY37: 3.7-dev
TOX_PY2: 2.7.13
TOX_PY3: 3.7.0
# To see the list of pre-built images that CircleCI provides for most
# common languages see
# https://circleci.com/docs/2.0/circleci-images/
Expand Down Expand Up @@ -40,11 +38,9 @@ jobs:
# This is based on your 1.0 configuration file or project settings
- run: pip -V
- run: pip install -U ipdb
- run: pyenv install -s $TOX_PY27
- run: pyenv install -s $TOX_PY35
- run: pyenv install -s $TOX_PY36
- run: pyenv install -s $TOX_PY37
- run: pyenv local $TOX_PY27 $TOX_PY35 $TOX_PY36 $TOX_PY37
- run: pyenv install -s $TOX_PY2
- run: pyenv install -s $TOX_PY3
- run: pyenv local $TOX_PY2 $TOX_PY3
# Save dependency cache
- save_cache:
key: txclient-{{ .Branch }}-{{ epoch }}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_file_content(filename):
license="GPLv2",
dependency_links=[],
setup_requires=[],
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8",
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,<3.8",
install_requires=get_file_content("requirements.txt").splitlines(),
tests_require=["mock"],
data_files=[],
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{27,35,36,37}-{vanilla,pyopenssl}
envlist = py{27,37}-{vanilla,pyopenssl}

[testenv]
deps =
Expand Down

0 comments on commit b3c2ab1

Please sign in to comment.