forked from IBM/cp4s-car-connector-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (37 loc) · 1.35 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
import setuptools
import os
import sys
version = os.environ.get('PYPI_PACKAGE_VERSION')
repository = os.environ.get('PYPI_PACKAGE_REPOSITORY')
with open("README.md", "r") as fh:
long_description = fh.read()
#Prepare requires list
install_requires_list = set()
requirements_file = 'requirements-test.txt' if repository == 'test' else 'requirements.txt'
with open(requirements_file) as f:
lines = f.readlines()
lines = [x.strip() for x in lines]
lines = list(filter(lambda s: (not s.startswith('#')) and len(s)>0, lines))
lines = list(filter(lambda s: (not s.startswith('git+')) and len(s)>0, lines))
install_requires_list.update(lines)
install_requires_list = list(install_requires_list)
setuptools.setup(
name="car-connector-framework",
version=version,
author="IBM",
author_email="",
description="CAR service connector framework",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/IBM/cp4s-car-connector-framework",
packages=setuptools.find_packages(exclude=['tests']),
classifiers=[
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=install_requires_list,
license='Apache License 2.0',
platforms=["Any"]
)