From a773db18d4bf7c66e771fd03fda7f5cc3fb2477a Mon Sep 17 00:00:00 2001 From: Mobin Ghoveoud Date: Tue, 9 Dec 2025 01:12:14 +0330 Subject: [PATCH 1/4] Add .tox and jdatetime.egg-info to .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 535ff30..9be9403 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,9 @@ build *.swp .tags +.tox tags .idea/ dist +jdatetime.egg-info uv.lock \ No newline at end of file From e4a41454fda247bfc60e0d2ab29edcd559532b62 Mon Sep 17 00:00:00 2001 From: Mobin Ghoveoud Date: Tue, 9 Dec 2025 01:12:42 +0330 Subject: [PATCH 2/4] Add tox as a development dependency --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3648beb..484f840 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,4 +55,5 @@ lint.extend-select = [ [dependency-groups] dev = [ "pytest>=8.4.2", -] \ No newline at end of file + "tox>=4.30.3", +] From f47d595b83c8c5cd12ca94c6492d38cc3611d326 Mon Sep 17 00:00:00 2001 From: Mobin Ghoveoud Date: Tue, 9 Dec 2025 01:17:46 +0330 Subject: [PATCH 3/4] Add Windows environment to test CI configuration --- .github/workflows/test.yml | 16 +++++++++------- tox.ini | 4 ++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e7900e..12725a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,12 @@ on: jobs: unit-test: - runs-on: ${{ matrix.os}} + runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] - name: OS ${{ matrix.os}} - Python ${{ matrix.python-version }} + os: [ ubuntu-latest, windows-latest ] + python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ] + name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v2 - name: Setup python @@ -23,9 +23,11 @@ jobs: architecture: x64 - name: Install dependencies run: | - python -m pip install --upgrade pip - python -m pip install --upgrade tox tox-gh-actions - sudo locale-gen fa_IR + pip install --upgrade pip + pip install --upgrade tox tox-gh-actions + - name: Set locale ubuntu + if: runner.os == 'Linux' + run: sudo locale-gen fa_IR - name: Tox tests run: | tox -v diff --git a/tox.ini b/tox.ini index ed505b6..aff90b1 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,7 @@ python = [testenv] deps = - # There are some tests that need greenlet for run - py38: greenlet + # Install tzdata for support zoneinfo on Windows + tzdata; platform_system == "Windows" commands = python -m unittest discover tests -v From 39437adb01cc02908cb0a9e29625e186c9f1955d Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Tue, 9 Dec 2025 11:25:55 +0100 Subject: [PATCH 4/4] Apply suggestion from @hramezani --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 12725a4..e36b2a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,8 +11,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest, windows-latest ] - python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ] + os: [ubuntu-latest, windows-latest] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] name: OS ${{ matrix.os }} - Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v2