Hello community,

here is the log from the commit of package python-py2pack for openSUSE:Factory
checked in at Wed May 18 16:58:11 CEST 2011.



--------
--- python-py2pack/python-py2pack.changes       2011-04-27 11:49:16.000000000 
+0200
+++ python-py2pack/python-py2pack.changes       2011-05-18 13:41:03.000000000 
+0200
@@ -1,0 +2,10 @@
+Wed May 18 11:36:27 UTC 2011 - [email protected]
+
+- Update to version 0.3.17
+  * Fix unicode encoding issues
+  * New spec file template for Mageia (formerly Mandriva)
+- Changes from version 0.3.16
+  * More testing
+  * Updated spec file templates according to distro policies
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


Old:
----
  py2pack-0.3.15.tar.gz

New:
----
  py2pack-0.3.17.tar.gz

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

Other differences:
------------------
++++++ python-py2pack.spec ++++++
--- /var/tmp/diff_new_pack.X8z3fY/_old  2011-05-18 16:56:01.000000000 +0200
+++ /var/tmp/diff_new_pack.X8z3fY/_new  2011-05-18 16:56:01.000000000 +0200
@@ -19,7 +19,7 @@
 %define mod_name py2pack
 
 Name:           python-%{mod_name}
-Version:        0.3.15
+Version:        0.3.17
 Release:        1
 Url:            http://github.com/saschpe/py2pack
 Summary:        Generate distribution packages from Python packages on PyPI

++++++ py2pack-0.3.15.tar.gz -> py2pack-0.3.17.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/PKG-INFO new/py2pack-0.3.17/PKG-INFO
--- old/py2pack-0.3.15/PKG-INFO 2011-04-27 10:47:06.000000000 +0200
+++ new/py2pack-0.3.17/PKG-INFO 2011-05-18 13:32:53.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: py2pack
-Version: 0.3.15
+Version: 0.3.17
 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.3.15/py2pack/__init__.py 
new/py2pack-0.3.17/py2pack/__init__.py
--- old/py2pack-0.3.15/py2pack/__init__.py      2011-04-27 10:46:13.000000000 
+0200
+++ new/py2pack-0.3.17/py2pack/__init__.py      2011-05-18 13:32:15.000000000 
+0200
@@ -1,5 +1,5 @@
 __doc__ = 'Generate distribution packages from Python packages on PyPI'
 __author__ = 'Sascha Peilicke <[email protected]>'
-__version__ = '0.3.15'
+__version__ = '0.3.17'
 
 from py2pack import list, search, fetch, generate, main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/py2pack/py2pack.py 
new/py2pack-0.3.17/py2pack/py2pack.py
--- old/py2pack-0.3.15/py2pack/py2pack.py       2011-02-16 09:25:03.000000000 
+0100
+++ new/py2pack-0.3.17/py2pack/py2pack.py       2011-05-18 13:30:19.000000000 
+0200
@@ -64,13 +64,13 @@
     data = pypi.release_data(args.name, args.version)                       # 
fetch all meta data
     url = newest_download_url(args)
     if url:
-      data['ending'] = url['filename'].rsplit(args.name + "-" + 
args.version)[1] # split of name-version to get ending
+        data['file_name'] = url['filename']
     else:
-      data['ending'] = '.zip'                                               # 
set sane default if no download available
+        data['file_name'] = args.name + '-' + args.version + '.zip'
     data['year'] = datetime.now().year                                      # 
set current year
     data['user_name'] = pwd.getpwuid(os.getuid())[4]                        # 
set system user (packager)
     template = env.get_template(args.template)
-    result = template.render(data)
+    result = template.render(data).encode('utf-8')                          # 
render template and encode properly
     outfile = open(args.filename, 'w')                                      # 
write result to spec file
     try:
         outfile.write(result)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/py2pack/templates/fedora.spec 
new/py2pack-0.3.17/py2pack/templates/fedora.spec
--- old/py2pack-0.3.15/py2pack/templates/fedora.spec    2010-12-20 
12:44:22.000000000 +0100
+++ new/py2pack-0.3.17/py2pack/templates/fedora.spec    2011-05-06 
15:51:01.000000000 +0200
@@ -1,10 +1,10 @@
 #
-# spec file for package python-{{ name|lower }}
+# spec file for package python-{{ name }}
 #
 # Copyright (c) {{ year }} {{ user_name }}.
 #
 
-%define mod_name {{ name|lower }}
+%define mod_name {{ name }}
 
 Name:           python-%{mod_name}
 Version:        {{ version }}
@@ -13,37 +13,25 @@
 Summary:        {{ summary }}
 License:        {{ license }}
 Group:          Development/Languages/Python
-{%- if name != name|lower %}
-Source:         {{ name }}-%{version}{{ ending }}
-{%- else %}
-Source:         %{mod_name}-%{version}{{ ending }}
-{%- endif %}
+Source:         {{ file_name }}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 {%- for req in requires %}
-BuildRequires:  python-{{ req|lower }}
-Requires:       pyhton-{{ req|lower }}
+BuildRequires:  python-{{ req|replace('(','')|replace(')','') }}
+Requires:       python-{{ req|replace('(','')|replace(')','') }}
 {%- endfor %}
 
 %description
-{{ summary }}
-
-Authors:
---------
-    {{ author }} <{{ author_email }}>
+{{ description }}
 
 %prep
-{%- if name != name|lower %}
-%setup -n {{ name }}-%{version}
-{%- else %}
-%setup -n %{mod_name}-%{version}
-{%- endif %}
+%setup -q -n %{mod_name}-%{version}
 
 %build
-export CFLAGS="%{optflags}"
 python setup.py build
 
 %install
+export CFLAGS="%{optflags}"
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
 %clean
@@ -51,8 +39,8 @@
 
 %files
 %defattr(-,root,root,-)
-# You may have to add additional files here!
-%python_sitelib/%{mod_name}*
+# You may have to add additional files here (documentation and binaries mostly)
+%python_sitelib/1
 
 %changelog
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/py2pack/templates/mageia.spec 
new/py2pack-0.3.17/py2pack/templates/mageia.spec
--- old/py2pack-0.3.15/py2pack/templates/mageia.spec    1970-01-01 
01:00:00.000000000 +0100
+++ new/py2pack-0.3.17/py2pack/templates/mageia.spec    2011-05-18 
12:28:33.000000000 +0200
@@ -0,0 +1,45 @@
+%define mod_name {{ name|lower }}
+
+Name:           python-%{mod_name}
+Version:        {{ version }}
+Release:        %mkrel 1
+Url:            {{ home_page }}
+Summary:        {{ summary }}
+License:        {{ license }}
+Group:          Development/Python
+{%- if name != name|lower %}
+Source:         {{ name }}-%{version}{{ ending }}
+{%- else %}
+Source:         %{mod_name}-%{version}{{ ending }}
+{%- endif %}
+BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
+BuildRequires:  python-devel
+{%- for req in requires %}
+BuildRequires:  python-{{ req|lower }}
+Requires:       pyhton-{{ req|lower }}
+{%- endfor %}
+
+%description
+{{ summary }}
+
+
+%prep
+{%- if name != name|lower %}
+%setup -q -n {{ name }}-%{version}
+{%- else %}
+%setup -q -n %{mod_name}-%{version}
+{%- endif %}
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build  --prefix=%{_prefix} 
--root=%{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+%files -f
+%defattr(-,root,root)
+%{python_sitelib}/*
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/py2pack/templates/opensuse.dsc 
new/py2pack-0.3.17/py2pack/templates/opensuse.dsc
--- old/py2pack-0.3.15/py2pack/templates/opensuse.dsc   2010-12-13 
08:51:34.000000000 +0100
+++ new/py2pack-0.3.17/py2pack/templates/opensuse.dsc   2011-05-06 
15:18:53.000000000 +0200
@@ -15,7 +15,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 
 Format: 1.0
-Source: {{ name }}-{{ version }}.tar.gz
+Source: {{ file_name }}
 Version: {{ version }}
 Binary: python-{{ name|lower }}
 Maintainer: {{ user_name }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/py2pack/templates/opensuse.spec 
new/py2pack-0.3.17/py2pack/templates/opensuse.spec
--- old/py2pack-0.3.15/py2pack/templates/opensuse.spec  2011-04-26 
15:18:20.000000000 +0200
+++ new/py2pack-0.3.17/py2pack/templates/opensuse.spec  2011-05-06 
15:50:55.000000000 +0200
@@ -25,7 +25,7 @@
 Summary:        {{ summary }}
 License:        {{ license }}
 Group:          Development/Languages/Python
-Source:         %{mod_name}-%{version}{{ ending }}
+Source:         {{ file_name }}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  python-devel
 {%- for req in requires %}
@@ -58,7 +58,7 @@
 rm -rf %{buildroot}
 
 %files
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 # You may have to add additional files here (documentation and binaries mostly)
 %{python_sitelib}/*
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/py2pack-0.3.15/test/test_py2pack.py 
new/py2pack-0.3.17/test/test_py2pack.py
--- old/py2pack-0.3.15/test/test_py2pack.py     1970-01-01 01:00:00.000000000 
+0100
+++ new/py2pack-0.3.17/test/test_py2pack.py     2011-05-06 16:04:06.000000000 
+0200
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2010, Sascha Peilicke <[email protected]>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (see the file COPYING); if not, write to the
+# Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
+
+import unittest
+import doctest
+
+import py2pack
+
+class Test(unittest.TestCase):
+    """Unit tests for py2pack."""
+
+    def test_doctests(self):
+        """Run py2pack doctests"""
+        doctest.testmod(py2pack)
+
+if __name__ == "__main__":
+    unittest.main()


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



Remember to have fun...

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

Reply via email to