forked from gitlabform/gitlabform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
87 lines (82 loc) · 2.72 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import codecs
import re
from setuptools import setup, find_packages
with codecs.open("README.md", encoding="utf-8") as f:
readme = f.read()
# Read version from version.py
VERSIONFILE = "version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name="gitlabform",
version=verstr,
description="🏗 Specialized configuration as a code tool for GitLab projects, groups and more"
" using hierarchical configuration written in YAML",
long_description=readme,
long_description_content_type="text/markdown",
url="https://gitlabform.github.io/gitlabform",
author="Greg Dubicki and Contributors",
keywords=["cli", "yaml", "gitlab", "configuration-as-code"],
classifiers=[
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: Software Development :: Version Control :: Git",
],
packages=find_packages(),
package_data={"": ["LICENSE", "version", "*.md", "config.yml"]},
include_package_data=True,
python_requires=">=3.8.0",
install_requires=[
"certifi==2024.2.2",
"cli-ui==0.17.2",
"ez-yaml==1.2.0",
"Jinja2==3.1.4",
"luddite==1.0.4",
"MarkupSafe==2.1.5",
"mergedeep==1.3.4",
"packaging==24.0",
"python-gitlab==4.4.0",
"requests==2.31.0",
"ruamel.yaml==0.17.21",
"types-requests==2.31.0.20240406",
"yamlpath==3.8.2",
],
extras_require={
"test": [
"coverage==7.5.1",
"cryptography==42.0.7",
"deepdiff==7.0.1",
"mypy==1.10.0",
"mypy-extensions==1.0.0",
"pre-commit==2.21.0", # not really for tests, but for development
"pytest==8.2.0",
"pytest-cov==5.0.0",
"pytest-rerunfailures==14.0",
"xkcdpass==1.19.9",
],
"docs": [
"mkdocs",
"mkdocs-material",
],
},
entry_points={
"console_scripts": [
"gitlabform=gitlabform.run:run",
],
},
)