-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (38 loc) · 1.49 KB
/
setup.py
File metadata and controls
43 lines (38 loc) · 1.49 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
import pathlib
from setuptools import find_packages, setup
def get_version() -> str:
rel_path = "src/pxia/__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.")
with open("requirements.txt", "r", encoding="utf-8") as f:
requirements = f.read().splitlines()
setup(
name="pxia",
version=get_version(),
description="a repository for pxia models",
long_description=pathlib.Path("README.md").read_text(encoding="utf-8"),
long_description_content_type="text/markdown",
Homepage="https://github.com/not-lain/pxia",
url="https://github.com/not-lain/pxia",
Issues="https://github.com/not-lain/pxia/issues",
authors=[{"name": "hafedh hichri", "email": "hhichri60@gmail.com"}],
license="Apache 2.0 License",
package_dir={"": "src"},
packages=find_packages("src"),
include_package_data=True,
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
use_scm_version=True,
setup_requires=["setuptools_scm"],
install_requires=requirements,
)