-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 877 Bytes
/
setup.py
File metadata and controls
36 lines (32 loc) · 877 Bytes
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
import re
from setuptools import setup
with open('requirements.txt') as handle:
contents = handle.read().split('\n')
requires = []
links = []
regex = '.*#egg=(?P<package>[A-Za-z]+).*'
for content in contents:
match = re.match(regex, content)
if match:
requires.append(match.group('package'))
links.append(content.replace('-e ', ''))
else:
requires.append(content)
print('requires: {}'.format(requires))
print('links: {}'.format(links))
setup(
name='HPaccess',
version='1.0.0',
author='David',
author_email='redacted',
package_dir={
'': 'src/main/python'
},
packages=[
'HPaccess'
],
url='https://redacted',
description='A Python utility to manage the admin account password and LDAP membership of the OA and the VCM',
install_requires=requires,
dependency_links=links
)