-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (42 loc) · 1.42 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
#!/usr/bin/env python
from setuptools import setup
REQUIRES = []
def read_requirements(file):
with open(file) as f:
for line in f:
line, _, _ = line.partition('#')
line = line.strip()
if ';' in line:
requirement, _, specifier = line.partition(';')
for_specifier = EXTRAS.setdefault(':{}'.format(specifier), [])
for_specifier.append(requirement)
else:
REQUIRES.append(line)
read_requirements('requirements.txt')
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='fmo-tool',
version='0.1',
license='Apache-2.0',
description='FMO-OS configuraiton and managment tool',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/tiiuae/fmo-tool',
keywords=['fmo-os', 'fmo-tool', 'cli'],
packages=['fmotool', 'apps', 'utils'],
python_requires='>=3.7',
install_requires=REQUIRES,
entry_points={
'console_scripts': [
'fmo-tool=fmotool.__main__:main'
],
},
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'Topic :: System :: Managment',
'Natural Language :: English',
'Programming Language :: Python :: 3',
],
)