-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (47 loc) · 1.73 KB
/
setup.py
File metadata and controls
53 lines (47 loc) · 1.73 KB
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
import os
from setuptools import setup
def get_requirements(r: str):
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
if os.path.exists(r):
install_reqs = parse_requirements(r, session=pkg)
return install_reqs
return []
__version__ = '0.5.0'
pkg = 'conff'
rs = [str(ir.req) for ir in get_requirements('requirements.txt')]
setup(
name=pkg,
packages=[pkg],
include_package_data=True,
version=__version__,
description='Simple config parser with evaluator library.',
long_description=open('README.rst', 'r').read(),
author='Robertus Johansyah',
author_email='kororola@gmail.com',
url='https://github.com/kororo/conff',
download_url='https://github.com/kororo/conff/tarball/' + __version__,
keywords=['config', 'parser', 'expression', 'parse', 'eval'],
test_suite='conff.test',
use_2to3=True,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Operating System :: POSIX :: BSD',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
],
python_requires='>=3.5',
install_requires=rs
)