-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to Python v3.9+ * Upgrade to websockets v10 for compatibility with Python v3.10 * Upgrade mypy & update old type annotations * Update CI
- Loading branch information
Showing
8 changed files
with
390 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8] | ||
python-version: [3.9, 3.10] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
|
@@ -30,7 +30,7 @@ jobs: | |
- name: Run Mypy | ||
run: make mypy | ||
- name: Run Pytype | ||
if: ${{ matrix.python-version != 3.8 && matrix.os == 'ubuntu-latest' }} | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: make pytype | ||
- name: Run tests | ||
run: make test | ||
|
@@ -45,7 +45,7 @@ jobs: | |
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
python-version: 3.9 | ||
- name: Run image | ||
uses: abatilo/[email protected] | ||
- name: Install deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
check: mypy pytype test | ||
check: mypy test | ||
|
||
mypy: | ||
poetry run mypy gsc tests | ||
|
||
pytype: | ||
poetry run pytype gsc tests | ||
|
||
test: | ||
poetry run pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "2.0.3" | ||
__version__ = "3.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "gsc" | ||
version = "2.0.3" | ||
version = "3.0.0" | ||
description = "Git for Scientists practical exercise helper." | ||
authors = ["Daniel Tipping <[email protected]>"] | ||
license = "GPL-3.0-only" | ||
|
@@ -9,20 +9,23 @@ homepage = "https://www.gitscientist.com" | |
repository = "https://github.com/git-scientist/gsc" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6.1" | ||
python = "^3.9" | ||
typer = "^0.1.1" | ||
asyncio = "^3.4.3" | ||
websockets = "^8.1" | ||
websockets = "^10" | ||
requests = "^2.24.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^5.2" | ||
mypy = "^0.770" | ||
pytest = "^7.4" | ||
mypy = "^1.8" | ||
pytype = {version = "^2020.4.1", python = ">=3.6,<3.8"} | ||
|
||
[tool.poetry.scripts] | ||
gsc = "gsc.cli:main" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
types-requests = "^2.31.0.20240106" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters