0
0
mirror of https://github.com/thegeeklab/corenetworks.git synced 2024-11-22 07:20:39 +00:00
corenetworks/setup.py

67 lines
2.2 KiB
Python
Raw Normal View History

2020-03-30 21:28:34 +00:00
#!/usr/bin/env python
2020-04-13 13:37:11 +00:00
# -*- coding: utf-8 -*-
2020-03-30 21:28:34 +00:00
"""Setup script for the package."""
import io
import os
import re
from setuptools import find_packages
from setuptools import setup
PACKAGE_NAME = "corenetworks"
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
setup(
name=get_property("__project__", PACKAGE_NAME),
description="Python API client for Domain Management Automation "
"with Core Networks https://www.core-networks.de/",
keywords="dns, automation, nameserver, corenetworks",
version=get_property("__version__", PACKAGE_NAME),
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),
long_description=get_readme(),
long_description_content_type="text/markdown",
2020-04-10 15:16:14 +00:00
packages=find_packages(exclude=["*.test", "test", "test.*"]),
2020-03-30 21:28:34 +00:00
include_package_data=True,
zip_safe=False,
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<4",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Software Development",
],
install_requires=["six", "jsonschema"],
dependency_links=[],
2020-04-10 15:16:14 +00:00
test_suite="test",
2020-03-30 21:28:34 +00:00
)