Ai
3 Star 24 Fork 9

杰明科技/lightning

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 2.11 KB
一键复制 编辑 原始数据 按行查看 历史
import os
from setuptools import find_packages, setup
NAME = 'django-lightning'
os.chdir(os.path.dirname(os.path.abspath(__file__)))
VERSION = '1.0.3'
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',
])]
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',
]
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gitmen/lightning.git
git@gitee.com:gitmen/lightning.git
gitmen
lightning
lightning
master

搜索帮助