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
cb9b8793
Commit
cb9b8793
authored
Mar 17, 2018
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into HEAD
parents
d8170d79
02569098
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
CHANGES.rst
CHANGES.rst
+6
-0
setup.cfg
setup.cfg
+1
-1
setup.py
setup.py
+1
-1
setuptools/dist.py
setuptools/dist.py
+3
-1
setuptools/tests/test_egg_info.py
setuptools/tests/test_egg_info.py
+17
-0
No files found.
CHANGES.rst
View file @
cb9b8793
v38
.6.1
-------
*
#
1292
:
Avoid
generating
``
Provides
-
Extra
``
in
metadata
when
no
extra
is
present
(
but
environment
markers
are
).
v38
.6.0
-------
...
...
setup.cfg
View file @
cb9b8793
[bumpversion]
current_version = 38.6.
0
current_version = 38.6.
1
commit = True
tag = True
...
...
setup.py
View file @
cb9b8793
...
...
@@ -89,7 +89,7 @@ def pypi_link(pkg_filename):
setup_params
=
dict
(
name
=
"setuptools"
,
version
=
"38.6.
0
"
,
version
=
"38.6.
1
"
,
description
=
"Easily download, build, install, upgrade, and uninstall "
"Python packages"
,
author
=
"Python Packaging Authority"
,
...
...
setuptools/dist.py
View file @
cb9b8793
...
...
@@ -413,7 +413,9 @@ class Distribution(Distribution_parse_config_files, _Distribution):
# Since this gets called multiple times at points where the
# keys have become '
converted
' extras, ensure that we are only
# truly adding extras we haven'
t
seen
before
here
.
self
.
metadata
.
provides_extras
.
add
(
extra
.
split
(
':'
)[
0
])
extra
=
extra
.
split
(
':'
)[
0
]
if
extra
:
self
.
metadata
.
provides_extras
.
add
(
extra
)
self
.
_convert_extras_requirements
()
self
.
_move_install_requirements_markers
()
...
...
setuptools/tests/test_egg_info.py
View file @
cb9b8793
...
...
@@ -438,6 +438,23 @@ class TestEggInfo(object):
assert
'Provides-Extra: foobar'
in
pkg_info_lines
assert
'Metadata-Version: 2.1'
in
pkg_info_lines
def
test_doesnt_provides_extra
(
self
,
tmpdir_cwd
,
env
):
self
.
_setup_script_with_requires
(
'''install_requires=["spam ; python_version<'3.3'"]'''
)
environ
=
os
.
environ
.
copy
().
update
(
HOME
=
env
.
paths
[
'home'
],
)
environment
.
run_setup_py
(
cmd
=
[
'egg_info'
],
pypath
=
os
.
pathsep
.
join
([
env
.
paths
[
'lib'
],
str
(
tmpdir_cwd
)]),
data_stream
=
1
,
env
=
environ
,
)
egg_info_dir
=
os
.
path
.
join
(
'.'
,
'foo.egg-info'
)
with
open
(
os
.
path
.
join
(
egg_info_dir
,
'PKG-INFO'
))
as
pkginfo_file
:
pkg_info_text
=
pkginfo_file
.
read
()
assert
'Provides-Extra:'
not
in
pkg_info_text
def
test_long_description_content_type
(
self
,
tmpdir_cwd
,
env
):
# Test that specifying a `long_description_content_type` keyword arg to
# the `setup` function results in writing a `Description-Content-Type`
...
...
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