Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tox config to test Python 3.5 to 3.8 #45

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
59 changes: 30 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
build:
python3.6:
docker:
- image: circleci/python:3.6.1
- image: python:3.6
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
# Run tests
- run:
name: run tests
command: |
. venv/bin/activate
py.test
- run: |
pip install tox
tox
python3.7:
docker:
- image: python:3.7
steps:
- checkout
- run: |
pip install tox
tox
python3.8:
docker:
- image: python:3.8
steps:
- checkout
- run: |
pip install tox
tox

workflows:
version: 2

shublang:
jobs:
- python3.6
- python3.7
- python3.8
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ six==1.12.0
unidecode==0.4.20
w3lib==1.21.0
wcwidth==0.1.7
zipp==0.6.0
zipp==0.6.0
tox
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
python_requires='>=3.6',
install_requires=[
Expand All @@ -38,4 +38,4 @@
'price-parser >= 0.3.2',
'unidecode >= 0.4.20'
]
)
)
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[tox]
envlist = py

[testenv]
commands = pytest tests/
deps =
pytest