-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (27 loc) · 796 Bytes
/
setup.py
File metadata and controls
32 lines (27 loc) · 796 Bytes
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
import typing
from setuptools import setup
config: dict[str, typing.Any] = {}
with open('config.txt') as f:
for line in f.read().splitlines():
key, value = line.split('=')
config[key.strip().lower()] = value.strip()
f.close()
with open('requirements.txt') as f:
required_packages = f.read().splitlines()
f.close()
with open('README.md', 'r', encoding='utf-8') as f:
long_description = f.read()
f.close()
setup(
name=config['name'],
version=config['version'],
package_dir={'': 'src'},
install_requires=required_packages,
entry_points={
'console_scripts': [
config['cmd_name'] + ' = app.cli.start:cli',
],
},
long_description=long_description,
long_description_content_type='text/markdown',
)