This repository was archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (49 loc) · 1.6 KB
/
setup.py
File metadata and controls
64 lines (49 loc) · 1.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from os import path
from setuptools import setup, find_packages
cwd = path.abspath(path.dirname(__file__))
def readme():
with open("README.md", "r") as fh:
long_description = fh.read()
return long_description
def metadata():
meta = {}
with open(path.join(cwd, "yandex_cloud_client", "version.py"), "r") as fh:
exec(fh.read(), meta)
return meta
def requirements():
requirements_list = []
with open('requirements.txt') as requirements:
for install in requirements:
requirements_list.append(install.strip())
return requirements_list
metadata = metadata()
readme = readme()
packages = find_packages()
requirements = requirements()
setup(
name='yandex-cloud-client',
version=metadata.get('__version__'),
author=metadata.get('__author__'),
author_email=metadata.get('__author_email__'),
license=metadata.get('__license__'),
description=metadata.get('__description__'),
long_description=readme,
long_description_content_type="text/markdown",
platforms=["osx", "linux"],
url=metadata.get('__url__'),
keywords=['yandex cloud client', 'rest api', 'yandex cloud client'],
classifiers = [
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
],
packages=packages,
install_requires=requirements,
include_package_data=True,
python_requires='>=3.7',
zip_safe=False
)