-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
47 lines (38 loc) · 1.5 KB
/
Copy pathsetup.py
File metadata and controls
47 lines (38 loc) · 1.5 KB
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
import os
import re
from setuptools import find_packages, setup
HERE = os.path.dirname(os.path.abspath(__file__))
def get_version() -> str:
contents = open(os.path.join(HERE, "netvisor_api_client", "__init__.py")).read()
pattern = r"^__version__ = \"(.*?)\"$"
return re.search(pattern, contents, re.MULTILINE).group(1)
def get_install_requires():
with open(os.path.join(HERE, "requirements.txt"), "r") as requirements_file:
return requirements_file.read().splitlines()
setup(
name="netvisor-api-client",
version=get_version(),
description=open("README.md").read(),
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Heltti Oy",
author_email="dev@heltti.fi",
url="https://github.com/Heltti/netvisor-api-client",
install_requires=get_install_requires(),
packages=find_packages(exclude=["junit", "tests"]),
package_data={"": ["LICENSE"]},
license=open("LICENSE").read(),
platforms="any",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)