Skip to content

Commit

Permalink
[MAINTENANCE] Add upper bound for numpy (#9257)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyburdi committed Jan 19, 2024
1 parent 52c06f3 commit 38a239e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ marshmallow>=3.7.1,<4.0.0
mistune>=0.8.4
nbformat>=5.0
notebook>=6.4.10
numpy>=1.20.3; python_version == "3.8"
numpy>=1.21.6; python_version == "3.9"
numpy>=1.22.4; python_version >= "3.10"
numpy>=1.20.3,<2.0.0; python_version == "3.8"
numpy>=1.21.6,<2.0.0; python_version == "3.9"
numpy>=1.22.4,<2.0.0; python_version >= "3.10"
packaging
pandas>=1.1.0; python_version <= "3.8"
pandas>=1.1.3; python_version == "3.9"
Expand Down
47 changes: 39 additions & 8 deletions tests/test_packaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,13 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
)

# Polish and ratchet this number down as low as possible
assert len(sorted_packages_with_pins_or_upper_bounds) == 70
assert len(sorted_packages_with_pins_or_upper_bounds) == 73
assert sorted_packages_with_pins_or_upper_bounds == [
("requirements-dev-api-docs-test.txt", "docstring-parser", (("==", "0.15"),)),
(
"requirements-dev-api-docs-test.txt",
"docstring-parser",
(("==", "0.15"),),
),
("requirements-dev-athena.txt", "pyathena", (("<", "3"), (">=", "2.0.0"))),
("requirements-dev-contrib.txt", "adr-tools-python", (("==", "1.0.3"),)),
("requirements-dev-contrib.txt", "black", (("==", "23.10.1"),)),
Expand All @@ -205,18 +209,34 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
(("<", "0.10"), (">=", "0.9.3")),
),
("requirements-dev-sqlalchemy.txt", "ipykernel", (("<=", "6.17.1"),)),
("requirements-dev-sqlalchemy.txt", "moto", (("<", "3.0.0"), (">=", "2.0.0"))),
("requirements-dev-sqlalchemy.txt", "pyathena", (("<", "3"), (">=", "2.0.0"))),
(
"requirements-dev-sqlalchemy.txt",
"moto",
(("<", "3.0.0"), (">=", "2.0.0")),
),
(
"requirements-dev-sqlalchemy.txt",
"pyathena",
(("<", "3"), (">=", "2.0.0")),
),
("requirements-dev-sqlalchemy.txt", "snapshottest", (("==", "0.6.0"),)),
("requirements-dev-sqlalchemy.txt", "sqlalchemy", (("<", "2.0.0"),)),
("requirements-dev-sqlalchemy.txt", "sqlalchemy-dremio", (("==", "1.2.1"),)),
(
"requirements-dev-sqlalchemy.txt",
"sqlalchemy-dremio",
(("==", "1.2.1"),),
),
(
"requirements-dev-sqlalchemy.txt",
"teradatasqlalchemy",
(("==", "17.0.0.5"),),
),
("requirements-dev-sqlalchemy1.txt", "sqlalchemy", (("<", "2.0.0"),)),
("requirements-dev-teradata.txt", "teradatasqlalchemy", (("==", "17.0.0.5"),)),
(
"requirements-dev-teradata.txt",
"teradatasqlalchemy",
(("==", "17.0.0.5"),),
),
("requirements-dev-test.txt", "adr-tools-python", (("==", "1.0.3"),)),
("requirements-dev-test.txt", "black", (("==", "23.10.1"),)),
("requirements-dev-test.txt", "docstring-parser", (("==", "0.15"),)),
Expand All @@ -235,6 +255,7 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
("requirements-dev.txt", "marshmallow", (("<", "4.0.0"), (">=", "3.7.1"))),
("requirements-dev.txt", "moto", (("<", "3.0.0"), (">=", "2.0.0"))),
("requirements-dev.txt", "mypy", (("==", "1.7.1"),)),
("requirements-dev.txt", "numpy", (("<", "2.0.0"), (">=", "1.22.4"))),
("requirements-dev.txt", "pyathena", (("<", "3"), (">=", "2.0.0"))),
("requirements-dev.txt", "pypd", (("==", "1.1.0"),)),
("requirements-dev.txt", "ruamel.yaml", (("<", "0.17.18"), (">=", "0.16"))),
Expand All @@ -250,11 +271,20 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
("requirements-types.txt", "black", (("==", "23.10.1"),)),
("requirements-types.txt", "ipykernel", (("<=", "6.17.1"),)),
("requirements-types.txt", "makefun", (("<", "2"), (">=", "1.7.0"))),
("requirements-types.txt", "marshmallow", (("<", "4.0.0"), (">=", "3.7.1"))),
(
"requirements-types.txt",
"marshmallow",
(("<", "4.0.0"), (">=", "3.7.1")),
),
("requirements-types.txt", "moto", (("<", "3.0.0"), (">=", "2.0.0"))),
("requirements-types.txt", "mypy", (("==", "1.7.1"),)),
("requirements-types.txt", "numpy", (("<", "2.0.0"), (">=", "1.22.4"))),
("requirements-types.txt", "pyathena", (("<", "3"), (">=", "2.0.0"))),
("requirements-types.txt", "ruamel.yaml", (("<", "0.17.18"), (">=", "0.16"))),
(
"requirements-types.txt",
"ruamel.yaml",
(("<", "0.17.18"), (">=", "0.16")),
),
("requirements-types.txt", "ruff", (("==", "0.1.11"),)),
("requirements-types.txt", "snapshottest", (("==", "0.6.0"),)),
("requirements-types.txt", "sqlalchemy", (("<", "2.0.0"),)),
Expand All @@ -263,5 +293,6 @@ def test_polish_and_ratchet_pins_and_upper_bounds():
("requirements.txt", "altair", (("<", "5.0.0"), (">=", "4.2.1"))),
("requirements.txt", "makefun", (("<", "2"), (">=", "1.7.0"))),
("requirements.txt", "marshmallow", (("<", "4.0.0"), (">=", "3.7.1"))),
("requirements.txt", "numpy", (("<", "2.0.0"), (">=", "1.22.4"))),
("requirements.txt", "ruamel.yaml", (("<", "0.17.18"), (">=", "0.16"))),
]

0 comments on commit 38a239e

Please sign in to comment.