From a4e0b7b359c548451ef01f3dbbccdccdb15a10c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:42:03 -0600 Subject: [PATCH] chore: Test with Python 3.13 (#402) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 26 +++++++++++++------------- .github/workflows/constraints.txt | 3 --- pyproject.toml | 5 +++++ tox.ini | 2 +- 4 files changed, 19 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/constraints.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82ea545..f063768 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,15 @@ on: paths-ignore: - '**/README.md' +env: + FORCE_COLOR: 1 + jobs: test_tap: name: Test Tap connectivity and Configuration runs-on: ubuntu-latest - env: - PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt strategy: - fail-fast: true + fail-fast: false matrix: include: - python-version: "3.8" @@ -29,7 +30,9 @@ jobs: toxenv: py311 - python-version: "3.12" toxenv: py312 - - python-version: "3.11" + - python-version: "3.13" + toxenv: py313 + - python-version: "3.x" toxenv: deps steps: @@ -37,12 +40,9 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - architecture: x64 - - - name: Install Tox - run: | - pipx install tox - - - name: Test tap - run: | - tox -e ${{ matrix.toxenv }} + allow-prereleases: true + - uses: astral-sh/setup-uv@v3 + with: + version: ">=0.4.18" + - run: uv tool install tox + - run: uvx tox -e ${{ matrix.toxenv }} diff --git a/.github/workflows/constraints.txt b/.github/workflows/constraints.txt deleted file mode 100644 index 5ffc2ad..0000000 --- a/.github/workflows/constraints.txt +++ /dev/null @@ -1,3 +0,0 @@ -pip==24.2 -poetry==1.8.3 -poetry-dynamic-versioning==1.4.1 diff --git a/pyproject.toml b/pyproject.toml index 4c747f1..bf6f51b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,6 +87,11 @@ known_first_party = [ ] [tool.deptry.package_module_name_map] +"backports-datetime-fromisoformat" = "backports.datetime_fromisoformat" faker = "faker" pytest = "pytest" responses = "responses" + +[tool.deptry.per_rule_ignores] +DEP001 = [ "backports" ] +DEP002 = [ "backports-datetime-fromisoformat" ] diff --git a/tox.ini b/tox.ini index 3545c5e..ded8e9b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] requires = tox>=4 -env_list = py{38,39,310,311,312}, deps +env_list = py{38,39,310,311,312,313}, deps [testenv] deps =