-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
66 lines (53 loc) · 1.84 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import glob
from pathlib import Path
from typing import Iterator, List
from setuptools import find_namespace_packages, setup
DESCRIPTION = "Dummy python project used to test the cc-python cookiecutter."
def long_description() -> str:
return Path("README.md").read_text()
def install_requires() -> List[str]:
return list(_requires("requirements.in"))
def tests_require() -> List[str]:
return list(_requires("requirements-dev.in"))
def _requires(reqtxt_basename: str) -> Iterator[str]:
reqtxt = Path(__file__).parent / reqtxt_basename
reqs = reqtxt.read_text().split("\n")
for req in reqs:
if not req or req.lstrip().startswith(("#", "-")):
continue
yield req
setup(
author="Bryan M Bugyi",
author_email="bryanbugyi34@gmail.com",
python_requires=">=3.7",
install_requires=install_requires(),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
description=DESCRIPTION,
entry_points={
"console_scripts": [
"bugyi.dummy = bugyi.dummy.cli:main",
]
},
scripts=glob.glob("scripts/*"),
license="MIT license",
long_description=long_description(),
long_description_content_type="text/markdown",
include_package_data=True,
name="bugyi.dummy",
package_dir={"": "src"},
packages=find_namespace_packages(where="src"),
test_suite="tests",
tests_require=tests_require(),
url="https://github.com/bbugyi200/python-dummy",
use_scm_version={"fallback_version": "0.3.3"},
zip_safe=False,
)