Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel typing pillow numpy requests
python -m pip install -e .
python -m pip install ruff pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install -e .["testing"]
- name: Lint with ruff
run: |
# Run Ruff for linting
Expand Down
16 changes: 16 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pathlib
from setuptools import find_packages, setup


def get_version() -> str:
rel_path = "src/loadimg/__init__.py"
with open(rel_path, "r") as fp:
Expand All @@ -10,6 +11,20 @@ def get_version() -> str:
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")


extras = {
"testing": [
"setuptools",
"wheel",
"typing",
"pillow",
"numpy",
"requests",
"ruff",
"pytest",
]
}

setup(
name="loadimg",
version=get_version(),
Expand All @@ -24,6 +39,7 @@ def get_version() -> str:
license="Apache 2.0 License",
package_dir={"": "src"},
packages=find_packages("src"),
extras_require=extras,
include_package_data=True,
classifiers=["Topic :: Utilities", "Programming Language :: Python :: 3.9"],
requires=["setuptools", "wheel", "typing", "pillow", "numpy", "requests"],
Expand Down
Loading