forked from devolo/ssllabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
59 lines (54 loc) · 1.7 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
import shlex
from subprocess import check_call
import pkg_resources
from setuptools import find_packages, setup
from setuptools.command.develop import develop
# Create post develop command class for hooking into the python setup process
# This command will run after dependencies are installed
class PostDevelopCommand(develop):
def run(self):
try:
check_call(shlex.split("pre-commit install"))
except Exception:
print("Unable to run 'pre-commit install'")
develop.run(self)
pkg_resources.require("setuptools>=46.4.0")
setup(
name="ssllabs",
author="Markus Bong, Guido Schmitz",
author_email="[email protected], [email protected]",
description="Qualys SSL Labs API in Python",
long_description_content_type="text/markdown",
use_scm_version=True,
license="MIT",
license_files=("LICENSE.md",),
url="https://github.com/devolo/ssllabs",
packages=find_packages(exclude=("tests*",)),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=["importlib-metadata;python_version<'3.8'", "dacite", "httpx"],
extras_require={
"dev": [
"pre-commit",
],
"docs": [
"m2r2",
"pydata_sphinx_theme",
"sphinx",
],
"test": [
"asynctest;python_version<'3.8'",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-httpx",
"pytest-mock",
],
},
setup_requires=["setuptools_scm"],
cmdclass={"develop": PostDevelopCommand},
python_requires=">=3.7",
)