-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsetup.py
53 lines (45 loc) · 1.59 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
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
import os
this_dir = os.path.dirname(__file__)
readme_filename = os.path.join(this_dir, 'README.md')
requirements_filename = os.path.join(this_dir, 'requirements.txt')
def get_project_path(*args):
return os.path.abspath(os.path.join(this_dir, *args))
PACKAGE_NAME = 'xplenty'
PACKAGE_VERSION = '3.0.0'
PACKAGE_AUTHOR = 'Xplenty'
PACKAGE_AUTHOR_EMAIL = 'opensource@xplenty.com'
PACKAGE_URL = 'https://github.com/xplenty/xplenty.py'
PACKAGES = find_packages(get_project_path())
PACKAGE_LICENSE = 'MIT'
PACKAGE_DESCRIPTION = 'Xplenty API Python SDK'
PACKAGE_INCLUDE_PACKAGE_DATA = True
PACKAGE_DATA_FILES = []
PACKAGE_CLASSIFIERS = ['Programming Language :: Python :: 3']
PYTHON_REQUIRES = '==3.7.*'
with open(readme_filename) as f:
PACKAGE_LONG_DESCRIPTION = f.read()
PACKAGE_LONG_DESCRIPTION_FORMAT = "text/markdown"
with open(requirements_filename) as f:
PACKAGE_INSTALL_REQUIRES = [line[:-1] for line in f]
setup(
name=PACKAGE_NAME,
version=PACKAGE_VERSION,
author=PACKAGE_AUTHOR,
author_email=PACKAGE_AUTHOR_EMAIL,
url=PACKAGE_URL,
packages=PACKAGES,
license=PACKAGE_LICENSE,
description=PACKAGE_DESCRIPTION,
long_description=PACKAGE_LONG_DESCRIPTION,
install_requires=PACKAGE_INSTALL_REQUIRES,
include_package_data=PACKAGE_INCLUDE_PACKAGE_DATA,
long_description_content_type=PACKAGE_LONG_DESCRIPTION_FORMAT,
data_files=PACKAGE_DATA_FILES,
entry_points={},
classifiers=PACKAGE_CLASSIFIERS,
python_requires=PYTHON_REQUIRES
)