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
ad043d61
Commit
ad043d61
authored
Oct 28, 2018
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feed the hobgoblins (delint).
parent
3c128c79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
setuptools/config.py
setuptools/config.py
+11
-6
No files found.
setuptools/config.py
View file @
ad043d61
...
...
@@ -110,7 +110,8 @@ def parse_configuration(
options
.
parse
()
meta
=
ConfigMetadataHandler
(
distribution
.
metadata
,
command_options
,
ignore_option_errors
,
distribution
.
package_dir
)
distribution
.
metadata
,
command_options
,
ignore_option_errors
,
distribution
.
package_dir
)
meta
.
parse
()
return
meta
,
options
...
...
@@ -458,9 +459,12 @@ class ConfigMetadataHandler(ConfigHandler):
# Be strict about versions loaded from file because it's easy to
# accidentally include newlines and other unintended content
if
isinstance
(
parse
(
version
),
LegacyVersion
):
raise
DistutilsOptionError
(
'Version loaded from %s does not comply with PEP 440: %s'
%
(
value
,
version
))
tmpl
=
(
'Version loaded from {value} does not '
'comply with PEP 440: {version}'
)
raise
DistutilsOptionError
(
tmpl
.
format
(
**
locals
()))
return
version
version
=
self
.
_parse_attr
(
value
,
self
.
package_dir
)
...
...
@@ -518,12 +522,13 @@ class ConfigOptionsHandler(ConfigHandler):
find_directives
=
[
'find:'
,
'find_namespace:'
]
trimmed_value
=
value
.
strip
()
if
not
trimmed_value
in
find_directives
:
if
trimmed_value
not
in
find_directives
:
return
self
.
_parse_list
(
value
)
findns
=
trimmed_value
==
find_directives
[
1
]
if
findns
and
not
PY3
:
raise
DistutilsOptionError
(
'find_namespace: directive is unsupported on Python < 3.3'
)
raise
DistutilsOptionError
(
'find_namespace: directive is unsupported on Python < 3.3'
)
# Read function arguments from a dedicated section.
find_kwargs
=
self
.
parse_section_packages__find
(
...
...
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