forked from projectatomic/atomicapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (28 loc) · 986 Bytes
/
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
#!/usr/bin/env python
import re
from setuptools import setup, find_packages
def _get_requirements(path):
try:
with open(path) as f:
packages = f.read().splitlines()
except (IOError, OSError) as ex:
raise RuntimeError("Can't open file with requirements: %s", repr(ex))
packages = (p.strip() for p in packages if not re.match("^\s*#", p))
packages = list(filter(None, packages))
return packages
def _install_requirements():
requirements = _get_requirements('requirements.txt')
return requirements
setup(name='atomicapp',
version='0.1.9',
description='A tool to install and run Nulecule apps',
author='Vaclav Pavlin',
author_email='[email protected]',
url='https://github.com/vpavlin/atomicapp-run',
license="MIT",
entry_points={
'console_scripts': ['atomicapp=atomicapp.cli.main:main'],
},
packages=find_packages(),
install_requires=['anymarkup>=0.4.1']
)