-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
48 lines (46 loc) · 1.49 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
44
45
46
47
48
import os, sys
from pathlib import Path
HERE = Path(os.path.realpath(__file__)).parent
sys.path = [str(p) for p in set([
HERE.joinpath("src")
]+sys.path)]
import setuptools
from starter_package.utils import USER, NAME, ENTRY_POINTS, VERSION
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
if __name__ == "__main__":
setuptools.setup(
name=NAME,
version=VERSION,
author="author 1, author 2",
author_email="[email protected]",
description="a starter package for a python based tool",
long_description=long_description,
long_description_content_type="text/markdown",
license_files = ('LICENSE',),
url=f"https://github.com/{USER}/{NAME}",
project_urls={
"Bug Tracker": f"https://github.com/{USER}/{NAME}/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
packages=setuptools.find_packages(where="src"),
package_data={
"":[ # "" is all packages
"version.txt",
],
# examples
# "package-name": ["*.txt"],
# "test_package": ["res/*.txt"],
},
entry_points={
'console_scripts': [f"{e} = {NAME}.cli:main" for e in ENTRY_POINTS],
},
python_requires=">=3.11",
install_requires=[
"packaging >=21.0",
]
)