1 Star 0 Fork 37

xiaoma-90/domain-admin

forked from dromara/domain-admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
mouday 提交于 2022-11-05 17:24 . fix
# -*- coding: utf-8 -*-
# @Date : 2019-06-26
# @Author : Peng Shiyu
import glob
import io
import os
from setuptools import setup, find_packages
"""
## 本地测试
安装测试
python setup.py develop
python setup.py develop --uninstall
卸载
pip uninstall spideradmin -y
## 打包上传
先升级打包工具
pip install --upgrade setuptools wheel twine
打包
python setup.py sdist bdist_wheel
检查
twine check dist/*
上传pypi
twine upload dist/*
命令整合
rm -rf dist build *.egg-info \
&& python setup.py sdist bdist_wheel \
&& twine check dist/* \
&& twine upload dist/*
## 下载测试
安装测试
pip3 install -U domain-admin -i https://pypi.org/simple
打包的用的setup必须引入
参考:
https://packaging.python.org/guides/making-a-pypi-friendly-readme/
"""
# 版本号
version_file = glob.glob("*/version.py", recursive=True)[0]
with io.open(version_file, 'rb') as f:
version_var = {}
exec(f.read(), version_var)
VERSION = version_var['VERSION']
with io.open("README.md", 'r', encoding='utf-8') as f:
long_description = f.read()
with io.open("requirements/production.txt", 'r') as f:
install_requires = f.read().split(os.sep)
setup(
name='domain-admin',
version=VERSION,
description="a domain ssl cert admin",
keywords='domain ssl cert',
author='Peng Shiyu',
author_email='[email protected]',
license='MIT',
url="https://github.com/mouday/domain-admin",
long_description=long_description,
long_description_content_type='text/markdown',
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# "Programming Language :: Python :: 3",
# "Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7"
],
packages=find_packages(),
include_package_data=True,
zip_safe=True,
install_requires=install_requires
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yirenzui8/domain-admin.git
[email protected]:yirenzui8/domain-admin.git
yirenzui8
domain-admin
domain-admin
master

搜索帮助