-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (50 loc) · 1.53 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
import setuptools
import os
def get_version(init_file_path):
version_line = list(
filter(lambda l: l.startswith('VERSION'), open(init_file_path))
)[0]
# eval is required to convert from string to tuple,
# because VERSION defined in __init__.py is tuple
version_tuple = eval(version_line.split('=')[-1])
# join with dot
return ".".join(map(str, version_tuple))
# get __version__ from __init__.py
init = os.path.join(
os.path.dirname(__file__), 'paten', '__init__.py'
)
VERSION = get_version(init_file_path=init)
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="paten",
version=VERSION,
author="gsy0911",
author_email="yoshiki0911@gmail.com",
description="paten",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/gsy0911/paten",
packages=setuptools.find_packages(),
install_requires=[
"click",
"azure-functions"
],
license="MIT",
entry_points={
'console_scripts': [
'paten = paten.cli:main',
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License"
],
python_requires='>=3.7',
keywords=["azure", "azure functions"]
)