Skip to content

Commit 2604b6d

Browse files
authored
Merge pull request #1214 from hardbyte/update-ci-tools
Update workflow versions, platforms, library and tool versions + README
2 parents 1ce5614 + ab0cc7f commit 2604b6d

File tree

6 files changed

+20
-27
lines changed

6 files changed

+20
-27
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,13 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
experimental: [false]
16-
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy-3.7"]
17-
include:
18-
# Skipping Py 3.10 on Windows until windows-curses has a cp310 wheel,
19-
# see https://github.com/zephyrproject-rtos/windows-curses/issues/26
20-
- os: ubuntu-latest
21-
experimental: false
22-
python-version: "3.10"
23-
- os: macos-latest
24-
experimental: false
25-
python-version: "3.10"
16+
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8"]
17+
# Do not test on Python 3.11 pre-releases since wrapt causes problems: https://github.com/GrahamDumpleton/wrapt/issues/196
18+
# include:
19+
# Only test on a single configuration while there are just pre-releases
20+
# - os: ubuntu-latest
21+
# experimental: true
22+
# python-version: "3.11.0-alpha.3"
2623
fail-fast: false
2724
steps:
2825
- uses: actions/checkout@v2
@@ -38,15 +35,15 @@ jobs:
3835
run: |
3936
tox -e gh
4037
- name: Upload coverage to Codecov
41-
uses: codecov/codecov-action@v1
38+
uses: codecov/codecov-action@v2
4239
with:
4340
fail_ci_if_error: true
4441

4542
format:
4643
runs-on: ubuntu-latest
4744
steps:
4845
- uses: actions/checkout@v2
49-
- name: Set up Python 3.10
46+
- name: Set up Python
5047
uses: actions/setup-python@v2
5148
with:
5249
python-version: "3.10"

.github/workflows/format-code.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up Python
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: 3.9
16+
python-version: "3.10"
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
@@ -22,10 +22,7 @@ jobs:
2222
run: |
2323
black --verbose .
2424
- name: Commit Formated Code
25-
uses: EndBug/add-and-commit@v5
26-
env:
27-
# This is necessary in order to push a commit to the repo
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
uses: EndBug/add-and-commit@v7
2926
with:
3027
message: "Format code with black"
3128
# Ref https://git-scm.com/docs/git-add#_examples

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Library Version Python
5858
------------------------------ -----------
5959
2.x 2.6+, 3.4+
6060
3.x 2.7+, 3.5+
61-
4.x *(currently on develop)* 3.6+
61+
4.x *(currently on develop)* 3.7+
6262
============================== ===========
6363

6464

requirements-lint.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pylint==2.11.1
2-
black==21.10b0
3-
mypy==0.910
1+
pylint==2.12.2
2+
black==21.12b0
3+
mypy==0.931
44
mypy-extensions==0.4.3

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
classifiers=[
4545
# a list of all available ones: https://pypi.org/classifiers/
4646
"Programming Language :: Python",
47-
"Programming Language :: Python :: 3.6",
4847
"Programming Language :: Python :: 3.7",
4948
"Programming Language :: Python :: 3.8",
5049
"Programming Language :: Python :: 3.9",
@@ -73,7 +72,7 @@
7372
version=version,
7473
packages=find_packages(exclude=["test*", "doc", "scripts", "examples"]),
7574
scripts=list(filter(isfile, (join("scripts/", f) for f in listdir("scripts/")))),
76-
author="Python CAN contributors",
75+
author="python-can contributors",
7776
license="LGPL v3",
7877
package_data={
7978
"": ["README.rst", "CONTRIBUTORS.txt", "LICENSE.txt", "CHANGELOG.txt"],
@@ -82,7 +81,7 @@
8281
},
8382
# Installation
8483
# see https://www.python.org/dev/peps/pep-0345/#version-specifiers
85-
python_requires=">=3.6",
84+
python_requires=">=3.7",
8685
install_requires=[
8786
"setuptools",
8887
"wrapt~=1.10",

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
[testenv]
44
deps =
55
pytest==6.2.*,>=6.2.5
6-
pytest-timeout==2.0.1
6+
pytest-timeout==2.0.2
77
pytest-cov==3.0.0
8-
coverage==6.0.2
8+
coverage==6.2
99
codecov==2.1.12
10-
hypothesis~=6.24.0
10+
hypothesis~=6.35.0
1111
pyserial~=3.5
1212
parameterized~=0.8
1313

0 commit comments

Comments
 (0)