1 Star 0 Fork 28

liqiuyu/python-idna

forked from src-openEuler/python-idna 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0001-Fixed-an-unknown-build-file-name-and-version.patch 2.81 KB
一键复制 编辑 原始数据 按行查看 历史
From 69e6c5fb3b54a1e12ceda3fb1c17e83c65544633 Mon Sep 17 00:00:00 2001
From: liqiuyu123 <liqiuyu@kylinos.cn>
Date: Tue, 29 Nov 2022 16:17:14 +0800
Subject: [PATCH] Fixed an unknown build file name and version
---
setup.py | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 61 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 8bf1ba9..dffa23d 100644
--- a/setup.py
+++ b/setup.py
@@ -1,2 +1,62 @@
+"""
+A library to support the Internationalised Domain Names in Applications
+(IDNA) protocol as specified in RFC 5890 et.al. This new methodology,
+known as IDNA 2008, can generate materially different results to the
+previous standard. The library can act as a drop-in replacement for
+the "encodings.idna" module.
+"""
+
+import io, sys
from setuptools import setup
-setup()
+
+
+def main():
+
+ python_version = sys.version_info[:2]
+ if python_version < (3,4):
+ raise SystemExit("Sorry, Python 3.4 or newer required")
+
+ package_data = {}
+ exec(open('idna/package_data.py').read(), package_data)
+
+ arguments = {
+ 'name': 'idna',
+ 'packages': ['idna'],
+ 'package_data': {'idna': ['py.typed']},
+ 'include_package_data': True,
+ 'version': package_data['__version__'],
+ 'description': 'Internationalized Domain Names in Applications (IDNA)',
+ 'long_description': open("README.rst", encoding="UTF-8").read(),
+ 'author': 'Kim Davies',
+ 'author_email': 'kim@cynosure.com.au',
+ 'license': 'BSD-3-Clause',
+ 'url': 'https://github.com/kjd/idna',
+ 'classifiers': [
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
+ 'Intended Audience :: System Administrators',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3 :: Only',
+ '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',
+ 'Programming Language :: Python :: Implementation :: CPython',
+ 'Programming Language :: Python :: Implementation :: PyPy',
+ 'Topic :: Internet :: Name Service (DNS)',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ 'Topic :: Utilities',
+ ],
+ 'python_requires': '>=3.5',
+ 'test_suite': 'tests',
+ }
+
+ setup(**arguments)
+
+if __name__ == '__main__':
+ main()
--
2.37.1.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liqiuyu123/python-idna.git
git@gitee.com:liqiuyu123/python-idna.git
liqiuyu123
python-idna
python-idna
master

搜索帮助