Skip to content

Commit

Permalink
Merge pull request #60 from barisione/tests-with-3.9-and-3.10
Browse files Browse the repository at this point in the history
Drop support for Python 3.6 and add explicit support for 3.9 and 3.10
  • Loading branch information
barisione authored Jan 25, 2022
2 parents eaf6dd4 + a74a381 commit 696c952
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7, 3.8]
# Keep the version here in sync with the ones used in noxfile.py
python-version: ["3.7", "3.10"]

steps:
- uses: actions/checkout@v2
Expand All @@ -41,7 +42,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -57,7 +58,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## dev
* Strings containing escapes are now unescaped, both for messages in error records, which were previously mangled (#57), and textual records, which were previously left escaped (#58)
* Dropped support for Python 3.6 and added explicit support for Python 3.9 and 3.10.

## 0.10.0.1
* Fix bug with `time_to_check_for_additional_output_sec`, as it was not being used when passed to `GdbController`
Expand Down
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
nox.options.reuse_existing_virtualenvs = True


@nox.session(python=["3.6", "3.7", "3.8"])
# Run tests with (at least) the oldest and newest versions we support.
# If these are modified, also modify .github/workflows/tests.yml and the list of supported versions
# in setup.py.
@nox.session(python=["3.7", "3.10"])
def tests(session):
session.install(".", "pytest")
session.run("pytest", *session.posargs)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
# If modifying the list of supported versions, also update the versions pygdbmi is tested
# with, see noxfile.py and .github/workflows/tests.yml.
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: PyPy",
],
)

0 comments on commit 696c952

Please sign in to comment.