mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-31 01:46:26 +02:00
Fix requirements.
Bug is reported by @Zero3.
This commit is contained in:
parent
431e057f9d
commit
ef53fa9229
4 changed files with 33 additions and 16 deletions
|
@ -12,3 +12,18 @@ __doc_url__ = f"{__url__}/blob/main/README.md"
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
__email__ = "me@enzet.ru"
|
__email__ = "me@enzet.ru"
|
||||||
__version__ = "0.1.3"
|
__version__ = "0.1.3"
|
||||||
|
|
||||||
|
REQUIREMENTS: list[str] = [
|
||||||
|
"CairoSVG>=2.5.0",
|
||||||
|
"colour>=0.1.5",
|
||||||
|
"numpy>=1.18.1",
|
||||||
|
"Pillow>=8.2.0",
|
||||||
|
"portolan>=1.0.1",
|
||||||
|
"pycairo",
|
||||||
|
"pytest>=6.2.2",
|
||||||
|
"PyYAML>=4.2b1",
|
||||||
|
"setuptools>=51.0.0",
|
||||||
|
"Shapely>=1.7.1",
|
||||||
|
"svgwrite>=1.4",
|
||||||
|
"urllib3>=1.25.6",
|
||||||
|
]
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
CairoSVG>=2.5.0
|
CairoSVG>=2.5.0
|
||||||
colour~=0.1.5
|
colour>=0.1.5
|
||||||
numpy>=1.18.1
|
numpy>=1.18.1
|
||||||
Pillow>=8.2.0
|
Pillow>=8.2.0
|
||||||
portolan~=1.0.1
|
portolan>=1.0.1
|
||||||
pycairo
|
pycairo
|
||||||
pytest~=6.2.2
|
pytest>=6.2.2
|
||||||
PyYAML>=4.2b1
|
PyYAML>=4.2b1
|
||||||
setuptools>=51.0.0
|
setuptools>=51.0.0
|
||||||
Shapely>=1.7.1
|
Shapely>=1.7.1
|
||||||
svgwrite~=1.4
|
svgwrite>=1.4
|
||||||
urllib3>=1.25.6
|
urllib3>=1.25.6
|
||||||
|
|
14
setup.py
14
setup.py
|
@ -11,6 +11,7 @@ from map_machine import (
|
||||||
__email__,
|
__email__,
|
||||||
__url__,
|
__url__,
|
||||||
__version__,
|
__version__,
|
||||||
|
REQUIREMENTS,
|
||||||
)
|
)
|
||||||
|
|
||||||
with Path("README.md").open() as input_file:
|
with Path("README.md").open() as input_file:
|
||||||
|
@ -50,16 +51,5 @@ setup(
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
python_requires=">=3.9",
|
python_requires=">=3.9",
|
||||||
install_requires=[
|
install_requires=REQUIREMENTS,
|
||||||
"CairoSVG>=2.5.0",
|
|
||||||
"colour>=0.1.5",
|
|
||||||
"numpy>=1.18.1",
|
|
||||||
"Pillow>=8.2.0",
|
|
||||||
"portolan>=1.0.1",
|
|
||||||
"pycairo",
|
|
||||||
"pytest>=6.2.2",
|
|
||||||
"PyYAML>=4.2b1",
|
|
||||||
"svgwrite>=1.4",
|
|
||||||
"urllib3>=1.25.6",
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
12
tests/test_requirements.py
Normal file
12
tests/test_requirements.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
from map_machine import REQUIREMENTS
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def test_requirements() -> None:
|
||||||
|
requirements: list[str]
|
||||||
|
with Path("requirements.txt").open() as requirements_file:
|
||||||
|
requirements = list(
|
||||||
|
map(lambda x: x[:-1], requirements_file.readlines())
|
||||||
|
)
|
||||||
|
|
||||||
|
assert requirements == REQUIREMENTS
|
Loading…
Add table
Add a link
Reference in a new issue