update to version 0.3.4

This commit is contained in:
wang--ge 2022-10-19 16:12:18 +08:00
parent 20b0d0a675
commit 306c7e7a5f
4 changed files with 8 additions and 34 deletions

Binary file not shown.

BIN
distlib-0.3.4.zip Normal file

Binary file not shown.

View File

@ -1,37 +1,12 @@
diff --git a/distlib/compat.py b/distlib/compat.py
index e594106..100d695 100644
--- a/distlib/compat.py
+++ b/distlib/compat.py
@@ -22,7 +22,7 @@ if sys.version_info[0] < 3: # pragma: no cover
from types import FileType as file_type
import __builtin__ as builtins
import ConfigParser as configparser
- from ._backport import shutil
+ import shutil
from urlparse import urlparse, urlunparse, urljoin, urlsplit, urlunsplit
from urllib import (urlretrieve, quote as _quote, unquote, url2pathname,
pathname2url, ContentTooShortError, splittype)
@@ -316,7 +316,7 @@ except ImportError: # pragma: no cover
try:
import sysconfig
except ImportError: # pragma: no cover
- from ._backport import sysconfig
+ import sysconfig
try:
callable = callable
diff --git a/setup.py b/setup.py diff --git a/setup.py b/setup.py
index 052cae0..cc41754 100644 index e88d95f..6e1e3df 100644
--- a/setup.py --- a/setup.py
+++ b/setup.py +++ b/setup.py
@@ -60,13 +60,7 @@ distutils.core.setup( @@ -61,10 +61,6 @@ distutils.core.setup(
platforms='any',
packages=[ packages=[
'distlib', 'distlib'
- 'distlib._backport',
], ],
- package_data={ - package_data={
- 'distlib._backport': ['sysconfig.cfg'],
- 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe', - 'distlib': ['t32.exe', 't64.exe', 'w32.exe', 'w64.exe',
- 't64-arm.exe', 'w64-arm.exe'], - 't64-arm.exe', 'w64-arm.exe'],
- }, - },

View File

@ -1,7 +1,7 @@
%bcond_with check %bcond_with check
Name: python-distlib Name: python-distlib
Version: 0.3.3 Version: 0.3.4
Release: 1 Release: 1
Summary: A library of packaging functionality Summary: A library of packaging functionality
License: Python-2.0 License: Python-2.0
@ -27,9 +27,6 @@ basis for third-party packaging tools.
%autosetup -n distlib-%{version} -p1 %autosetup -n distlib-%{version} -p1
rm distlib/*.exe rm distlib/*.exe
rm -rf distlib/_backport
rm tests/test_shutil.py*
rm tests/test_sysconfig.py*
%build %build
%py3_build %py3_build
@ -45,10 +42,12 @@ export PYTHONHASHSEED=0
%files -n python3-distlib %files -n python3-distlib
%doc README.rst LICENSE.txt %doc README.rst LICENSE.txt
%{python3_sitelib}/distlib %{python3_sitelib}/distlib*
%{python3_sitelib}/distlib-%{version}-py?.?.egg-info
%changelog %changelog
* Wed Oct 19 2022 Ge Wang <wangge20@h-partners.com> - 0.3.4-1
- update to 0.3.4
* Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 0.3.3-1 * Mon Dec 20 2021 shixuantong <shixuantong@huawei.com> - 0.3.3-1
- update to 0.3.3 - update to 0.3.3