Skip to content

Commit

Permalink
Drop python 2, support up to 3.10 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
epsy committed Jan 24, 2022
1 parent f724048 commit e445bec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 47 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,3 @@ jobs:
uses: epsy/python-workflows/.github/workflows/python-ci.yaml@main
with:
package-folder: od.py test_od.py
python-versions: |
[
'2.7',
'pypy2',
'3.5',
'pypy3',
'3.6',
'3.7'
]
python-test-args: -m unittest2
2 changes: 1 addition & 1 deletion od.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# od -- Copyright (c) 2016 Yann Kaiser. See LICENSE.txt
# od -- Copyright (C) 2016-2022 Yann Kaiser. See LICENSE.txt

import sys
from collections import OrderedDict
Expand Down
14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@
author_email='kaiser.yann@gmail.com',
py_modules=('od', 'test_od'),
extras_require={
'test': ['unittest2', 'repeated_test'],
'test': ['repeated_test'],
},
tests_require=['unittest2', 'repeated_test'],
test_suite='unittest2.collector',
keywords=[
'OrderedDict', 'od', 'syntactic sugar',
],
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"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 :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
2 changes: 1 addition & 1 deletion test_od.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# od -- Copyright (c) 2016 Yann Kaiser. See LICENSE.txt
# od -- Copyright (C) 2016-2022 Yann Kaiser. See LICENSE.txt

from collections import OrderedDict

Expand Down
31 changes: 4 additions & 27 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
[tox]
envlist=test-{py27,pypy,py33,py34,py35,py36,py37}
envlist=test-{py39,py310}
skipsdist=true

[tox:travis]
3.5 = py35, coveralls, pyflakes
pypy3 = test-pypy3

[gh-actions]
python =
3.5: py35
pypy3: pypy3
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.10-dev: py310

[testenv]
deps=
unittest2
repeated_test
cover,coveralls: coverage
coveralls: coveralls
cover: coverage

commands=
test: {posargs:{envbindir}/unit2}
test: {posargs:python -m unittest}
cover: coverage erase
cover-all: -coverage run {posargs:-m unittest2}
cover-all: -coverage run {posargs:-m unittest}
cover: coverage html
cover-all: coverage report

[testenv:coveralls]
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
commands=
coverage run --source od.py -m unittest2
coveralls

[testenv:pyflakes]
deps=
pyflakes
Expand Down

0 comments on commit e445bec

Please sign in to comment.