1 Star 0 Fork 30

zhangxianting/python-setuptools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bugfix-eliminate-random-order-in-metadata.patch 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
陈慧汉 提交于 2024-04-07 15:15 . back version to 68.0.0
From 99ba862948c27f8851ae2131ff36daee0195ae4a Mon Sep 17 00:00:00 2001
From: chengzihan2 <chengzihan1111@163.com>
Date: Thu, 4 Jun 2020 17:29:07 +0800
Subject: [PATCH] bugfix eliminate random order in metadata
---
setuptools/dist.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setuptools/dist.py b/setuptools/dist.py
index fb16886..86a5402 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -208,7 +208,7 @@ def write_pkg_file(self, file): # noqa: C901 # is too complex (14) # FIXME
if self.long_description_content_type:
write_field('Description-Content-Type', self.long_description_content_type)
if self.provides_extras:
- for extra in self.provides_extras:
+ for extra in sorted(self.provides_extras):
write_field('Provides-Extra', extra)
self._write_list(file, 'License-File', self.license_files or [])
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangxianting/python-setuptools.git
git@gitee.com:zhangxianting/python-setuptools.git
zhangxianting
python-setuptools
python-setuptools
master

搜索帮助