Hello community,
here is the log from the commit of package python3-setuptools for
openSUSE:Factory checked in at 2015-03-25 09:55:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-setuptools (Old)
and /work/SRC/openSUSE:Factory/.python3-setuptools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-setuptools"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-setuptools/python3-setuptools.changes
2015-03-16 06:57:22.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python3-setuptools.new/python3-setuptools.changes
2015-03-25 09:55:40.000000000 +0100
@@ -1,0 +2,9 @@
+Sun Mar 22 19:45:20 UTC 2015 - [email protected]
+
+- update to version 14.3.1:
+ * Issue #307: Removed PEP-440 warning during parsing of versions
+ in "pkg_resources.Distribution".
+ * Issue #364: Replace deprecated usage with recommended usage of
+ "EntryPoint.load".
+
+-------------------------------------------------------------------
Old:
----
setuptools-14.3.tar.gz
New:
----
setuptools-14.3.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-setuptools.spec ++++++
--- /var/tmp/diff_new_pack.vHNI0O/_old 2015-03-25 09:55:41.000000000 +0100
+++ /var/tmp/diff_new_pack.vHNI0O/_new 2015-03-25 09:55:41.000000000 +0100
@@ -17,7 +17,7 @@
Name: python3-setuptools
-Version: 14.3
+Version: 14.3.1
Release: 0
Url: http://pypi.python.org/pypi/setuptools
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
++++++ setuptools-14.3.tar.gz -> setuptools-14.3.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/CHANGES.txt
new/setuptools-14.3.1/CHANGES.txt
--- old/setuptools-14.3/CHANGES.txt 2015-03-15 14:41:53.000000000 +0100
+++ new/setuptools-14.3.1/CHANGES.txt 2015-03-20 21:01:55.000000000 +0100
@@ -2,6 +2,15 @@
CHANGES
=======
+------
+14.3.1
+------
+
+* Issue #307: Removed PEP-440 warning during parsing of versions
+ in ``pkg_resources.Distribution``.
+* Issue #364: Replace deprecated usage with recommended usage of
+ ``EntryPoint.load``.
+
----
14.3
----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/PKG-INFO
new/setuptools-14.3.1/PKG-INFO
--- old/setuptools-14.3/PKG-INFO 2015-03-15 14:47:12.000000000 +0100
+++ new/setuptools-14.3.1/PKG-INFO 2015-03-20 21:08:37.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setuptools
-Version: 14.3
+Version: 14.3.1
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
Home-page: https://bitbucket.org/pypa/setuptools
Author: Python Packaging Authority
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/ez_setup.py
new/setuptools-14.3.1/ez_setup.py
--- old/setuptools-14.3/ez_setup.py 2015-03-15 13:19:20.000000000 +0100
+++ new/setuptools-14.3.1/ez_setup.py 2015-03-20 21:08:27.000000000 +0100
@@ -30,7 +30,7 @@
except ImportError:
USER_SITE = None
-DEFAULT_VERSION = "14.3"
+DEFAULT_VERSION = "14.3.1"
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/"
DEFAULT_SAVE_DIR = os.curdir
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/pkg_resources/__init__.py
new/setuptools-14.3.1/pkg_resources/__init__.py
--- old/setuptools-14.3/pkg_resources/__init__.py 2015-03-15
14:33:26.000000000 +0100
+++ new/setuptools-14.3.1/pkg_resources/__init__.py 2015-03-20
20:58:50.000000000 +0100
@@ -36,6 +36,7 @@
import plistlib
import email.parser
import tempfile
+import textwrap
from pkgutil import get_importer
PY3 = sys.version_info > (3,)
@@ -2267,9 +2268,16 @@
CBRACKET = re.compile(r"\s*\]").match
MODULE = re.compile(r"\w+(\.\w+)*$").match
EGG_NAME = re.compile(
- r"(?P<name>[^-]+)"
- r"( -(?P<ver>[^-]+) (-py(?P<pyver>[^-]+) (-(?P<plat>.+))? )? )?",
- re.VERBOSE | re.IGNORECASE
+ r"""
+ (?P<name>[^-]+) (
+ -(?P<ver>[^-]+) (
+ -py(?P<pyver>[^-]+) (
+ -(?P<plat>.+)
+ )?
+ )?
+ )?
+ """,
+ re.VERBOSE | re.IGNORECASE,
).match
@@ -2492,28 +2500,35 @@
def parsed_version(self):
if not hasattr(self, "_parsed_version"):
self._parsed_version = parse_version(self.version)
- if isinstance(
- self._parsed_version, packaging.version.LegacyVersion):
- # While an empty version is techincally a legacy version and
- # is not a valid PEP 440 version, it's also unlikely to
- # actually come from someone and instead it is more likely that
- # it comes from setuptools attempting to parse a filename and
- # including it in the list. So for that we'll gate this warning
- # on if the version is anything at all or not.
- if self.version:
- warnings.warn(
- "'%s (%s)' is being parsed as a legacy, non PEP 440, "
- "version. You may find odd behavior and sort order. "
- "In particular it will be sorted as less than 0.0. It "
- "is recommend to migrate to PEP 440 compatible "
- "versions." % (
- self.project_name, self.version,
- ),
- PEP440Warning,
- )
return self._parsed_version
+ def _warn_legacy_version(self):
+ LV = packaging.version.LegacyVersion
+ is_legacy = isinstance(self._parsed_version, LV)
+ if not is_legacy:
+ return
+
+ # While an empty version is techincally a legacy version and
+ # is not a valid PEP 440 version, it's also unlikely to
+ # actually come from someone and instead it is more likely that
+ # it comes from setuptools attempting to parse a filename and
+ # including it in the list. So for that we'll gate this warning
+ # on if the version is anything at all or not.
+ if not self.version:
+ return
+
+ tmpl = textwrap.dedent("""
+ '{project_name} ({version})' is being parsed as a legacy,
+ non PEP 440,
+ version. You may find odd behavior and sort order.
+ In particular it will be sorted as less than 0.0. It
+ is recommend to migrate to PEP 440 compatible
+ versions.
+ """).strip().replace('\n', ' ')
+
+ warnings.warn(tmpl.format(**vars(self)), PEP440Warning)
+
@property
def version(self):
try:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/setuptools/command/egg_info.py
new/setuptools-14.3.1/setuptools/command/egg_info.py
--- old/setuptools-14.3/setuptools/command/egg_info.py 2015-03-07
05:08:52.000000000 +0100
+++ new/setuptools-14.3.1/setuptools/command/egg_info.py 2015-03-19
19:05:40.000000000 +0100
@@ -168,7 +168,8 @@
self.mkpath(self.egg_info)
installer = self.distribution.fetch_build_egg
for ep in iter_entry_points('egg_info.writers'):
- writer = ep.load(installer=installer)
+ ep.require(installer=installer)
+ writer = ep.resolve()
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
# Get rid of native_libs.txt if it was put there by older bdist_egg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/setuptools/package_index.py
new/setuptools-14.3.1/setuptools/package_index.py
--- old/setuptools-14.3/setuptools/package_index.py 2015-03-07
05:08:52.000000000 +0100
+++ new/setuptools-14.3.1/setuptools/package_index.py 2015-03-20
20:59:17.000000000 +0100
@@ -138,10 +138,9 @@
# versions in distribution archive names (sdist and bdist).
parts = basename.split('-')
- if not py_version:
- for i,p in enumerate(parts[2:]):
- if len(p)==5 and p.startswith('py2.'):
- return # It's a bdist_dumb, not an sdist -- bail out
+ if not py_version and any(re.match('py\d\.\d$', p) for p in parts[2:]):
+ # it is a bdist_dumb, not an sdist -- bail out
+ return
for p in range(1,len(parts)+1):
yield Distribution(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/setuptools/version.py
new/setuptools-14.3.1/setuptools/version.py
--- old/setuptools-14.3/setuptools/version.py 2015-03-15 13:19:20.000000000
+0100
+++ new/setuptools-14.3.1/setuptools/version.py 2015-03-20 21:08:27.000000000
+0100
@@ -1 +1 @@
-__version__ = '14.3'
+__version__ = '14.3.1'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/setuptools-14.3/setuptools.egg-info/PKG-INFO
new/setuptools-14.3.1/setuptools.egg-info/PKG-INFO
--- old/setuptools-14.3/setuptools.egg-info/PKG-INFO 2015-03-15
14:47:09.000000000 +0100
+++ new/setuptools-14.3.1/setuptools.egg-info/PKG-INFO 2015-03-20
21:08:34.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: setuptools
-Version: 14.3
+Version: 14.3.1
Summary: Easily download, build, install, upgrade, and uninstall Python
packages
Home-page: https://bitbucket.org/pypa/setuptools
Author: Python Packaging Authority
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]