Hello community,
here is the log from the commit of package python-zc.buildout for
openSUSE:Factory checked in at 2017-12-11 18:56:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zc.buildout (Old)
and /work/SRC/openSUSE:Factory/.python-zc.buildout.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zc.buildout"
Mon Dec 11 18:56:27 2017 rev:3 rq:555307 version:2.9.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zc.buildout/python-zc.buildout.changes
2017-10-13 14:16:38.534765483 +0200
+++
/work/SRC/openSUSE:Factory/.python-zc.buildout.new/python-zc.buildout.changes
2017-12-11 18:56:29.998570235 +0100
@@ -1,0 +2,6 @@
+Fri Dec 1 17:20:19 UTC 2017 - [email protected]
+
+- update to 2.9.6:
+ * Fixed: could not install eggs when sdist file name and package name had
different case.
+
+-------------------------------------------------------------------
Old:
----
zc.buildout-2.9.5.tar.gz
New:
----
zc.buildout-2.9.6.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zc.buildout.spec ++++++
--- /var/tmp/diff_new_pack.O4TUdB/_old 2017-12-11 18:56:30.690537276 +0100
+++ /var/tmp/diff_new_pack.O4TUdB/_new 2017-12-11 18:56:30.694537086 +0100
@@ -20,7 +20,7 @@
%{!?license: %global license %doc}
%bcond_without test
Name: python-zc.buildout
-Version: 2.9.5
+Version: 2.9.6
Release: 0
Url: http://pypi.python.org/pypi/zc.buildout
Summary: System for managing development buildouts
++++++ zc.buildout-2.9.5.tar.gz -> zc.buildout-2.9.6.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/CHANGES.rst
new/zc.buildout-2.9.6/CHANGES.rst
--- old/zc.buildout-2.9.5/CHANGES.rst 2017-09-22 21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/CHANGES.rst 2017-12-01 09:17:36.000000000 +0100
@@ -1,6 +1,13 @@
Change History
**************
+2.9.6 (2017-12-01)
+==================
+
+- Fixed: could not install eggs when sdist file name and package name had
different
+ case.
+
+
2.9.5 (2017-09-22)
==================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/PKG-INFO
new/zc.buildout-2.9.6/PKG-INFO
--- old/zc.buildout-2.9.5/PKG-INFO 2017-09-22 21:28:41.000000000 +0200
+++ new/zc.buildout-2.9.6/PKG-INFO 2017-12-01 09:17:38.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: zc.buildout
-Version: 2.9.5
+Version: 2.9.6
Summary: System for managing development buildouts
Home-page: http://buildout.org
Author: Jim Fulton
@@ -69,6 +69,13 @@
Change History
**************
+ 2.9.6 (2017-12-01)
+ ==================
+
+ - Fixed: could not install eggs when sdist file name and package name
had different
+ case.
+
+
2.9.5 (2017-09-22)
==================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/setup.py
new/zc.buildout-2.9.6/setup.py
--- old/zc.buildout-2.9.5/setup.py 2017-09-22 21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/setup.py 2017-12-01 09:17:36.000000000 +0100
@@ -12,7 +12,7 @@
#
##############################################################################
name = "zc.buildout"
-version = '2.9.5'
+version = '2.9.6'
import os
from setuptools import setup
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/src/zc/buildout/downloadcache.txt
new/zc.buildout-2.9.6/src/zc/buildout/downloadcache.txt
--- old/zc.buildout-2.9.5/src/zc/buildout/downloadcache.txt 2017-09-22
21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/src/zc/buildout/downloadcache.txt 2017-12-01
09:17:36.000000000 +0100
@@ -44,6 +44,7 @@
<a href="du_zipped-1.0-pyN.N.egg">du_zipped-1.0-pyN.N.egg</a><br>
<a href="extdemo-1.4.zip">extdemo-1.4.zip</a><br>
<a href="index/">index/</a><br>
+ <a href="mixedcase-0.5.zip">mixedcase-0.5.zip</a><br>
<a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br>
</body></html>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/src/zc/buildout/easy_install.py
new/zc.buildout-2.9.6/src/zc/buildout/easy_install.py
--- old/zc.buildout-2.9.5/src/zc/buildout/easy_install.py 2017-09-22
21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/src/zc/buildout/easy_install.py 2017-12-01
09:17:36.000000000 +0100
@@ -1655,8 +1655,8 @@
# good enough.
env = pkg_resources.Environment([location])
dists = [ d for project_name in env for d in env[project_name] ]
- dist_infos = [ (d.project_name, d.version) for d in dists ]
- if dist_infos == [(dist.project_name, dist.version)]:
+ dist_infos = [ (d.project_name.lower(), d.version) for d in dists ]
+ if dist_infos == [(dist.project_name.lower(), dist.version)]:
return dists.pop()
def _move_to_eggs_dir_and_compile(dist, dest):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/src/zc/buildout/easy_install.txt
new/zc.buildout-2.9.6/src/zc/buildout/easy_install.txt
--- old/zc.buildout-2.9.5/src/zc/buildout/easy_install.txt 2017-09-22
21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/src/zc/buildout/easy_install.txt 2017-12-01
09:17:36.000000000 +0100
@@ -104,6 +104,7 @@
<a href="du_zipped-1.0-pyN.N.egg">du_zipped-1.0-pyN.N.egg</a><br>
<a href="extdemo-1.4.zip">extdemo-1.4.zip</a><br>
<a href="index/">index/</a><br>
+ <a href="mixedcase-0.5.zip">mixedcase-0.5.zip</a><br>
<a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br>
</body></html>
@@ -183,6 +184,7 @@
>>> zc.buildout.easy_install.prefer_final(True)
False
+
We can supply additional distributions. We can also supply
specifications for distributions that would normally be found via
dependencies. We might do this to specify a specific version.
@@ -208,6 +210,38 @@
>>> rmdir(dest)
+Case issues
+-----------
+
+Let's install an egg with case naming issues.
+Specifically, the sdist file is lower case while the name of the package is
uppercase.
+
+Let's enable server logging to check that the lower case file is downloaded.
+
+ >>> _ = get(link_server + 'enable_server_logging')
+ GET 200 /enable_server_logging
+ >>> ws = zc.buildout.easy_install.install(
+ ... ['MIXEDCASE'], dest,
+ ... links=[link_server], index=link_server+'index/')
+ GET 404 /index/MIXEDCASE/
+ GET 200 /mixedcase-0.5.zip
+ GET 200 /demoneeded-1.1.zip
+
+Let's check that the uppercase dist is installed.
+
+ >>> for dist in ws:
+ ... print_(dist)
+ MIXEDCASE 0.5
+ demoneeded 1.1
+ >>> ls(dest)
+ d MIXEDCASE-0.5-pyN.N.egg
+ d demoneeded-1.1-py2.4.egg
+
+And cleanup.
+
+ >>> _ = get(link_server + 'disable_server_logging')
+ >>> rmdir(dest)
+
Specifying version information independent of requirements
----------------------------------------------------------
@@ -1170,6 +1204,7 @@
<a href="extdemo-1.4.zip">extdemo-1.4.zip</a><br>
<a href="extdemo-1.5.zip">extdemo-1.5.zip</a><br>
<a href="index/">index/</a><br>
+ <a href="mixedcase-0.5.zip">mixedcase-0.5.zip</a><br>
<a href="other-1.0-py2.4.egg">other-1.0-py2.4.egg</a><br>
</body></html>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/src/zc/buildout/tests.py
new/zc.buildout-2.9.6/src/zc/buildout/tests.py
--- old/zc.buildout-2.9.5/src/zc/buildout/tests.py 2017-09-22
21:28:40.000000000 +0200
+++ new/zc.buildout-2.9.6/src/zc/buildout/tests.py 2017-12-01
09:17:36.000000000 +0100
@@ -3265,6 +3265,25 @@
)
zc.buildout.testing.bdist_egg(tmp, dest)
+ write(tmp, 'mixedcase.py', 'def f():\n pass')
+ write(
+ tmp, 'setup.py',
+ "from setuptools import setup\n"
+ "setup(name='MIXEDCASE', py_modules=['mixedcase'],"
+ " author='bob', url='bob', author_email='bob',"
+ " install_requires = 'demoneeded',"
+ " zip_safe=True, version='0.5')\n"
+ )
+ zc.buildout.testing.sdist(tmp, dest)
+ # rename file to lower case
+ # to test issues between file and package name
+ curdir = os.getcwd()
+ os.chdir(dest)
+ for file in os.listdir(dest):
+ if "MIXEDCASE" in file:
+ os.rename(file, file.lower())
+ os.chdir(curdir)
+
write(tmp, 'eggrecipebigdemo.py', 'import eggrecipedemo')
write(
tmp, 'setup.py',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/zc.buildout-2.9.5/src/zc.buildout.egg-info/PKG-INFO
new/zc.buildout-2.9.6/src/zc.buildout.egg-info/PKG-INFO
--- old/zc.buildout-2.9.5/src/zc.buildout.egg-info/PKG-INFO 2017-09-22
21:28:41.000000000 +0200
+++ new/zc.buildout-2.9.6/src/zc.buildout.egg-info/PKG-INFO 2017-12-01
09:17:37.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: zc.buildout
-Version: 2.9.5
+Version: 2.9.6
Summary: System for managing development buildouts
Home-page: http://buildout.org
Author: Jim Fulton
@@ -69,6 +69,13 @@
Change History
**************
+ 2.9.6 (2017-12-01)
+ ==================
+
+ - Fixed: could not install eggs when sdist file name and package name
had different
+ case.
+
+
2.9.5 (2017-09-22)
==================