-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
60 lines (53 loc) · 1.91 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
def get_version() -> str:
"""
Return the project version without having to import the module itself as it
might not have been loaded yet.
"""
with open("transip/__init__.py") as file:
for line in file:
if line.startswith("__version__"):
return line.replace("\"", "").split()[-1]
def get_long_description() -> str:
"""
Return the full description of the project. The full description consists
of the combined README.md and CHANGELOG.md files.
"""
with open("README.md", "r") as file:
readme = file.read()
with open("CHANGELOG.md", "r") as file:
changelog = file.read()
return readme + changelog
setup(
name="python-transip",
version=get_version(),
description="Wrapper for the TransIP API",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Roald Nefs",
author_email="[email protected]",
license="LGPLv3",
url="https://github.com/roaldnefs/python-transip",
packages=find_packages(),
include_package_data=True,
install_requires=["cryptography>=3.3.1", "requests>=2.25.1"],
python_requires=">=3.6",
entry_points={},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
extras_require={},
)