-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
55 lines (49 loc) · 1.7 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
# coding: utf-8
import io
import os
import re
from setuptools import setup, find_packages
def find_version():
file_dir = os.path.dirname(__file__)
with io.open(os.path.join(file_dir, 'authing', 'version.py')) as f:
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read())
if version:
return version.group(1)
else:
raise RuntimeError("Unable to find version string.")
with io.open("README.md", "r", encoding='utf-8') as f:
long_description = f.read()
setup(
name='authing',
version=find_version(),
description="Authing SDK for Python", # 描述
long_description=long_description,
long_description_content_type="text/markdown",
keywords='authing sso AaaS IdaaS',
author='authing', # 作者
author_email='[email protected]', # 作者邮箱
maintainer='authing',
maintainer_email='[email protected]',
url='https://github.com/Authing/authing-py-sdk', # 作者链接
packages=find_packages(),
include_package_data=True,
zip_safe=False,
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'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',
],
install_requires=[
'requests',
'pyjwt'
]
)