-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
54 lines (46 loc) · 1.87 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
def clean_requirements(requirements):
return [req for req in requirements if not req.startswith("-r")]
with open("README.md", "r") as readme_file:
readme = readme_file.read()
with open("requirements.txt", "r") as reqs_file:
requirements = reqs_file.readlines()
requirements = clean_requirements(requirements)
with open("test-requirements.txt", "r") as test_reqs_file:
test_requirements = test_reqs_file.readlines()
test_requirements = clean_requirements(test_requirements)
setup(
name="gitlab-configuration-as-code",
use_scm_version=True,
setup_requires=["setuptools_scm"],
description="Manage GitLab configuration as code",
long_description_content_type="text/markdown",
long_description=readme,
author="Mateusz Filipowicz",
author_email="[email protected]",
license="Apache-2.0",
url="https://github.com/Roche/gitlab-configuration-as-code",
keywords=["gitlab", "configuration-as-code"],
packages=find_packages(),
install_requires=requirements,
tests_require=test_requirements,
entry_points={"console_scripts": ["gcasc = gcasc.bin.gcasc:main"]},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)