From 099f6bd3ff187126dee82b267a3d74bf74d51af3 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 30 May 2021 21:57:48 +0800 Subject: [PATCH] classifiers metadata name should be `Classifier` instead of `Classifiers` https://packaging.python.org/specifications/core-metadata/#classifier-multiple-use I've downloaded `Flask` and `requests` from PyPI, they all show `Classifier` in wheel metadata --- src/metadata.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/metadata.rs b/src/metadata.rs index 7dbe9a040..5f243d2cb 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -351,7 +351,7 @@ impl Metadata21 { add_vec("Supported-Platform", &self.supported_platform); add_vec("Platform", &self.platform); add_vec("Supported-Platform", &self.supported_platform); - add_vec("Classifiers", &self.classifiers); + add_vec("Classifier", &self.classifiers); add_vec("Requires-Dist", &self.requires_dist); add_vec("Provides-Dist", &self.provides_dist); add_vec("Obsoletes-Dist", &self.obsoletes_dist); @@ -532,7 +532,7 @@ mod test { Metadata-Version: 2.1 Name: info-project Version: 0.1.0 - Classifiers: Programming Language :: Python + Classifier: Programming Language :: Python Requires-Dist: flask~=1.1.0 Requires-Dist: toml==0.10.0 Summary: A test project @@ -591,7 +591,7 @@ mod test { Metadata-Version: 2.1 Name: info-project Version: 0.1.0 - Classifiers: Programming Language :: Python + Classifier: Programming Language :: Python Requires-Dist: flask~=1.1.0 Requires-Dist: toml==0.10.0 Summary: A test project @@ -639,7 +639,7 @@ mod test { Metadata-Version: 2.1 Name: info Version: 0.1.0 - Classifiers: Programming Language :: Python + Classifier: Programming Language :: Python Summary: A test project Home-Page: https://example.org Author: konstin