-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
executable file
·78 lines (72 loc) · 2.47 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
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
def find_version(*segments):
root = os.path.abspath(os.path.dirname(__file__))
abspath = os.path.join(root, *segments)
with open(abspath, "r") as file:
content = file.read()
match = re.search(r"^__version__ = ['\"]([^'\"]+)['\"]", content, re.MULTILINE)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string!")
setup(
author="Richard Davis",
author_email="[email protected]",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: OS Independent",
],
description="An AIOHTTP based Python REST client for the Docker Registry.",
extras_require={
"dev": [
"black",
"coveralls",
"pylint",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-docker-registry-fixtures>=1.0.0",
"pytest-docker-squid-fixtures>=1.0.0",
"twine",
"wheel",
],
"test": ["pytest-xdist"],
},
include_package_data=True,
package_data={"docker_registry_client_async": ["py.typed"]},
python_requires=">=3.8",
install_requires=[
"aiodns",
"aiofiles",
"aiohttp",
"canonicaljson",
"www_authenticate",
],
keywords="async client docker docker-registry docker-registry-client registry registry-client",
license="Apache License 2.0",
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
name="docker_registry_client_async",
packages=find_packages(),
project_urls={
"Bug Reports": "https://github.com/crashvb/docker-registry-client-async/issues",
"Source": "https://github.com/crashvb/docker-registry-client-async",
},
tests_require=[
"pytest",
"pytest-asyncio",
"pytest-docker-registry-fixtures",
"pytest-docker-squid-fixtures",
],
test_suite="tests",
url="https://github.com/crashvb/docker-registry-client-async",
version=find_version("docker_registry_client_async", "__init__.py"),
)