-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
67 lines (59 loc) · 2.04 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
61
62
63
64
65
66
67
# https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py
# setup.py is the build script for setuptools.
# It tells setuptools about your package (such
# as the name and version) as well as which code files to include
import os
import re
import sys
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
package = "contentstack"
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("^__version__ = ['\"]([^'\"]+)['\"]",
init_py, re.MULTILINE).group(1)
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
long_description = readme.read()
requirements = [
'requests>=2.20.0,<3.0',
'python-dateutil'
]
setup(
title="contentstack-python",
name="Contentstack",
status="Active",
type="process",
created="09 Jun 2020",
keywords="contentstack-python",
version=get_version(package),
author="Contentstack",
author_email="[email protected], [email protected]" ,
description="Contentstack is a headless CMS with an API-first approach.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/contentstack/contentstack-python",
packages=['contentstack'],
license='MIT',
test_suite='tests',
install_requires=requirements,
include_package_data=True,
universal=1,
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
'Intended Audience :: Developers',
'Natural Language :: English',
'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',
],
python_requires='>=3.6',
zip_safe=False,
)