-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
53 lines (46 loc) · 1.44 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
import re
from setuptools import find_packages
from setuptools import setup
try:
README = open('README.md').read()
except IOError:
README = ''
try:
CHANGELOG = open('CHANGELOG.md').read()
except IOError:
CHANGELOG = ''
def load_reqs(filename):
with open(filename) as reqs_file:
return [
re.sub('==', '>=', line) for line in reqs_file.readlines()
if not re.match('\s*#', line)
]
requirements = load_reqs('requirements.txt')
test_requirements = load_reqs('requirements-test.txt')
setup(
name='guillotina_linkintegrity',
version='6.0.1.dev0',
description='Link integrity support for guillotina',
long_description=README + '\n\n' + CHANGELOG,
long_description_content_type='text/markdown',
install_requires=requirements,
author='Nathan Van Gheem',
author_email='[email protected]',
url='https://github.com/guillotinaweb/guillotina_linkintegrity',
packages=find_packages(exclude=['demo']),
include_package_data=True,
tests_require=test_requirements,
extras_require={
'test': test_requirements
},
classifiers=[
'License :: OSI Approved :: BSD License',
'Intended Audience :: Developers',
'Topic :: Internet :: WWW/HTTP',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Software Development :: Libraries :: Python Modules'
],
entry_points={
}
)