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
393809a0
Commit
393809a0
authored
Apr 05, 2019
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feed the hobgoblins (delint).
parent
dd522e60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
setuptools/dist.py
setuptools/dist.py
+2
-3
setuptools/tests/test_config.py
setuptools/tests/test_config.py
+7
-4
No files found.
setuptools/dist.py
View file @
393809a0
...
...
@@ -11,7 +11,6 @@ import distutils.log
import
distutils.core
import
distutils.cmd
import
distutils.dist
from
distutils.errors
import
DistutilsOptionError
from
distutils.util
import
strtobool
from
distutils.debug
import
DEBUG
from
distutils.fancy_getopt
import
translate_longopt
...
...
@@ -135,7 +134,6 @@ def write_pkg_file(self, file):
def
write_field
(
key
,
value
):
file
.
write
(
"%s: %s
\
n
"
%
(
key
,
value
))
write_field
(
'Metadata-Version'
,
str
(
version
))
write_field
(
'Name'
,
self
.
get_name
())
write_field
(
'Version'
,
self
.
get_version
())
...
...
@@ -1281,4 +1279,5 @@ class Feature:
class
DistDeprecationWarning
(
SetuptoolsDeprecationWarning
):
"""Class for warning about deprecations in dist in setuptools. Not ignored by default, unlike DeprecationWarning."""
"""Class for warning about deprecations in dist in
setuptools. Not ignored by default, unlike DeprecationWarning."""
setuptools/tests/test_config.py
View file @
393809a0
...
...
@@ -8,7 +8,7 @@ from distutils.errors import DistutilsOptionError, DistutilsFileError
from
mock
import
patch
from
setuptools.dist
import
Distribution
,
_Distribution
from
setuptools.config
import
ConfigHandler
,
read_configuration
from
setuptools.extern.six.moves
.configparser
import
InterpolationMissingOptionErro
r
from
setuptools.extern.six.moves
import
configparse
r
from
setuptools.tests
import
is_ascii
from
.
import
py2_only
,
py3_only
from
.textwrap
import
DALS
...
...
@@ -29,7 +29,9 @@ def make_package_dir(name, base_dir, ns=False):
return
dir_package
,
init_file
def
fake_env
(
tmpdir
,
setup_cfg
,
setup_py
=
None
,
encoding
=
'ascii'
,
package_path
=
'fake_package'
):
def
fake_env
(
tmpdir
,
setup_cfg
,
setup_py
=
None
,
encoding
=
'ascii'
,
package_path
=
'fake_package'
):
if
setup_py
is
None
:
setup_py
=
(
...
...
@@ -440,11 +442,12 @@ class TestMetadata:
'[metadata]
\
n
'
'description = %(message)s
\
n
'
)
with
pytest
.
raises
(
InterpolationMissingOptionError
):
with
pytest
.
raises
(
configparser
.
InterpolationMissingOptionError
):
with
get_dist
(
tmpdir
):
pass
skip_if_not_ascii
=
pytest
.
mark
.
skipif
(
not
is_ascii
,
reason
=
'Test not supported with this locale'
)
skip_if_not_ascii
=
pytest
.
mark
.
skipif
(
not
is_ascii
,
reason
=
'Test not supported with this locale'
)
@
skip_if_not_ascii
def
test_non_ascii_1
(
self
,
tmpdir
):
...
...
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