forked from DoctorWebLtd/vxcube-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (47 loc) · 1.79 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from collections import OrderedDict
from setuptools import find_packages, setup
__pckg__ = "vxcube-api"
__dpckg__ = __pckg__.replace("-", "_")
__version__ = "unknown"
exec(open(__dpckg__ + "/version.py").read())
print(__pckg__ + " version: " + __version__)
def load_requirements():
print(os.getcwd())
with open(os.path.join(os.getcwd(), "requirements", "requirements.txt")) as requirements:
return requirements.read().splitlines()
def load_long_description():
with open("README.md") as f:
readme = f.read()
return readme
setup(name=__pckg__,
version=__version__,
description="Dr.Web vxCube API Client",
long_description=load_long_description(),
long_description_content_type="text/markdown",
license="Dr.Web",
author="Doctor Web",
url="https://www.drweb.com/",
packages=find_packages(),
include_package_data=True,
install_requires=load_requirements(),
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*",
project_urls=OrderedDict((("Code", "https://github.com/DoctorWebLtd/vxcube-api"),
("Issue tracker", "https://github.com/DoctorWebLtd/vxcube-api/issues"))),
classifiers=[
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
],
entry_points={
"console_scripts": [
"vxcube_client = vxcube_api.__main__:main",
],
})