forked from PabloCastellano/libreborme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (48 loc) · 1.67 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
51
52
53
54
55
56
57
58
#!/usr/bin/env python
from setuptools import setup, find_packages
import libreborme
import sys
version = '20180531.dev0'
def get_install_requires():
"""
parse requirements.txt, ignore links, exclude comments
"""
requirements = []
for line in open('requirements/base.txt').readlines():
# skip to next iteration if comment or empty line
if line.startswith('#') or line == '' or line.startswith('http') or line.startswith('git'):
continue
# add line to requirements
requirements.append(line)
return requirements
if sys.version_info[0] == 3:
long_description = open('README.md', encoding='utf-8').read()
else:
long_description = open('README.md').read()
setup(
name='libreborme',
version=version,
description=libreborme.__doc__,
long_description=long_description,
author='Pablo Castellano',
author_email='[email protected]',
license='GPLv3',
url='https://github.com/PabloCastellano/libreborme',
download_url='https://github.com/PabloCastellano/libreborme/releases',
packages=find_packages(exclude=['docs', 'docs.*']),
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
],
install_requires=get_install_requires(),
scripts=['libreborme/bin/libreborme'],
test_suite='runtests.runtests',
)