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

Support Python 3.11 #19

Merged
merged 1 commit into from
Nov 4, 2022
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
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"

- name: Install PyPA build
run: python3 -m pip install build
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
Expand All @@ -31,19 +31,21 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
pip install tox
- name: Run tox
env:
TOX_SKIP_ENV: "^((?!py${{ matrix.py }}).)*$"
run: |
tox -e py${{ matrix.python-version }}-trytond-5.0,py${{ matrix.python-version }}-trytond-5.6,py${{ matrix.python-version }}-trytond-5.8,py${{ matrix.python-version }}-trytond-6.0,py${{ matrix.python-version }}-trytond-6.2,py${{ matrix.python-version }}-trytond-dev
tox --skip-missing-interpreters true # FIXME https://stackoverflow.com/q/70955457

lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.11"
- name: Install Tox and any other packages
run: |
python -m pip install --upgrade pip
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development :: Testing

[options]
Expand Down
2 changes: 1 addition & 1 deletion src/factory_trytond/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from trytond.transaction import Transaction


__version__ = '0.2.0'
__version__ = '1.0.0'


class TrytonOptions(factory.base.FactoryOptions):
Expand Down
13 changes: 4 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
isolated_build = True
envlist =
{py3.8,py3.9,py3.10}-trytond-{5.0,5.6,5.8,6.0,6.2,dev}
{py3.8,py3.9,py3.10,py3.11}-trytond-{5.0,6.0,dev}
linters

[testenv:.package]
Expand All @@ -12,27 +12,22 @@ extras =
tests
deps =
trytond-dev: trytond
trytond-6.2: trytond>=6.2,<6.3
trytond-6.0: trytond>=6.0,<6.1
trytond-5.8: trytond>=5.8,<5.9
trytond-5.6: trytond>=5.6,<5.7
trytond-5.0: trytond>=5.0,<5.1
trytond-6.0: trytond~=6.0.0
trytond-5.0: trytond~=5.0.0
setenv =
TESTPATH=tests
TRYTOND_DATABASE_URI=sqlite://
trytond-dev: PIP_FIND_LINKS=https://trydevpi.tryton.org/
trytond-dev: PIP_PRE=1
trytond-dev: DB_CACHE=db-cache/dev
trytond-6.2: DB_CACHE=db-cache/62
trytond-6.0: DB_CACHE=db-cache/60
trytond-5.8: DB_CACHE=db-cache/58
trytond-5.6: DB_CACHE=db-cache/56
trytond-5.0: DB_CACHE=db-cache/50
passenv =
basepython =
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
py3.11: python3.11
commands =
pytest

Expand Down