Skip to content

Commit

Permalink
Merge pull request #21 from not-lain/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
not-lain authored Jan 21, 2025
2 parents 8b5b05d + 9109e4e commit 61d706b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
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

0 comments on commit 61d706b

Please sign in to comment.