From: DongHun Kwak Date: Mon, 14 Jan 2019 01:32:11 +0000 (+0900) Subject: Imported Upstream version 35.0.1 X-Git-Tag: upstream/35.0.1^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8681f306ff53e6690419a97687a4ad25c5af9ae3;p=platform%2Fupstream%2Fpython-setuptools.git Imported Upstream version 35.0.1 --- diff --git a/.travis.yml b/.travis.yml index adb2f94..fd18a33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,9 @@ matrix: env: LC_ALL=C LC_CTYPE=C - python: 2.7 env: LC_ALL=C LC_CTYPE=C + allow_failures: + # https://github.com/pypa/setuptools/issues/1015 + - python: nightly script: # need tox and rwt to get started - pip install tox rwt diff --git a/CHANGES.rst b/CHANGES.rst index e669148..ebd1836 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,14 @@ +v35.0.1 +------- + +* #992: Revert change introduced in v34.4.1, now + considered invalid. + +* #1016: Revert change introduced in v35.0.0 per #1014, + referencing #436. The approach had unintended + consequences, causing sdist installs to be missing + files. + v35.0.0 ------- diff --git a/setup.cfg b/setup.cfg index 57ca3d5..da62ac4 100755 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 35.0.0 +current_version = 35.0.1 commit = True tag = True diff --git a/setup.py b/setup.py index 328941c..df73251 100755 --- a/setup.py +++ b/setup.py @@ -89,7 +89,7 @@ def pypi_link(pkg_filename): setup_params = dict( name="setuptools", - version="35.0.0", + version="35.0.1", description="Easily download, build, install, upgrade, and uninstall " "Python packages", author="Python Packaging Authority", diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 21bbfb7..1a6ea9c 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -564,6 +564,8 @@ class manifest_maker(sdist): rcfiles = list(walk_revctrl()) if rcfiles: self.filelist.extend(rcfiles) + elif os.path.exists(self.manifest): + self.read_manifest() ei_cmd = self.get_finalized_command('egg_info') self.filelist.graft(ei_cmd.egg_info) diff --git a/setuptools/msvc.py b/setuptools/msvc.py index 3110eaf..84dcb2a 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -27,7 +27,6 @@ from packaging.version import LegacyVersion from six.moves import filterfalse from .monkey import get_unpatched -from . import py27compat if platform.system() == 'Windows': from six.moves import winreg @@ -136,13 +135,11 @@ def msvc9_query_vcvarsall(ver, arch='x86', *args, **kwargs): # If error, try to set environment directly try: - env = EnvironmentInfo(arch, ver).return_env() + return EnvironmentInfo(arch, ver).return_env() except distutils.errors.DistutilsPlatformError as exc: _augment_exception(exc, ver, arch) raise - return py27compat.dict_values_strings(env) - def msvc14_get_vc_env(plat_spec): """ diff --git a/setuptools/py27compat.py b/setuptools/py27compat.py index 0f92488..701283c 100644 --- a/setuptools/py27compat.py +++ b/setuptools/py27compat.py @@ -26,17 +26,3 @@ linux_py2_ascii = ( rmtree_safe = str if linux_py2_ascii else lambda x: x """Workaround for http://bugs.python.org/issue24672""" - - -def dict_values_strings(dict_): - """ - Given a dict, make sure the text values are str. - """ - if six.PY3: - return dict_ - - # When dropping Python 2.6 support, use a dict constructor - return dict( - (key, str(value)) - for key, value in dict_.iteritems() - ) diff --git a/setuptools/tests/test_integration.py b/setuptools/tests/test_integration.py index cb62eb2..2acec91 100644 --- a/setuptools/tests/test_integration.py +++ b/setuptools/tests/test_integration.py @@ -99,6 +99,21 @@ def test_python_novaclient(install_context): _install_one('python-novaclient', install_context, 'novaclient', 'base.py') + +def test_pyuri(install_context): + """ + Install the pyuri package (version 0.3.1 at the time of writing). + + This is also a regression test for issue #1016. + """ + _install_one('pyuri', install_context, 'pyuri', 'uri.py') + + pyuri = install_context.installed_projects['pyuri'] + + # The package data should be installed. + assert os.path.exists(os.path.join(pyuri.location, 'pyuri', 'uri.regex')) + + import re import subprocess import functools