-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
30 lines (28 loc) · 1.18 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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:
for line in fp.read().splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
setup(
name="loadimg",
version=get_version(),
description="a python package for loading images",
long_description=pathlib.Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
Homepage="https://github.com/not-lain/loadimg",
url="https://github.com/not-lain/loadimg",
Issues="https://github.com/not-lain/loadimg/issues",
authors=[{"name": "hafedh hichri", "email": "[email protected]"}],
author_email="[email protected]",
license="Apache 2.0 License",
package_dir={"": "src"},
packages=find_packages("src"),
include_package_data=True,
classifiers=["Topic :: Utilities", "Programming Language :: Python :: 3.9"],
requires=["setuptools", "wheel", "typing", "pillow", "numpy", "requests"],
)