Skip to content

Commit 54bc5d1

Browse files
committed
Restore requirements as a list.
1 parent afb050c commit 54bc5d1

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

‎map_machine/__init__.py‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@
1111
__email__ = "me@enzet.ru"
1212
__version__ = "0.1.7"
1313

14-
from pathlib import Path
15-
16-
with Path("requirements.txt").open() as input_file:
17-
REQUIREMENTS: list[str] = [x[:-1] for x in input_file.readlines()]
14+
REQUIREMENTS: list[str] = [
15+
"CairoSVG>=2.5.0",
16+
"colour>=0.1.5",
17+
"numpy>=1.18.1",
18+
"Pillow>=8.2.0",
19+
"portolan>=1.0.1",
20+
"pycairo>=1.20.1",
21+
"pytest>=6.2.2",
22+
"PyYAML>=4.2b1",
23+
"setuptools>=51.0.0",
24+
"Shapely>=1.7.1",
25+
"svgwrite>=1.4",
26+
"urllib3>=1.25.6",
27+
]

‎tests/test_requirements.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from map_machine import REQUIREMENTS
2+
from pathlib import Path
3+
4+
5+
def test_requirements() -> None:
6+
with Path("requirements.txt").open() as requirements_file:
7+
assert [x[:-1] for x in requirements_file.readlines()] == REQUIREMENTS

0 commit comments

Comments
 (0)