Skip to content

Commit

Permalink
update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
willyfh committed Apr 13, 2024
1 parent 577b37c commit 324f896
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pre-commit
pytest
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pillow>=10.0.0
numpy>=1.18.1
aggdraw>=1.3.11
torch>=2.0.0
16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
with file_path.open("r") as fh:
long_description = fh.read()


def _read_requirements(file: str) -> list:
file_path = Path(file)
with file_path.open("r") as fh:
reqs = fh.read()
return reqs.strip().split("\n")


setuptools.setup(
name="visualtorch",
version="0.2.3",
Expand All @@ -29,12 +37,8 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
"pillow>=10.0.0",
"numpy>=1.18.1",
"aggdraw>=1.3.11",
"torch>=2.0.0",
],
install_requires=_read_requirements("requirements.txt"),
extras_require={"dev": _read_requirements("docs/requirements.txt") + _read_requirements("dev-requirements.txt")},
python_requires=">=3.10",
license="MIT",
license_files=("LICENSE",),
Expand Down

0 comments on commit 324f896

Please sign in to comment.