-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (41 loc) · 1.28 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
"""Setup script for ddns-manager"""
import os.path
from os import environ
from setuptools import setup, find_packages
# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))
# The text of the README file
with open(os.path.join(HERE, "README.md")) as f:
README = f.read()
# Parsing requirements files
with open(os.path.join(HERE, "requirements.txt")) as f:
REQUIREMENTS = f.read().splitlines()
# Extracting version from environment variable
VERSION = environ.get("VERSION")
if VERSION == "":
raise EnvironmentError("Invalid VERSION")
setup(
name="ddns-manager",
version=VERSION,
description="Keep your ddns up to date",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/hbontempo-br/ddns-manager",
author="hbontempo-br",
author_email="[email protected]",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
packages=find_packages(),
include_package_data=True,
install_requires=REQUIREMENTS,
entry_points={
"console_scripts": [
"ddns_manager=ddns_manager.__main__:cli",
]
},
python_requires=">=3.6",
)