Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory 
checked in at 2013-06-25 09:35:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-py2pack (Old)
 and      /work/SRC/openSUSE:Factory/.python-py2pack.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-py2pack"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-py2pack/python-py2pack.changes    
2013-06-19 17:04:07.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-py2pack.new/python-py2pack.changes       
2013-06-25 14:44:58.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Jun 24 12:13:21 UTC 2013 - [email protected]
+
+- Update to version 0.4.4:
+  + Package scripts (setup.py) as binaries
+
+-------------------------------------------------------------------

Old:
----
  py2pack-0.4.3.4.tar.gz

New:
----
  py2pack-0.4.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.vLaXoM/_old  2013-06-25 14:44:58.000000000 +0200
+++ /var/tmp/diff_new_pack.vLaXoM/_new  2013-06-25 14:44:58.000000000 +0200
@@ -16,7 +16,7 @@
 #
 
 Name:           python-py2pack
-Version:        0.4.3.4
+Version:        0.4.4
 Release:        0
 Url:            http://github.com/saschpe/py2pack
 Summary:        Generate distribution packages from Python packages on PyPI

++++++ py2pack-0.4.3.4.tar.gz -> py2pack-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/PKG-INFO new/py2pack-0.4.4/PKG-INFO
--- old/py2pack-0.4.3.4/PKG-INFO        2013-05-03 12:24:21.000000000 +0200
+++ new/py2pack-0.4.4/PKG-INFO  2013-06-24 14:12:08.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py2pack
-Version: 0.4.3.4
+Version: 0.4.4
 Summary: Generate distribution packages from Python packages on PyPI
 Home-page: http://github.com/saschpe/py2pack
 Author: Sascha Peilicke
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/py2pack/py2pack.py 
new/py2pack-0.4.4/py2pack/py2pack.py
--- old/py2pack-0.4.3.4/py2pack/py2pack.py      2013-05-03 12:23:40.000000000 
+0200
+++ new/py2pack-0.4.4/py2pack/py2pack.py        2013-06-24 14:10:45.000000000 
+0200
@@ -37,7 +37,7 @@
 warnings.filterwarnings('ignore', 'Module argparse was already imported')   # 
Filter a UserWarning from Jinja2
 import jinja2
 
-__version__ = '0.4.3.4'
+__version__ = '0.4.4'
 
 
 class ProxiedTransport(xmlrpclib.Transport):
@@ -91,6 +91,16 @@
     urllib.urlretrieve(url['url'], url['filename'])                         # 
download the object behind the URL
 
 
+def _parse_setup_py(file, data):
+    contents = file.read()
+    mo = re.search("ext_modules", contents)
+    if mo:
+        data["is_extension"] = True
+    mo = re.search("scripts\s*=\s*(\[.*\]),", contents, flags=re.MULTILINE)
+    if mo:
+        data["scripts"] = eval(mo.group(1))
+
+
 def _augment_data_from_tarball(args, filename, data):
     setup_filename = "{0}-{1}/setup.py".format(args.name, args.version)
     docs_re = 
re.compile("{0}-{1}\/((?:AUTHOR|ChangeLog|CHANGES|COPYING|LICENSE|NEWS|README).*)".format(args.name,
 args.version), re.IGNORECASE)
@@ -98,16 +108,12 @@
     if tarfile.is_tarfile(filename):
         with tarfile.open(filename) as f:
             names = f.getnames()
-            for line in f.extractfile(setup_filename):
-                if "ext_modules" in line:                                   # 
tarball contains C/C++ extension
-                    data["is_extension"] = True
+            _parse_setup_py(f.extractfile(setup_filename), data)
     elif zipfile.is_zipfile(filename):
         with zipfile.ZipFile(filename) as f:
             names = f.namelist()
             with f.open(setup_filename) as s:
-                for line in s:
-                    if "ext_modules" in line:                               # 
tarball contains C/C++ extension
-                        data["is_extension"] = True
+                _parse_setup_py(s, data)
 
     for name in names:
         match = re.match(docs_re, name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/py2pack/templates/fedora.spec 
new/py2pack-0.4.4/py2pack/templates/fedora.spec
--- old/py2pack-0.4.3.4/py2pack/templates/fedora.spec   2013-04-29 
14:57:27.000000000 +0200
+++ new/py2pack-0.4.4/py2pack/templates/fedora.spec     2013-06-24 
14:09:48.000000000 +0200
@@ -46,6 +46,9 @@
 {%- if doc_files %}
 %doc {{ doc_files|join(" ") }}
 {%- endif %}
+{%- for script in scripts %}
+%{_bindir}/{{ script }}
+{%- endfor %}
 %{python_sitelib}/*
 
 %changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/py2pack/templates/mageia.spec 
new/py2pack-0.4.4/py2pack/templates/mageia.spec
--- old/py2pack-0.4.3.4/py2pack/templates/mageia.spec   2013-04-29 
14:57:22.000000000 +0200
+++ new/py2pack-0.4.4/py2pack/templates/mageia.spec     2013-06-24 
14:09:53.000000000 +0200
@@ -44,5 +44,8 @@
 {%- if doc_files %}
 %doc {{ doc_files|join(" ") }}
 {%- endif %}
+{%- for script in scripts %}
+%{_bindir}/{{ script }}
+{%- endfor %}
 %{python_sitelib}/*
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/py2pack/templates/opensuse.spec 
new/py2pack-0.4.4/py2pack/templates/opensuse.spec
--- old/py2pack-0.4.3.4/py2pack/templates/opensuse.spec 2013-04-29 
14:57:34.000000000 +0200
+++ new/py2pack-0.4.4/py2pack/templates/opensuse.spec   2013-06-24 
14:09:53.000000000 +0200
@@ -63,6 +63,9 @@
 {%- if doc_files %}
 %doc {{ doc_files|join(" ") }}
 {%- endif %}
+{%- for script in scripts %}
+%{_bindir}/{{ script }}
+{%- endfor %}
 %{python_sitelib}/*
 
 %changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.4.3.4/py2pack.egg-info/PKG-INFO 
new/py2pack-0.4.4/py2pack.egg-info/PKG-INFO
--- old/py2pack-0.4.3.4/py2pack.egg-info/PKG-INFO       2013-05-03 
12:24:19.000000000 +0200
+++ new/py2pack-0.4.4/py2pack.egg-info/PKG-INFO 2013-06-24 14:12:08.000000000 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py2pack
-Version: 0.4.3.4
+Version: 0.4.4
 Summary: Generate distribution packages from Python packages on PyPI
 Home-page: http://github.com/saschpe/py2pack
 Author: Sascha Peilicke

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to