diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a707c96..30ba2aa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b8c5f64..9154802 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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 diff --git a/setup.cfg b/setup.cfg index fb7a570..84bac8c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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] diff --git a/src/factory_trytond/__init__.py b/src/factory_trytond/__init__.py index 2dd9efb..8fe0738 100644 --- a/src/factory_trytond/__init__.py +++ b/src/factory_trytond/__init__.py @@ -7,7 +7,7 @@ from trytond.transaction import Transaction -__version__ = '0.2.0' +__version__ = '1.0.0' class TrytonOptions(factory.base.FactoryOptions): diff --git a/tox.ini b/tox.ini index 66bee46..738ba4a 100644 --- a/tox.ini +++ b/tox.ini @@ -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] @@ -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