docker-tidy/setup.py

104 lines
3.6 KiB
Python
Raw Normal View History

2020-03-01 18:42:29 +01:00
#!/usr/bin/env python
"""Setup script for the package."""
import io
import os
import re
from setuptools import find_packages
from setuptools import setup
PACKAGE_NAME = "dockertidy"
def get_property(prop, project):
current_dir = os.path.dirname(os.path.realpath(__file__))
result = re.search(
r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
open(os.path.join(current_dir, project, "__init__.py")).read(),
)
return result.group(1)
def get_readme(filename="README.md"):
this = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(this, filename), encoding="utf-8") as f:
long_description = f.read()
return long_description
2015-07-01 00:33:43 +02:00
setup(
2020-03-01 18:42:29 +01:00
name=get_property("__project__", PACKAGE_NAME),
use_scm_version={
"version_scheme": "python-simplified-semver",
"local_scheme": "no-local-version",
"fallback_version": "unknown",
},
description="Keep docker hosts tidy",
keywords="docker gc prune garbage",
author=get_property("__author__", PACKAGE_NAME),
author_email=get_property("__email__", PACKAGE_NAME),
url=get_property("__url__", PACKAGE_NAME),
license=get_property("__license__", PACKAGE_NAME),
2020-03-01 18:42:29 +01:00
long_description=get_readme(),
long_description_content_type="text/markdown",
packages=find_packages(exclude=["*.test", "test", "test.*"]),
2015-07-01 00:33:43 +02:00
include_package_data=True,
2020-03-01 18:42:29 +01:00
zip_safe=False,
python_requires=">=3.5,<4",
2020-03-01 18:42:29 +01:00
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
2020-03-01 18:42:29 +01:00
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
2020-03-01 18:42:29 +01:00
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
"Topic :: Software Development",
],
install_requires=[
2020-06-03 22:49:58 +02:00
"anyconfig==0.9.11",
"appdirs==1.4.4",
"attrs==19.3.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
2020-04-06 22:40:14 +02:00
"certifi==2020.4.5.1",
2020-03-01 18:42:29 +01:00
"chardet==3.0.4",
"colorama==0.4.3",
2020-03-15 14:50:58 +01:00
"dateparser==0.7.4",
2020-06-03 22:49:58 +02:00
"docker==4.2.1",
2020-03-01 18:42:29 +01:00
"docker-pycreds==0.4.0",
2020-06-03 22:49:58 +02:00
"environs==8.0.0",
2020-03-01 18:42:29 +01:00
"idna==2.9",
2020-04-06 22:40:14 +02:00
"importlib-metadata==1.6.0; python_version < '3.8'",
2020-03-01 18:42:29 +01:00
"ipaddress==1.0.23",
"jsonschema==3.2.0",
2020-06-03 22:49:58 +02:00
"marshmallow==3.6.1; python_version >= '3.5'",
2020-03-01 18:42:29 +01:00
"nested-lookup==0.2.21",
2020-04-11 14:50:11 +02:00
"pathspec==0.8.0",
2020-04-06 22:40:14 +02:00
"pyrsistent==0.16.0",
2020-03-01 18:42:29 +01:00
"python-dateutil==2.8.1",
2020-06-03 22:49:58 +02:00
"python-dotenv==0.13.0",
2020-03-01 18:42:29 +01:00
"python-json-logger==0.1.11",
2020-06-03 22:49:58 +02:00
"pytz==2020.1",
"regex==2020.5.14",
2020-03-01 18:42:29 +01:00
"requests==2.23.0",
"ruamel.yaml==0.16.10",
2020-06-03 22:49:58 +02:00
"ruamel.yaml.clib==0.2.0; python_version < '3.9' and platform_python_implementation == 'CPython'",
"six==1.15.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"tzlocal==2.1",
"urllib3==1.25.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
2020-03-01 18:42:29 +01:00
"websocket-client==0.57.0",
"zipp==1.2.0",
],
2020-03-01 18:42:29 +01:00
dependency_links=[],
setup_requires=["setuptools_scm"],
2020-03-01 18:42:29 +01:00
entry_points={"console_scripts": ["docker-tidy = dockertidy.__main__:main"]},
2015-07-01 00:33:43 +02:00
)