Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
50830de1
Commit
50830de1
authored
Feb 04, 2017
by
idle sign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dropped support for classifiers subsection handling in setup.cfg (see #952).
parent
3ddf493a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
21 deletions
+13
-21
docs/setuptools.txt
docs/setuptools.txt
+5
-5
setuptools/config.py
setuptools/config.py
+0
-11
setuptools/tests/test_config.py
setuptools/tests/test_config.py
+8
-5
No files found.
docs/setuptools.txt
View file @
50830de1
...
...
@@ -2302,10 +2302,10 @@ boilerplate code in some cases.
long_description = file: README.rst
keywords = one, two
license = BSD 3-Clause License
[metadata.classifiers]
Framework :: Django
Programming Language :: Python :: 3.5
classifiers =
Framework :: Django
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
[options]
zip_safe = False
...
...
@@ -2398,7 +2398,7 @@ author str
author_email author-email str
maintainer str
maintainer_email maintainer-email str
classifiers classifier file:,
section,
list-comma
classifiers classifier file:, list-comma
license file:, str
description summary file:, str
long_description long-description file:, str
...
...
setuptools/config.py
View file @
50830de1
...
...
@@ -412,17 +412,6 @@ class ConfigMetadataHandler(ConfigHandler):
'version'
:
self
.
_parse_version
,
}
def
parse_section_classifiers
(
self
,
section_options
):
"""Parses configuration file section.
:param dict section_options:
"""
classifiers
=
[]
for
begin
,
(
_
,
rest
)
in
section_options
.
items
():
classifiers
.
append
(
'%s :%s'
%
(
begin
.
title
(),
rest
))
self
[
'classifiers'
]
=
classifiers
def
_parse_version
(
self
,
value
):
"""Parses `version` option value.
...
...
setuptools/tests/test_config.py
View file @
50830de1
...
...
@@ -257,6 +257,7 @@ class TestMetadata:
def
test_classifiers
(
self
,
tmpdir
):
expected
=
set
([
'Framework :: Django'
,
'Programming Language :: Python :: 3'
,
'Programming Language :: Python :: 3.5'
,
])
...
...
@@ -269,19 +270,21 @@ class TestMetadata:
tmpdir
.
join
(
'classifiers'
).
write
(
'Framework :: Django
\
n
'
'Programming Language :: Python :: 3
\
n
'
'Programming Language :: Python :: 3.5
\
n
'
)
with
get_dist
(
tmpdir
)
as
dist
:
assert
set
(
dist
.
metadata
.
classifiers
)
==
expected
# From
section.
# From
list notation
config
.
write
(
'[metadata.classifiers]
\
n
'
'Framework :: Django
\
n
'
'Programming Language :: Python :: 3.5
\
n
'
'[metadata]
\
n
'
'classifiers =
\
n
'
' Framework :: Django
\
n
'
' Programming Language :: Python :: 3
\
n
'
' Programming Language :: Python :: 3.5
\
n
'
)
with
get_dist
(
tmpdir
)
as
dist
:
assert
set
(
dist
.
metadata
.
classifiers
)
==
expected
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment