-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
38 lines (32 loc) · 1.15 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
from setuptools import setup
from setuptools import find_packages
with open("VERSION", "r") as f:
VERSION = f.read().strip("\n")
def read_requierments(filename):
with open(filename, "r") as f:
for line in f.readlines():
if len(line) == 0 or line[0] == "#" or "://" in line:
continue
yield line.strip()
setup(
name="sowba",
version=VERSION,
long_description=(
open("README.md").read() + "\n" + open("CHANGELOG.md").read()),
classifiers=[
"Programming Language :: Python :: 3.8",
"Topic :: Software Development :: Libraries :: Python Modules",
],
url="https://github.com/oukone/sowba",
license="Private License",
setup_requires=["pytest-runner"],
zip_safe=True,
include_package_data=True,
packages=find_packages("sowba", exclude=["integration_tests", "tests"]),
package_dir={"": "sowba"},
install_requires=[r for r in read_requierments("requirements.txt")],
# extras_require={
# "test": [r for r in read_requierments("test-requirements.txt")]
# },
entry_points={"console_scripts": ["sowba-cli = commands:cli_runner"]},
)