-
Notifications
You must be signed in to change notification settings - Fork 82
/
setup.py
36 lines (29 loc) · 1.28 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re, ast
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
# get version from __version__ variable in it_management/__init__.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('it_management/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
requirements = parse_requirements("requirements.txt", session="")
setup(
name='it_management',
version=version,
description='Management von IT-Bausteinen. Hierzu gehören',
author='IT-Geräte und IT-Lösungen wie Server, Rechner, Netzwerke und E-Mailserver sowie auch Backups,',
author_email='Dienstleistungsverträge, Accounts und [email protected]',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
install_requires=install_requires
#This does throw errors while updating:
#install_requires=[str(ir.req) for ir in requirements],
#dependency_links=[str(ir._link) for ir in requirements if ir._link][str(ir.req) for ir in requirements],
)