Skip to content

Commit

Permalink
Drop PyPy support (#1878)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Jul 26, 2024
1 parent 8d821de commit 06019fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 36 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,6 @@ jobs:
- '3.10'
- '3.11'
- '3.12'
- 'pypy-3.9'
- 'pypy-3.10'
exclude:
- os: 'macos-latest'
python-version: '3.8'
- os: 'macos-latest'
python-version: '3.9'
- os: 'macos-latest'
python-version: 'pypy-3.9'
include:
- os: 'macos-13'
python-version: '3.8'
- os: 'macos-13'
python-version: '3.9'
- os: 'macos-13'
python-version: 'pypy-3.9'
steps:
- uses: actions/checkout@v4

Expand Down
16 changes: 6 additions & 10 deletions requirements/tests.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# Test requirements.

coverage==7.5.0; implementation_name == 'pypy'
coverage==7.6.0; implementation_name != 'pypy'
importlib-metadata==7.1.0; implementation_name == 'pypy'
importlib-metadata==8.0.0; implementation_name != 'pypy'
numpy<2.0.0; implementation_name == 'pypy' or python_version < '3.9'
numpy==2.0.0; implementation_name != 'pypy' and python_version >= '3.9'
coverage==7.6.0
importlib-metadata==8.0.0
numpy<2.0.0; python_version < '3.9'
numpy==2.0.0; python_version >= '3.9'
polib==1.2.0
pytest-cov==5.0.0
pytest-xdist==3.5.0; implementation_name == 'pypy'
pytest-xdist==3.6.1; implementation_name != 'pypy'
pytest==8.1.1; implementation_name == 'pypy'
pytest==8.2.2; implementation_name != 'pypy'
pytest-xdist==3.6.1
pytest==8.2.2
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
9 changes: 0 additions & 9 deletions tests/third_party/test_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,14 @@
# Website: https://github.com/vacanza/python-holidays
# License: MIT (see LICENSE file)

from platform import platform, python_implementation, python_version
from unittest import TestCase

import pytest

from holidays.countries.cambodia import Cambodia
from holidays.countries.thailand import Thailand
from holidays.countries.ukraine import Ukraine


class TestNumpy(TestCase):
@pytest.mark.skipif(
platform().startswith("Windows")
and python_implementation().startswith("PyPy")
and python_version().startswith("3.10"),
reason='Avoid "make: *** [Makefile:63: test] Error 5" for pypy3.10 on Windows',
)
def test_years_int_conversion(self):
import numpy as np # It seems the import causes the error mentioned above.

Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ env_list =
docs
pre-commit
python3.{12, 11, 10, 9, 8}
pypy3.{10, 9}
skip_missing_interpreters = true

[testenv]
Expand Down

0 comments on commit 06019fb

Please sign in to comment.