代码拉取完成,页面将自动刷新
同步操作将从 dromara/domain-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- 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',
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
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。