forked from git-men/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
74 lines (64 loc) · 2.13 KB
/
setup.py
File metadata and controls
74 lines (64 loc) · 2.13 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
65
66
67
68
69
70
71
72
73
74
import os
from setuptools import find_packages, setup
NAME = 'django-lightning'
os.chdir(os.path.dirname(os.path.abspath(__file__)))
VERSION = '1.1.0-rc.2'
def get_install_require_packages():
"""获取依赖的安装包"""
with open('requirements.in', 'r') as file:
return [line
for line in file.readlines() if not line.startswith('http')]
# 可能会导致 Windows 安装有问题
# with open('README.zh-CN.md', 'r') as file:
# long_description = file.read()
def get_packages(app):
"""获取包"""
return [app] + [
"{}.{}".format(app, item) for item in find_packages(app)
]
all_packages = []
[all_packages.extend(item) for item in map(get_packages, [
'api_basebone',
'bsm_config',
'lightning',
'shield',
'storage',
'puzzle'
])]
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
setup(
name=NAME,
version=VERSION,
url='https://github.com/git-men/lightning',
author='gitmen.com',
author_email='jeff@gitmen.com',
description='A Django based no-code Admin and rapid development framework',
long_description='A Django based no-code Admin and rapid development framework',
# long_description_content_type='text/markdown',
license='MIT',
packages=all_packages,
include_package_data=True,
data_files={},
install_requires=get_install_require_packages(),
dependency_links = [
"git+https://github.com/jeffkit/wechatpy/archive/v.18.13-work.zip",
],
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)