generated from lillekemiker/repo_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (33 loc) · 1.1 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
31
32
33
34
35
36
37
38
39
40
41
42
43
from distutils.core import setup
from pathlib import Path
import setuptools
REQUIREMENTS_PATH = Path(__file__).parent / "requirements.txt"
def load_requirements(path: Path) -> list:
with path.open() as f:
return [
line.split("#")[0].strip()
for line in f.read().split("\n")
if line.split("#")[0].strip()
]
requirements = load_requirements(REQUIREMENTS_PATH)
with open("README.md") as f:
long_description = f.read()
setup(
name="invokeai_tools",
version="1.1.0",
author="Martin Kristiansen",
author_email="[email protected]",
url="https://github.com/lillekemiker/invokeai_tools",
packages=setuptools.find_packages(exclude=["tests"]),
package_data={"": ["py.typed"]},
include_package_data=True,
description=long_description.split("\n", 1)[0],
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires=">=3.10",
)