Accepting request 784576 from devel:languages:python
- Update to 0.3.0: * small bugfixes - Remove patch merged upstream: * correct_large_version_number.patch OBS-URL: https://build.opensuse.org/request/show/784576 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-distlib?expand=0&rev=6
This commit is contained in:
commit
1457850bf0
@ -1,90 +0,0 @@
|
|||||||
# HG changeset patch
|
|
||||||
# User Vinay Sajip <vinay_sajip@yahoo.co.uk>
|
|
||||||
# Date 1571520730 -3600
|
|
||||||
# Node ID 84ab17abcd54c6ce62fcb7a5137dfd821682f5ad
|
|
||||||
# Parent bdef4258f1e2e08685aa5f3abac03483cbfa0ea0
|
|
||||||
Change Python version handling to cope with a version like 3.10.
|
|
||||||
|
|
||||||
--- a/distlib/_backport/sysconfig.py
|
|
||||||
+++ b/distlib/_backport/sysconfig.py
|
|
||||||
@@ -119,11 +119,9 @@ def _expand_globals(config):
|
|
||||||
|
|
||||||
#_expand_globals(_SCHEMES)
|
|
||||||
|
|
||||||
- # FIXME don't rely on sys.version here, its format is an implementation detail
|
|
||||||
- # of CPython, use sys.version_info or sys.hexversion
|
|
||||||
-_PY_VERSION = sys.version.split()[0]
|
|
||||||
-_PY_VERSION_SHORT = sys.version[:3]
|
|
||||||
-_PY_VERSION_SHORT_NO_DOT = _PY_VERSION[0] + _PY_VERSION[2]
|
|
||||||
+_PY_VERSION = '%s.%s.%s' % sys.version_info[:3]
|
|
||||||
+_PY_VERSION_SHORT = '%s.%s' % sys.version_info[:2]
|
|
||||||
+_PY_VERSION_SHORT_NO_DOT = '%s%s' % sys.version_info[:2]
|
|
||||||
_PREFIX = os.path.normpath(sys.prefix)
|
|
||||||
_EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
|
|
||||||
_CONFIG_VARS = None
|
|
||||||
--- a/distlib/scripts.py
|
|
||||||
+++ b/distlib/scripts.py
|
|
||||||
@@ -285,9 +285,10 @@ class ScriptMaker(object):
|
|
||||||
if '' in self.variants:
|
|
||||||
scriptnames.add(name)
|
|
||||||
if 'X' in self.variants:
|
|
||||||
- scriptnames.add('%s%s' % (name, sys.version[0]))
|
|
||||||
+ scriptnames.add('%s%s' % (name, sys.version_info[0]))
|
|
||||||
if 'X.Y' in self.variants:
|
|
||||||
- scriptnames.add('%s-%s' % (name, sys.version[:3]))
|
|
||||||
+ scriptnames.add('%s-%s.%s' % (name, sys.version_info[0],
|
|
||||||
+ sys.version_info[1]))
|
|
||||||
if options and options.get('gui', False):
|
|
||||||
ext = 'pyw'
|
|
||||||
else:
|
|
||||||
--- a/distlib/wheel.py
|
|
||||||
+++ b/distlib/wheel.py
|
|
||||||
@@ -684,7 +684,7 @@ class Wheel(object):
|
|
||||||
if cache is None:
|
|
||||||
# Use native string to avoid issues on 2.x: see Python #20140.
|
|
||||||
base = os.path.join(get_cache_base(), str('dylib-cache'),
|
|
||||||
- sys.version[:3])
|
|
||||||
+ '%s.%s' % sys.version_info[:2])
|
|
||||||
cache = Cache(base)
|
|
||||||
return cache
|
|
||||||
|
|
||||||
--- a/tests/test_scripts.py
|
|
||||||
+++ b/tests/test_scripts.py
|
|
||||||
@@ -152,9 +152,12 @@ class ScriptTestCase(unittest.TestCase):
|
|
||||||
else:
|
|
||||||
ext = 'py'
|
|
||||||
expected = set(['foo.%s' % ext,
|
|
||||||
- 'foo-%s.%s' % (sys.version[:3], ext)])
|
|
||||||
+ 'foo-%s.%s.%s' % (sys.version_info[0],
|
|
||||||
+ sys.version_info[1],
|
|
||||||
+ ext)])
|
|
||||||
else:
|
|
||||||
- expected = set(['foo', 'foo-%s' % sys.version[:3]])
|
|
||||||
+ expected = set(['foo', 'foo-%s.%s' % (sys.version_info[0],
|
|
||||||
+ sys.version_info[1])])
|
|
||||||
self.assertEqual(actual, expected)
|
|
||||||
self.assertEqual(d, self.maker.target_dir)
|
|
||||||
for fn in files:
|
|
||||||
@@ -264,7 +267,7 @@ class ScriptTestCase(unittest.TestCase):
|
|
||||||
files = self.maker.make('foo = foo:main', {'gui': True})
|
|
||||||
self.assertEqual(len(files), 2)
|
|
||||||
filenames = set([os.path.basename(f) for f in files])
|
|
||||||
- specific = sys.version[:3]
|
|
||||||
+ specific = '%s.%s' % sys.version_info[:2]
|
|
||||||
self.assertEqual(filenames, set(('foo.exe', 'foo-%s.exe' % specific)))
|
|
||||||
for fn in files:
|
|
||||||
with open(fn, 'rb') as f:
|
|
||||||
--- a/tests/test_wheel.py
|
|
||||||
+++ b/tests/test_wheel.py
|
|
||||||
@@ -474,7 +474,10 @@ class WheelTestCase(unittest.TestCase):
|
|
||||||
parts = ['cp', pyver]
|
|
||||||
if sysconfig.get_config_var('Py_DEBUG'):
|
|
||||||
parts.append('d')
|
|
||||||
- if sysconfig.get_config_var('WITH_PYMALLOC'):
|
|
||||||
+ # Starting with 3.8, the SOABI doesn't append m when WITH_PYMALLOC is
|
|
||||||
+ # defined (see bpo-36707)
|
|
||||||
+ if (sys.version_info[:2] < (3, 8) and
|
|
||||||
+ sysconfig.get_config_var('WITH_PYMALLOC')):
|
|
||||||
parts.append('m')
|
|
||||||
if sysconfig.get_config_var('Py_UNICODE_SIZE') == 4:
|
|
||||||
parts.append('u')
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ecb3d0e4f71d0fa7f38db6bcc276c7c9a1c6638a516d726495934a553eb3fbe0
|
|
||||||
size 569210
|
|
3
distlib-0.3.0.zip
Normal file
3
distlib-0.3.0.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2e166e231a26b36d6dfe35a48c4464346620f8645ed0ace01ee31822b288de21
|
||||||
|
size 571953
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 13 08:37:16 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.3.0:
|
||||||
|
* small bugfixes
|
||||||
|
- Remove patch merged upstream:
|
||||||
|
* correct_large_version_number.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 25 07:14:15 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
Fri Oct 25 07:14:15 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-distlib
|
# spec file for package python-distlib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,17 +18,13 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-distlib
|
Name: python-distlib
|
||||||
Version: 0.2.9.post0
|
Version: 0.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Distribution utilities
|
Summary: Distribution utilities
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://bitbucket.org/pypa/distlib
|
URL: https://bitbucket.org/pypa/distlib
|
||||||
Source: https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.zip
|
Source: https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.zip
|
||||||
Patch0: remove-backports.patch
|
Patch0: remove-backports.patch
|
||||||
# PATCH-FIX-UPSTREAM correct_large_version_number.patch bt#pypa/distlib#129 mcepl@suse.com
|
|
||||||
# Change Python version handling to cope with a version like 3.10
|
|
||||||
Patch1: correct_large_version_number.patch
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
Reference in New Issue
Block a user