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

Bump minimal supported Python version to 3.9+, switch to GitHub CI #36

Merged
merged 3 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Bump minimal supported Python version to 3.9+
  • Loading branch information
dbrgn committed Dec 2, 2023
commit 04a463474b3ffb011152707d94cb9f8e6626bff6
54 changes: 19 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,60 +9,44 @@ references:

jobs:

test-3.5:
test-3.9:
docker:
- image: circleci/python:3.5
- image: circleci/python:3.9
steps: *test-steps
environment:
TOXENV: py35
TOXENV: py39

test-3.6:
test-3.10:
docker:
- image: circleci/python:3.6
- image: circleci/python:3.10
steps: *test-steps
environment:
TOXENV: py36
TOXENV: py310

test-3.7:
test-3.11:
docker:
- image: circleci/python:3.7
- image: circleci/python:3.11
steps: *test-steps
environment:
TOXENV: py37
TOXENV: py311

test-3.8:
test-pypy3.11:
docker:
- image: circleci/python:3.8.0b4
- image: pypy:3.11
steps: *test-steps
environment:
TOXENV: py38

test-pypy3.5:
docker:
- image: pypy:3.5
steps: *test-steps
environment:
TOXENV: pypy35

test-pypy3.6:
docker:
- image: pypy:3.6
steps: *test-steps
environment:
TOXENV: pypy36
TOXENV: pypy311

workflows:
version: 2

# Build on push
on_push:
jobs:
- test-3.5
- test-3.6
- test-3.7
- test-3.8
- test-pypy3.5
- test-pypy3.6
- test-3.9
- test-3.10
- test-3.11
- test-pypy3.11

# Build master every week on Monday at 04:00 am
weekly:
Expand All @@ -74,6 +58,6 @@ workflows:
only:
- master
jobs:
- test-3.5
- test-3.6
- test-3.7
- test-3.9
- test-3.10
- test-3.11
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
.coverage
.coveralls.yml
.tox
venv/
VENV/
virtual/
VIRTUAL/
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ readable argument parsing.

Relies on the public transport API by opendata.ch: http://transport.opendata.ch/

Fahrplan supports Python 3.5+.
Fahrplan supports Python 3.9+.


Installing
Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

f = open('requirements.txt', 'r')
lines = f.readlines()
requirements = [l.strip().strip('\n') for l in lines if l.strip() and not l.strip().startswith('#')]
requirements = [
line.strip().strip('\n') for line in lines
if line.strip() and not line.strip().startswith('#')
]
readme = open('README.rst').read()

setup(name='fahrplan',
Expand Down Expand Up @@ -38,10 +41,6 @@
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Internet',
'Topic :: Terminals',
],
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35, py36, py37
envlist = py39, py310, py311

[testenv]
deps =
Expand All @@ -8,7 +8,7 @@ deps =
commands = nose2 fahrplan

[testenv:cov]
basepython=python3.5
basepython=python3.11
deps=
{[testenv]deps}
cov-core
Expand Down