2020-03-01 17:42:29 +00: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-06-30 22:33:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
setup(
|
2020-03-01 17:42:29 +00: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="https://github.com/xoxys/docker-tidy",
|
|
|
|
license=get_property("__url__", PACKAGE_NAME),
|
|
|
|
long_description=get_readme(),
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
packages=find_packages(exclude=["*.tests", "tests", "tests.*"]),
|
2015-06-30 22:33:43 +00:00
|
|
|
include_package_data=True,
|
2020-03-01 17:42:29 +00:00
|
|
|
zip_safe=False,
|
|
|
|
python_requires=">=3.5",
|
|
|
|
classifiers=[
|
|
|
|
"Development Status :: 5 - Production/Stable",
|
|
|
|
"Environment :: Console",
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Information Technology",
|
|
|
|
"Intended Audience :: System Administrators",
|
|
|
|
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
|
|
|
|
"Natural Language :: English",
|
|
|
|
"Operating System :: POSIX",
|
|
|
|
"Programming Language :: Python :: 3 :: Only",
|
|
|
|
"Topic :: System :: Installation/Setup",
|
|
|
|
"Topic :: System :: Systems Administration",
|
|
|
|
"Topic :: Utilities",
|
|
|
|
"Topic :: Software Development",
|
|
|
|
"Topic :: Software Development :: Documentation",
|
|
|
|
],
|
2016-04-20 17:19:00 +00:00
|
|
|
install_requires=[
|
2020-03-01 17:42:29 +00:00
|
|
|
"anyconfig==0.9.10",
|
|
|
|
"appdirs==1.4.3",
|
|
|
|
"attrs==19.3.0",
|
|
|
|
"certifi==2019.11.28",
|
|
|
|
"chardet==3.0.4",
|
|
|
|
"colorama==0.4.3",
|
2020-03-15 13:50:58 +00:00
|
|
|
"dateparser==0.7.4",
|
2020-03-01 17:42:29 +00:00
|
|
|
"docker==4.2.0",
|
|
|
|
"docker-pycreds==0.4.0",
|
2020-03-05 22:51:21 +00:00
|
|
|
"environs==7.3.0",
|
2020-03-01 17:42:29 +00:00
|
|
|
"idna==2.9",
|
|
|
|
"importlib-metadata==1.5.0; python_version < '3.8'",
|
|
|
|
"ipaddress==1.0.23",
|
|
|
|
"jsonschema==3.2.0",
|
2020-03-06 07:45:32 +00:00
|
|
|
"marshmallow==3.5.1",
|
2020-03-01 17:42:29 +00:00
|
|
|
"nested-lookup==0.2.21",
|
|
|
|
"pathspec==0.7.0",
|
|
|
|
"pyrsistent==0.15.7",
|
|
|
|
"python-dateutil==2.8.1",
|
|
|
|
"python-dotenv==0.12.0",
|
|
|
|
"python-json-logger==0.1.11",
|
2020-03-15 13:50:58 +00:00
|
|
|
"pytz==2019.3",
|
|
|
|
"regex==2020.2.20",
|
2020-03-01 17:42:29 +00:00
|
|
|
"requests==2.23.0",
|
|
|
|
"ruamel.yaml==0.16.10",
|
|
|
|
"ruamel.yaml.clib==0.2.0; platform_python_implementation == 'CPython' and python_version < '3.9'",
|
|
|
|
"six==1.14.0",
|
2020-03-15 13:50:58 +00:00
|
|
|
"tzlocal==2.0.0",
|
2020-03-01 17:42:29 +00:00
|
|
|
"urllib3==1.25.8",
|
|
|
|
"websocket-client==0.57.0",
|
2020-03-07 13:40:52 +00:00
|
|
|
"zipp==1.2.0",
|
2016-04-20 17:19:00 +00:00
|
|
|
],
|
2020-03-01 17:42:29 +00:00
|
|
|
dependency_links=[],
|
2020-03-07 13:31:26 +00:00
|
|
|
setup_requires=["setuptools_scm"],
|
2020-03-01 17:42:29 +00:00
|
|
|
entry_points={"console_scripts": ["docker-tidy = dockertidy.__main__:main"]},
|
|
|
|
test_suite="tests",
|
2015-06-30 22:33:43 +00:00
|
|
|
)
|