Skip to content

Commit

Permalink
refactor: drop support for Python 2, drop requirement for six package
Browse files Browse the repository at this point in the history
  • Loading branch information
whtsky committed Feb 23, 2020
1 parent 184286b commit ffed35d
Show file tree
Hide file tree
Showing 22 changed files with 134 additions and 788 deletions.
36 changes: 0 additions & 36 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
version: 2
jobs:
python2.7:
docker:
- image: python:2
working_directory: ~/werobot
steps:
- checkout
- run: cat requirements.txt dev-requirements.txt tox-requirements.txt > dependency.txt
- restore_cache:
key: v1-python2-{{ checksum "dependency.txt" }}
- run:
command: |
cat dev-requirements.txt | grep tox== | xargs pip install codecov
tox -l | grep py2 | tr '\n' ',' | xargs tox -e && codecov
- save_cache:
key: v1-python2-{{ checksum "dependency.txt" }}
paths:
- .tox
python3.5:
docker:
- image: python:3.5
Expand Down Expand Up @@ -85,23 +68,6 @@ jobs:
key: v1-python3.8-{{ checksum "dependency.txt" }}
paths:
- .tox
pypy:
docker:
- image: pypy:2
working_directory: ~/werobot
steps:
- checkout
- run: cat requirements.txt dev-requirements.txt tox-requirements.txt > dependency.txt
- restore_cache:
key: v1-pypy-{{ checksum "dependency.txt" }}
- run:
command: |
cat dev-requirements.txt | grep tox== | xargs pip install codecov
tox -l | grep pypy | tr '\n' ',' | xargs tox -e && codecov
- save_cache:
key: v1-pypy-{{ checksum "dependency.txt" }}
paths:
- .tox
docs:
docker:
- image: python:3.7
Expand Down Expand Up @@ -133,11 +99,9 @@ workflows:
version: 2
test:
jobs:
- python2.7
- python3.5
- python3.6
- python3.7
- python3.8
- pypy
- docs
- lint
6 changes: 0 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ matrix:
- env:
- PYTHON_MAJOR="py36|py37"
- PYTHON_VERSION="3.6.5 3.7.0"
- env:
- PYTHON_MAJOR=py2
- PYTHON_VERSION="2.7.14"
- env:
- PYTHON_MAJOR=pypy
- PYTHON_VERSION="pypy2.7-7.2.0"
cache:
directories:
- $HOME/.pyenv
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"python.formatting.provider": "yapf",
"python.linting.pylintEnabled": false,
"python.testing.pytestEnabled": true,
"python.pythonPath": "venv/bin/python3",
"python.pythonPath": "venv\\Scripts\\python.exe",
"restructuredtext.confPath": "${workspaceFolder}/docs"
}
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
bottle
requests
six
xmltodict
xmltodict
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ def run_tests(self):
'Operating System :: POSIX',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
Expand Down
Loading

0 comments on commit ffed35d

Please sign in to comment.