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

ci: use Python 3.12 #1690

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- uses: actions/setup-node@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
py: ["3.11", "3.8"]
py: ["3.12", "3.8"]
toxenv: ["py", "old_deps"]
exclude:
- os: "macos-latest"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- uses: actions/setup-node@v3
Expand All @@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
Expand All @@ -83,7 +83,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
Expand All @@ -94,7 +94,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: "pip"
cache-dependency-path: "constraints*.txt"
- run: python -m pip install -c constraints.txt tox
Expand Down
4 changes: 2 additions & 2 deletions constraints-old.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Flask-Babel==1.0.0
Flask==2.2.0
Jinja2==3.0.0
Werkzeug==2.2.0
beancount==2.3.5
beancount==2.3.6
cheroot==8.0.0
click==7.0.0
click==8.0.0
markdown2==2.3.0
simplejson==3.16.0
16 changes: 10 additions & 6 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ babel==2.13.0
# fava (pyproject.toml)
# flask-babel
# sphinx
beancount==2.3.5
beancount==2.3.6
# via fava (pyproject.toml)
beautifulsoup4==4.12.2
# via beancount
Expand Down Expand Up @@ -76,7 +76,7 @@ flask-babel==3.1.0
# via fava (pyproject.toml)
google-api-core==2.12.0
# via google-api-python-client
google-api-python-client==2.101.0
google-api-python-client==2.102.0
# via beancount
google-auth==2.23.2
# via
Expand Down Expand Up @@ -167,6 +167,8 @@ packaging==23.2
# pytest
# sphinx
# tox
pdfminer2==20151206
# via beancount
pkginfo==1.9.6
# via twine
platformdirs==3.11.0
Expand All @@ -184,7 +186,7 @@ ply==3.11
# fava (pyproject.toml)
pre-commit==3.4.0
# via fava (pyproject.toml)
protobuf==4.24.3
protobuf==4.24.4
# via
# google-api-core
# googleapis-common-protos
Expand Down Expand Up @@ -218,7 +220,7 @@ pyinstaller==6.0.0
# via fava (pyproject.toml)
pyinstaller-hooks-contrib==2023.9
# via pyinstaller
pylint==3.0.0
pylint==3.0.1
# via fava (pyproject.toml)
pyparsing==3.1.1
# via httplib2
Expand Down Expand Up @@ -260,10 +262,12 @@ rsa==4.9
# via google-auth
secretstorage==3.3.3
# via keyring
simplejson==3.19.1
simplejson==3.19.2
# via fava (pyproject.toml)
six==1.16.0
# via python-dateutil
# via
# pdfminer2
# python-dateutil
snowballstemmer==2.2.0
# via sphinx
soupsieve==2.5
Expand Down
75 changes: 36 additions & 39 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Office/Business :: Financial :: Accounting",
"Topic :: Office/Business :: Financial :: Investment",
Expand Down
16 changes: 11 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,31 @@ envlist = lint,py,old_deps
pass_env =
SNAPSHOT_UPDATE
POEDITOR_TOKEN
# use a constraints file for tox env and package deps:
set_env =
PIP_CONSTRAINT=constraints.txt
use_frozen_constraints = true
constrain_package_deps = true

[testenv:py]
extras = excel
deps =
pytest
pytest-cov
-c constraints.txt
commands =
pytest --cov=fava --cov-report=html --cov-fail-under=90 {posargs:tests}

[testenv:old_deps]
setenv =
set_env =
SNAPSHOT_IGNORE=true
PIP_CONSTRAINT=constraints-old.txt
deps =
pytest
-c constraints-old.txt
commands =
pytest {posargs:tests}

[testenv:docs]
deps =
sphinx
-c constraints.txt
commands =
python docs/generate.py
sphinx-build -b html docs build/docs
Expand All @@ -36,8 +39,10 @@ deps =
mypy
pylint
pytest
setuptools
types-setuptools
types-simplejson
-c constraints.txt
commands =
mypy src/fava tests _build_backend.py
pylint src/fava tests _build_backend.py
Expand All @@ -46,6 +51,7 @@ commands =
deps =
pyinstaller
pytest
-c constraints.txt
allowlist_externals = {toxinidir}/dist/fava
commands =
pyinstaller --clean --noconfirm contrib/pyinstaller_spec.spec
Expand Down