Skip to content

Commit

Permalink
classifiers metadata name should be Classifier instead of `Classifi…
Browse files Browse the repository at this point in the history
…ers`

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
  • Loading branch information
messense committed May 31, 2021
1 parent 66b7d91 commit 099f6bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 <konstin@mailbox.org>
Expand Down

0 comments on commit 099f6bd

Please sign in to comment.