forked from emmeowzing/gitlabci-lint-pre-commit-hook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (44 loc) · 1.54 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
# For reference ~ https://github.com/pypa/sampleproject/blob/main/setup.py
import pathlib
from setuptools import setup, find_packages
# Cf. https://github.com/dave-shawley/setupext-janitor#installation
try:
from setupext_janitor import janitor
cleanCommand = janitor.CleanCommand
except ImportError:
cleanCommand = None
cmd_classes = {}
if cleanCommand is not None:
cmd_classes['clean'] = cleanCommand
here = pathlib.Path(__file__).parent.resolve()
# Get the long description from the README file
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='pre-commit-gitlabci-lint',
version='1.2.2',
description='Validate your GitLab CI with GitLab\'s API endpoint.',
cmdclass=cmd_classes,
long_description=long_description,
long_description_content_type='text/markdown',
author='Emma Doyle',
author_email='bjd2385.linux@gmail.com',
keywords='pre-commit, GitLab, CI, continuous integration',
package_dir={'': 'src'},
packages=find_packages(where='src'),
python_requires='>=3.8, <4',
url = 'https://github.com/bjd2385/pre-commit-gitlabci-lint',
install_requires=[
'toml'
],
entry_points={
"console_scripts": ["gitlabci-lint = gitlabci_lint.validate:cli"]
},
project_urls={ # Optional
'Bug Reports': 'https://github.com/bjd2385/pre-commit-gitlabci-lint/issues',
'Source': 'https://github.com/bjd2385/pre-commit-gitlabci-lint'
},
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
]
)