commit python-pybeam for openSUSE:Factory

2020-02-20 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2020-02-20 14:53:19

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new.26092 (New)


Package is "python-pybeam"

Thu Feb 20 14:53:19 2020 rev:16 rq:774364 version:0.6

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2019-12-25 10:54:36.121625552 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new.26092/python-pybeam.changes   
2020-02-20 14:53:21.822049106 +0100
@@ -1,0 +2,13 @@
+Fri Feb 14 09:50:49 UTC 2020 - Matwey Kornilov 
+
+- Version 0.6
+
+---
+Wed Feb 12 16:47:55 UTC 2020 - Tomáš Chvátal 
+
+- Remove doc conditional as it is never built due to always being
+  as a bcond_with
+- Use unittest directly to avoid setup.py test deprecation
+- Allow usage with construct 2.10
+
+---

Old:

  pybeam-0.5.tar.gz

New:

  pybeam-0.6.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.zhG5oc/_old  2020-02-20 14:53:22.570050612 +0100
+++ /var/tmp/diff_new_pack.zhG5oc/_new  2020-02-20 14:53:22.574050620 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-pybeam
+# spec file for package python
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,39 +19,33 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
-%bcond_withdoc
-%bcond_without test
 %define psuffix -test
+%bcond_without test
 %endif
 %if "%{flavor}" == ""
-%bcond_withdoc
 %bcond_withtest
 %endif
 Name:   python-pybeam%{?psuffix}
-Version:0.5
+Version:0.6
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
-URL:http://github.com/matwey/pybeam
+URL:https://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
 Patch0: make_sphinx_optional.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-%if %{with doc}
-BuildRequires:  %{python_module Sphinx}
-BuildRequires:  %{python_module construct < 2.10}
-BuildRequires:  %{python_module construct >= 2.9}
-%endif
-%if %{with test}
-BuildRequires:  %{python_module pybeam == %{version}}
-BuildRequires:  %{python_module six}
-%endif
-Requires:   python-construct < 2.10
+Requires:   python-construct < 2.11
 Requires:   python-construct >= 2.9
 Requires:   python-six >= 1.4.0
 BuildArch:  noarch
+%if %{with test}
+BuildRequires:  %{python_module construct < 2.11}
+BuildRequires:  %{python_module construct >= 2.9}
+BuildRequires:  %{python_module six}
+%endif
 %python_subpackages
 
 %description
@@ -60,7 +54,7 @@
 chunks in pretty python format.
 
 %package -n %{name}-doc
-Summary:API Documentation for %name
+Summary:API Documentation for %{name}
 Group:  Documentation/HTML
 
 %description -n %{name}-doc
@@ -76,9 +70,6 @@
 %if %{without test}
 %python_build
 %endif
-%if %{with doc}
-%python_build build_sphinx
-%endif
 
 %install
 %if %{without test}
@@ -88,7 +79,7 @@
 
 %check
 %if %{with test}
-%python_exec setup.py test
+%python_exec -m unittest discover
 %endif
 
 %if %{without test}
@@ -97,9 +88,4 @@
 %{python_sitelib}/*
 %endif
 
-%if %{with doc}
-%files -n %{name}-doc
-%doc build/html
-%endif
-
 %changelog

++ make_sphinx_optional.patch ++
--- /var/tmp/diff_new_pack.zhG5oc/_old  2020-02-20 14:53:22.602050676 +0100
+++ /var/tmp/diff_new_pack.zhG5oc/_new  2020-02-20 14:53:22.602050676 +0100
@@ -20,7 +20,7 @@
 +from setuptools import find_packages, setup, Command
  
  name="pybeam"
- version="0.5"
+ version="0.6"
  test_suite="test"
  
 +class BuildSphinx(Command):
@@ -48,7 +48,7 @@
license='MIT',
packages=find_packages(exclude=(test_suite,)),
test_suite=test_suite,
--  install_requires=['construct>=2.9,<2.10', 'six', 'sphinx'],
+-  install_requires=['construct>=2.9,<2.11', 'six', 'sphinx'],
 -  command_options={
 -  'build_sphinx': {
 -  'project': ('setup.py', name),
@@ -57,7 +57,7 @@
 -  'source_dir': ('setup.py', 'doc')
 -  }
 -  },
-+  install_requires=['construct>=2.9,<2.10', 'six'],
++  

commit python-pybeam for openSUSE:Factory

2019-12-25 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2019-12-25 10:54:19

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new.6675 (New)


Package is "python-pybeam"

Wed Dec 25 10:54:19 2019 rev:15 rq:758778 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2019-02-26 22:16:04.434197595 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new.6675/python-pybeam.changes
2019-12-25 10:54:36.121625552 +0100
@@ -1,0 +2,8 @@
+Sun Dec 15 02:38:15 UTC 2019 - Stefan Brüns 
+
+- Make Sphinx dependency optional (docs are not built by default),
+  add make_sphinx_optional.patch
+- Use _multibuild for tests to reduce the build dependencies
+  and simplify bootstrap for e.g. rpmlint.
+
+---

New:

  _multibuild
  make_sphinx_optional.patch



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.IuUIUp/_old  2019-12-25 10:54:39.257626535 +0100
+++ /var/tmp/diff_new_pack.IuUIUp/_new  2019-12-25 10:54:39.285626543 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybeam
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,17 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name:   python-pybeam
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%bcond_withdoc
+%bcond_without test
+%define psuffix -test
+%endif
+%if "%{flavor}" == ""
+%bcond_withdoc
+%bcond_withtest
+%endif
+Name:   python-pybeam%{?psuffix}
 Version:0.5
 Release:0
 Summary:Python module to parse Erlang BEAM files
@@ -25,13 +35,19 @@
 Group:  Development/Languages/Python
 URL:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
+Patch0: make_sphinx_optional.patch
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+%if %{with doc}
 BuildRequires:  %{python_module Sphinx}
 BuildRequires:  %{python_module construct < 2.10}
 BuildRequires:  %{python_module construct >= 2.9}
-BuildRequires:  %{python_module setuptools}
+%endif
+%if %{with test}
+BuildRequires:  %{python_module pybeam == %{version}}
 BuildRequires:  %{python_module six}
-BuildRequires:  fdupes
-BuildRequires:  python-rpm-macros
+%endif
 Requires:   python-construct < 2.10
 Requires:   python-construct >= 2.9
 Requires:   python-six >= 1.4.0
@@ -43,21 +59,47 @@
 imports, exports, atoms, as well as compile info and attribute
 chunks in pretty python format.
 
+%package -n %{name}-doc
+Summary:API Documentation for %name
+Group:  Documentation/HTML
+
+%description -n %{name}-doc
+Python module to parse Erlang BEAM files, now it is able to read
+imports, exports, atoms, as well as compile info and attribute
+chunks in pretty python format.
+
 %prep
 %setup -q -n pybeam-%{version}
+%patch0 -p1
 
 %build
+%if %{without test}
 %python_build
+%endif
+%if %{with doc}
+%python_build build_sphinx
+%endif
 
 %install
+%if %{without test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
 %check
+%if %{with test}
 %python_exec setup.py test
+%endif
 
+%if %{without test}
 %files %{python_files}
 %license LICENSE
 %{python_sitelib}/*
+%endif
+
+%if %{with doc}
+%files -n %{name}-doc
+%doc build/html
+%endif
 
 %changelog

++ _multibuild ++

  test

++ make_sphinx_optional.patch ++
>From c1b08b470291b8f9334e600563efa6d2651c2a66 Mon Sep 17 00:00:00 2001
From: StefanBruens 
Date: Sun, 15 Dec 2019 02:29:27 +0100
Subject: [PATCH] Do no require Sphinx when doing just a regular build

Only the 'build_sphinx' command requires sphinx, so do the
import from the command.
---
 setup.py | 33 +
 1 file changed, 21 insertions(+), 12 deletions(-)

diff --git a/setup.py b/setup.py
index 2057839..04a5917 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,27 @@
-from setuptools import find_packages, setup
-from sphinx.setup_command import BuildDoc
-cmdclass = {'build_sphinx': BuildDoc}
+from setuptools import find_packages, setup, Command
 
 name="pybeam"
 version="0.5"
 test_suite="test"
 
+class BuildSphinx(Command):
+   description = 'Build Sphinx documentation'
+   user_options = []
+
+   def initialize_options(self):
+   pass
+
+   def 

commit python-pybeam for openSUSE:Factory

2019-02-26 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2019-02-26 22:16:01

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new.28833 (New)


Package is "python-pybeam"

Tue Feb 26 22:16:01 2019 rev:14 rq:679053 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2019-01-28 20:45:21.742099774 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new.28833/python-pybeam.changes   
2019-02-26 22:16:04.434197595 +0100
@@ -1,0 +2,5 @@
+Fri Jan 11 09:48:15 UTC 2019 - Tomáš Chvátal 
+
+- Fix fdupes call
+
+---



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.7lfWsh/_old  2019-02-26 22:16:04.898197437 +0100
+++ /var/tmp/diff_new_pack.7lfWsh/_new  2019-02-26 22:16:04.902197436 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybeam
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -51,7 +51,7 @@
 
 %install
 %python_install
-%fdupes %{buildroot}/%{_prefix}
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test




commit python-pybeam for openSUSE:Factory

2019-01-28 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2019-01-28 20:45:19

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new.28833 (New)


Package is "python-pybeam"

Mon Jan 28 20:45:19 2019 rev:13 rq:662304 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2018-12-27 00:27:47.327741789 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new.28833/python-pybeam.changes   
2019-01-28 20:45:21.742099774 +0100
@@ -1,0 +2,6 @@
+Wed Dec 26 12:45:48 UTC 2018 - matwey.korni...@gmail.com
+
+- Version 0.5
+  - ported to construct 2.9.x
+
+---

Old:

  LICENSE
  pybeam-0.4.1.tar.gz

New:

  pybeam-0.5.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.1PEe9A/_old  2019-01-28 20:45:23.358098075 +0100
+++ /var/tmp/diff_new_pack.1PEe9A/_new  2019-01-28 20:45:23.358098075 +0100
@@ -12,26 +12,28 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pybeam
-Version:0.4.1
+Version:0.5
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
 URL:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
-Source1:LICENSE
-BuildRequires:  %{python_module construct < 2.9}
-BuildRequires:  %{python_module construct >= 2.8}
+BuildRequires:  %{python_module Sphinx}
+BuildRequires:  %{python_module construct < 2.10}
+BuildRequires:  %{python_module construct >= 2.9}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:   python-construct
+Requires:   python-construct < 2.10
+Requires:   python-construct >= 2.9
 Requires:   python-six >= 1.4.0
 BuildArch:  noarch
 %python_subpackages
@@ -43,13 +45,16 @@
 
 %prep
 %setup -q -n pybeam-%{version}
-cp %{SOURCE1} .
 
 %build
 %python_build
 
 %install
 %python_install
+%fdupes %{buildroot}/%{_prefix}
+
+%check
+%python_exec setup.py test
 
 %files %{python_files}
 %license LICENSE

++ pybeam-0.4.1.tar.gz -> pybeam-0.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.4.1/LICENSE new/pybeam-0.5/LICENSE
--- old/pybeam-0.4.1/LICENSE1970-01-01 01:00:00.0 +0100
+++ new/pybeam-0.5/LICENSE  2018-12-28 09:40:23.0 +0100
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Matwey V. Kornilov 
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.4.1/MANIFEST.in new/pybeam-0.5/MANIFEST.in
--- old/pybeam-0.4.1/MANIFEST.in1970-01-01 01:00:00.0 +0100
+++ new/pybeam-0.5/MANIFEST.in  2018-12-28 09:40:23.0 +0100
@@ -0,0 +1,5 @@
+include LICENSE
+include README.md
+include doc/*
+include requirements.txt
+recursive-include test *.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.4.1/PKG-INFO new/pybeam-0.5/PKG-INFO
--- old/pybeam-0.4.1/PKG-INFO   2018-03-19 12:22:35.0 +0100
+++ new/pybeam-0.5/PKG-INFO 2018-12-28 

commit python-pybeam for openSUSE:Factory

2018-12-26 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2018-12-27 00:27:46

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new.28833 (New)


Package is "python-pybeam"

Thu Dec 27 00:27:46 2018 rev:12 rq:659577 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2018-04-17 11:18:46.250886197 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new.28833/python-pybeam.changes   
2018-12-27 00:27:47.327741789 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:51:57 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.jh7ms6/_old  2018-12-27 00:27:47.783741416 +0100
+++ /var/tmp/diff_new_pack.jh7ms6/_new  2018-12-27 00:27:47.783741416 +0100
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -23,18 +23,16 @@
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
-Url:http://github.com/matwey/pybeam
+URL:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
 Source1:LICENSE
 BuildRequires:  %{python_module construct < 2.9}
 BuildRequires:  %{python_module construct >= 2.8}
-BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
 BuildRequires:  python-rpm-macros
 Requires:   python-construct
 Requires:   python-six >= 1.4.0
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
 %python_subpackages
 
@@ -45,7 +43,7 @@
 
 %prep
 %setup -q -n pybeam-%{version}
-cp %{S:1} .
+cp %{SOURCE1} .
 
 %build
 %python_build
@@ -54,8 +52,7 @@
 %python_install
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc LICENSE
+%license LICENSE
 %{python_sitelib}/*
 
 %changelog




commit python-pybeam for openSUSE:Factory

2018-04-17 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2018-04-17 11:18:42

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is "python-pybeam"

Tue Apr 17 11:18:42 2018 rev:11 rq:597185 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2018-03-26 11:56:13.777608584 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2018-04-17 11:18:46.250886197 +0200
@@ -4 +4 @@
-- Version 0.4.1:
+- Version 0.4.1 (bsc#1089748):



Other differences:
--



commit python-pybeam for openSUSE:Factory

2018-03-26 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2018-03-26 11:56:12

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is "python-pybeam"

Mon Mar 26 11:56:12 2018 rev:10 rq:588582 version:0.4.1

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2017-09-07 22:09:54.794889450 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2018-03-26 11:56:13.777608584 +0200
@@ -1,0 +2,6 @@
+Mon Mar 19 11:25:48 UTC 2018 - matwey.korni...@gmail.com
+
+- Version 0.4.1:
+  - Add support for AtU8 chuck (fix Erlang 20.0 beam file format)
+
+---

Old:

  pybeam-0.4.tar.gz

New:

  LICENSE
  pybeam-0.4.1.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.wQQsBG/_old  2018-03-26 11:56:14.789572075 +0200
+++ /var/tmp/diff_new_pack.wQQsBG/_new  2018-03-26 11:56:14.817571064 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybeam
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,19 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pybeam
-Version:0.4
+Version:0.4.1
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
 Url:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
+Source1:LICENSE
+BuildRequires:  %{python_module construct < 2.9}
 BuildRequires:  %{python_module construct >= 2.8}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module six}
 BuildRequires:  python-rpm-macros
 Requires:   python-construct
 Requires:   python-six >= 1.4.0
@@ -42,6 +45,7 @@
 
 %prep
 %setup -q -n pybeam-%{version}
+cp %{S:1} .
 
 %build
 %python_build
@@ -51,6 +55,7 @@
 
 %files %{python_files}
 %defattr(-,root,root,-)
+%doc LICENSE
 %{python_sitelib}/*
 
 %changelog

++ LICENSE ++
The MIT License (MIT)

Copyright (c) 2013 Matwey V. Kornilov 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

++ pybeam-0.4.tar.gz -> pybeam-0.4.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.4/PKG-INFO new/pybeam-0.4.1/PKG-INFO
--- old/pybeam-0.4/PKG-INFO 2017-01-20 20:30:35.0 +0100
+++ new/pybeam-0.4.1/PKG-INFO   2018-03-19 12:22:35.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.4
+Version: 0.4.1
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.4/README.md new/pybeam-0.4.1/README.md
--- old/pybeam-0.4/README.md1970-01-01 01:00:00.0 +0100
+++ new/pybeam-0.4.1/README.md  2018-03-19 12:22:19.0 +0100
@@ -0,0 +1,25 @@
+pybeam
+==
+[![Build 
Status](https://travis-ci.org/matwey/pybeam.svg?branch=master)](https://travis-ci.org/matwey/pybeam)
+[![PyPI 
version](https://badge.fury.io/py/pybeam.svg)](https://badge.fury.io/py/pybeam)
+
+Python module to parse Erlang BEAM files.
+
+This is not ready yet, so pull-requests are welcome.
+
+Quick start:
+```python

commit python-pybeam for openSUSE:Factory

2017-09-07 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2017-09-07 22:09:53

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is "python-pybeam"

Thu Sep  7 22:09:53 2017 rev:9 rq:520331 version:0.4

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2017-02-03 18:58:08.119321216 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2017-09-07 22:09:54.794889450 +0200
@@ -1,0 +2,5 @@
+Thu Aug 24 13:50:13 UTC 2017 - jmate...@suse.com
+
+- singlespec auto-conversion
+
+---
@@ -49,0 +55 @@
+



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.yJCOdd/_old  2017-09-07 22:09:55.350811094 +0200
+++ /var/tmp/diff_new_pack.yJCOdd/_new  2017-09-07 22:09:55.354810529 +0200
@@ -16,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-pybeam
 Version:0.4
 Release:0
@@ -24,31 +25,31 @@
 Group:  Development/Languages/Python
 Url:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
-BuildRequires:  python-construct >= 2.8
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  %{python_module construct >= 2.8}
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 Requires:   python-construct
 Requires:   python-six >= 1.4.0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:  noarch
-%endif
+%python_subpackages
 
 %description
-Python module to parse Erlang BEAM files, now it is able to read imports, 
exports, atoms, as well as compile info and attribute chunks in pretty python 
format.
+Python module to parse Erlang BEAM files, now it is able to read
+imports, exports, atoms, as well as compile info and attribute
+chunks in pretty python format.
 
 %prep
 %setup -q -n pybeam-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root,-)
 %{python_sitelib}/*
 




commit python-pybeam for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2017-01-28 11:04:27

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is "python-pybeam"

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2017-01-23 11:29:16.290947929 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2017-02-03 18:58:08.119321216 +0100
@@ -1,0 +2,6 @@
+Fri Jan 20 19:35:02 UTC 2017 - matwey.korni...@gmail.com
+
+- Version 0.4:
+  - ported to construct 2.8.x
+
+---

Old:

  pybeam-0.3.3.tar.gz

New:

  pybeam-0.4.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.ID6ieK/_old  2017-02-03 18:58:09.227165626 +0100
+++ /var/tmp/diff_new_pack.ID6ieK/_new  2017-02-03 18:58:09.227165626 +0100
@@ -17,14 +17,14 @@
 
 
 Name:   python-pybeam
-Version:0.3.3
+Version:0.4
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
 Url:http://github.com/matwey/pybeam
 Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
-BuildRequires:  python-construct < 2.8
+BuildRequires:  python-construct >= 2.8
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-construct

++ pybeam-0.3.3.tar.gz -> pybeam-0.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.3/PKG-INFO new/pybeam-0.4/PKG-INFO
--- old/pybeam-0.3.3/PKG-INFO   2017-01-08 15:06:32.0 +0100
+++ new/pybeam-0.4/PKG-INFO 2017-01-20 20:30:35.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3.3
+Version: 0.4
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.3/pybeam/beam_construct.py 
new/pybeam-0.4/pybeam/beam_construct.py
--- old/pybeam-0.3.3/pybeam/beam_construct.py   2017-01-08 14:57:10.0 
+0100
+++ new/pybeam-0.4/pybeam/beam_construct.py 2017-01-18 19:11:21.0 
+0100
@@ -25,83 +25,44 @@
 from pybeam.eetf_construct import term, external_term
 import codecs
 
-erl_version_magic = Magic(b'\x83')
+chunk_atom = PrefixedArray(Int32ub, PascalString(lengthfield = Int8ub, 
encoding="latin1"))
 
-chunk_atom = Rename("chunk_atom", PrefixedArray(PascalString("atom", 
encoding="latin1"), length_field = UBInt32("len")))
+chunk_attr = external_term
 
-chunk_attr = Rename("chunk_attr", external_term)
+chunk_cinf = external_term
 
-chunk_cinf = Rename("chunk_cinf", external_term)
-
-chunk_code = Struct("chunk_code",
-   UBInt32("headerlen"),
-   UBInt32("set"),
-   UBInt32("opcode_max"),
-   UBInt32("labels"),
-   UBInt32("functions"),
-   Bytes("skip", lambda ctx: ctx.headerlen-16),
-   Bytes("code", lambda ctx: ctx._.size-ctx.headerlen-4),
+chunk_code = Struct("headerlen" / Int32ub,
+   "set" / Int32ub,
+   "opcode_max" / Int32ub,
+   "labels" / Int32ub,
+   "functions" / Int32ub,
+   Bytes(lambda ctx: ctx.headerlen-16),
+   Bytes(lambda ctx: ctx._.size-ctx.headerlen-4),
)
 
-chunk_expt = Struct("chunk_expt",
-   UBInt32("len"),
-   Array(lambda ctx: ctx.len, Struct("entry",
-   UBInt32("function"),
-   UBInt32("arity"),
-   UBInt32("label"),
-   )
-   )
-   )
+chunk_expt = Struct("entry" / PrefixedArray(Int32ub, Struct("function" / 
Int32ub,
+   "arity" / Int32ub,
+   "label" / Int32ub)))
 
-chunk_impt = Struct("chunk_impt",
-   UBInt32("len"),
-   Array(lambda ctx: ctx.len, Struct("entry",
-   UBInt32("module"),
-   UBInt32("function"),
-   UBInt32("arity"),
-   )
-   )
-   )
+chunk_impt = Struct("entry" / PrefixedArray(Int32ub, Struct("module" / Int32ub,
+   "function" / Int32ub,
+   "arity" / Int32ub)))
 
-chunk_litt = Struct("chunk_litt",
-   UBInt32("len_uncompressed"),
-   TunnelAdapter(
-   ExprAdapter(Bytes("data", length = lambda ctx: ctx._.size-4),
-   encoder = lambda obj,ctx: 
codecs.encode(obj,"zlib_codec"),
-   decoder = lambda obj,ctx: 
codecs.decode(obj,"zlib_codec")
-   ),
-   Struct("uncompressed",
-   

commit python-pybeam for openSUSE:Factory

2017-01-23 Thread root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2017-01-23 11:29:15

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is "python-pybeam"

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2014-06-08 13:36:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2017-01-23 11:29:16.290947929 +0100
@@ -1,0 +2,10 @@
+Wed Jan 18 09:11:57 UTC 2017 - matwey.korni...@gmail.com
+
+- Update Source url
+
+---
+Sun Jan  8 14:14:00 UTC 2017 - matwey.korni...@gmail.com
+
+- Only consruct 2.5.x is supported by pybeam 0.3.x 
+
+---

Old:

  pybeam-0.3.2.tar.gz

New:

  pybeam-0.3.3.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.x6LwCY/_old  2017-01-23 11:29:16.630899733 +0100
+++ /var/tmp/diff_new_pack.x6LwCY/_new  2017-01-23 11:29:16.634899166 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybeam
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,14 @@
 
 
 Name:   python-pybeam
-Version:0.3.2
+Version:0.3.3
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
 Group:  Development/Languages/Python
 Url:http://github.com/matwey/pybeam
-Source: 
http://pypi.python.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
-BuildRequires:  python-construct
+Source: 
https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
+BuildRequires:  python-construct < 2.8
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-construct

++ pybeam-0.3.2.tar.gz -> pybeam-0.3.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.2/PKG-INFO new/pybeam-0.3.3/PKG-INFO
--- old/pybeam-0.3.2/PKG-INFO   2014-05-31 13:26:30.0 +0200
+++ new/pybeam-0.3.3/PKG-INFO   2017-01-08 15:06:32.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3.2
+Version: 0.3.3
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.2/pybeam.egg-info/PKG-INFO 
new/pybeam-0.3.3/pybeam.egg-info/PKG-INFO
--- old/pybeam-0.3.2/pybeam.egg-info/PKG-INFO   2014-05-31 13:26:29.0 
+0200
+++ new/pybeam-0.3.3/pybeam.egg-info/PKG-INFO   2017-01-08 15:06:31.0 
+0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3.2
+Version: 0.3.3
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.2/pybeam.egg-info/requires.txt 
new/pybeam-0.3.3/pybeam.egg-info/requires.txt
--- old/pybeam-0.3.2/pybeam.egg-info/requires.txt   2014-05-31 
13:26:29.0 +0200
+++ new/pybeam-0.3.3/pybeam.egg-info/requires.txt   2017-01-08 
15:06:31.0 +0100
@@ -1 +1 @@
-construct
\ No newline at end of file
+construct>=2.5,<2.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.2/setup.py new/pybeam-0.3.3/setup.py
--- old/pybeam-0.3.2/setup.py   2014-05-31 13:24:53.0 +0200
+++ new/pybeam-0.3.3/setup.py   2017-01-08 15:05:36.0 +0100
@@ -1,7 +1,7 @@
 from setuptools import setup
 
 setup(name='pybeam',
-  version='0.3.2',
+  version='0.3.3',
   description='Python module to parse Erlang BEAM files',
   url='http://github.com/matwey/pybeam',
   author='Matwey V. Kornilov',
@@ -9,6 +9,5 @@
   license='MIT',
   packages=['pybeam'],
   test_suite = 'test',
-  install_requires=['construct'], 
+  install_requires=['construct>=2.5,<2.8'],
   zip_safe=False)
-




commit python-pybeam for openSUSE:Factory

2014-06-08 Thread h_root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2014-06-08 13:36:55

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is python-pybeam

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2014-04-05 16:49:54.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2014-06-08 13:36:59.0 +0200
@@ -1,0 +2,6 @@
+Sat May 31 11:27:58 UTC 2014 - matwey.korni...@gmail.com
+
+- Version 0.3.2:
+  - add support for Erlang 17.0 (maps)
+
+---

Old:

  pybeam-0.3.1.tar.gz

New:

  pybeam-0.3.2.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.9xB1aH/_old  2014-06-08 13:36:59.0 +0200
+++ /var/tmp/diff_new_pack.9xB1aH/_new  2014-06-08 13:36:59.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python-pybeam
-Version:0.3.1
+Version:0.3.2
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT

++ pybeam-0.3.1.tar.gz - pybeam-0.3.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.1/PKG-INFO new/pybeam-0.3.2/PKG-INFO
--- old/pybeam-0.3.1/PKG-INFO   2014-03-29 14:00:16.0 +0100
+++ new/pybeam-0.3.2/PKG-INFO   2014-05-31 13:26:30.0 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3.1
+Version: 0.3.2
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.1/pybeam/eetf_construct.py 
new/pybeam-0.3.2/pybeam/eetf_construct.py
--- old/pybeam-0.3.1/pybeam/eetf_construct.py   2014-03-29 13:39:02.0 
+0100
+++ new/pybeam-0.3.2/pybeam/eetf_construct.py   2014-05-31 13:20:34.0 
+0200
@@ -45,6 +45,12 @@
def _encode(self, obj, ctx):
return (len(obj), obj, [])
 
+class MapAdapter(Adapter):
+   def _decode(self, obj, ctx):
+   return dict(obj)
+   def _encode(self, obj, ctx):
+   return list(obj.items())
+
 def BigInteger(subconname, length_field = UBInt8(length)):
def decode_big(obj,ctx):
(length, isNegative, value) = obj
@@ -88,6 +94,7 @@
long : 111,
Fun : 112,
MFA : 113,
+   map : 116,
BitBinary : 77, 
}
if obj == []:
@@ -183,6 +190,13 @@
 new_float = BFloat64(new_float)
 atom_utf8 = PascalString(atom_utf8, length_field = UBInt16(length), 
encoding=utf8)
 small_atom_utf8 = PascalString(small_atom_utf8, encoding=utf8)
+key_value = ExprAdapter(Sequence(key_value,
+   LazyBound(key, lambda : term),
+   LazyBound(value, lambda : term)),
+   encoder = lambda obj,ctx: obj,
+   decoder = lambda obj,ctx: tuple(obj)
+   )
+map = MapAdapter(PrefixedArray(key_value, length_field = UBInt32(arity)))
 
 term = ExprAdapter(Sequence(term,
UBInt8(tag),
@@ -206,6 +220,7 @@
111: large_big,
114: new_reference,
115: small_atom,
+   116: map,
117: fun,
112: new_fun,
113: export,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.1/pybeam.egg-info/PKG-INFO 
new/pybeam-0.3.2/pybeam.egg-info/PKG-INFO
--- old/pybeam-0.3.1/pybeam.egg-info/PKG-INFO   2014-03-29 14:00:16.0 
+0100
+++ new/pybeam-0.3.2/pybeam.egg-info/PKG-INFO   2014-05-31 13:26:29.0 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3.1
+Version: 0.3.2
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3.1/setup.py new/pybeam-0.3.2/setup.py
--- old/pybeam-0.3.1/setup.py   2014-03-29 13:48:42.0 +0100
+++ new/pybeam-0.3.2/setup.py   2014-05-31 13:24:53.0 +0200
@@ -1,7 +1,7 @@
 from setuptools import setup
 
 setup(name='pybeam',
-  version='0.3.1',
+  version='0.3.2',
   description='Python module to parse Erlang BEAM files',
   url='http://github.com/matwey/pybeam',
   author='Matwey V. Kornilov',

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: 

commit python-pybeam for openSUSE:Factory

2014-04-05 Thread h_root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2014-04-05 16:49:51

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is python-pybeam

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2014-02-23 07:16:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2014-04-05 16:49:54.0 +0200
@@ -1,0 +2,8 @@
+Sat Mar 29 12:53:23 UTC 2014 - matwey.korni...@gmail.com
+
+- Verision 0.3.1:
+  - fix parsing lists with not-null tail
+  - fix parsing strings ( six  1.4.0 is required to support both
+python 2 and python 3 )
+
+---

Old:

  pybeam-0.3.tar.gz

New:

  pybeam-0.3.1.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.tw8GVi/_old  2014-04-05 16:49:55.0 +0200
+++ /var/tmp/diff_new_pack.tw8GVi/_new  2014-04-05 16:49:55.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   python-pybeam
-Version:0.3
+Version:0.3.1
 Release:0
 Summary:Python module to parse Erlang BEAM files
 License:MIT
@@ -28,6 +28,7 @@
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires:   python-construct
+Requires:   python-six = 1.4.0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version}  0%{?suse_version} = 1110
 %{!?python_sitelib: %global python_sitelib %(python -c from 
distutils.sysconfig import get_python_lib; print get_python_lib())}

++ pybeam-0.3.tar.gz - pybeam-0.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3/PKG-INFO new/pybeam-0.3.1/PKG-INFO
--- old/pybeam-0.3/PKG-INFO 2014-02-20 17:34:34.0 +0100
+++ new/pybeam-0.3.1/PKG-INFO   2014-03-29 14:00:16.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.3
+Version: 0.3.1
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3/pybeam/eetf_construct.py 
new/pybeam-0.3.1/pybeam/eetf_construct.py
--- old/pybeam-0.3/pybeam/eetf_construct.py 2014-02-20 17:30:18.0 
+0100
+++ new/pybeam-0.3.1/pybeam/eetf_construct.py   2014-03-29 13:39:02.0 
+0100
@@ -36,6 +36,15 @@
def _encode(self, obj, ctv):
return list(obj)
 
+class ListAdapter(Adapter):
+   def _decode(self, obj, ctx):
+   if type(obj[2]) == type(list()) and obj[2] == []:
+   return obj[1]
+   obj[1].append(obj[2])
+   return obj[1]
+   def _encode(self, obj, ctx):
+   return (len(obj), obj, [])
+
 def BigInteger(subconname, length_field = UBInt8(length)):
def decode_big(obj,ctx):
(length, isNegative, value) = obj
@@ -122,17 +131,15 @@
 nil = ExprAdapter(Sequence(nil),
encoder = lambda obj,ctx: (),
decoder = lambda obj,ctx: [])
-string = ExprAdapter(PascalString(string, length_field = UBInt16(length), 
encoding=utf8),
+string = ExprAdapter(PascalString(string, length_field = UBInt16(length), 
encoding=None),
encoder = lambda obj,ctx: obj.value,
decoder = lambda obj,ctx: etString(obj))
-list_ = ExprAdapter(Sequence(list,
+list_ = ListAdapter(Sequence(list,
UBInt32(length),
Array(lambda ctx: ctx.length, LazyBound(elements, lambda : 
term)),
LazyBound(tail, lambda : term),
-   nested = False
-   ),
-   encoder = lambda obj,ctx: (len(obj), obj, []),
-   decoder = lambda obj,ctx: obj[1] + obj[2])
+   nested = False,
+   ))
 binary = ExprAdapter(PascalString(binary, length_field = UBInt32(length)),
encoder = lambda obj,ctx: obj.value,
decoder = lambda obj,ctx: Binary(obj))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.3/pybeam/erlang_types.py 
new/pybeam-0.3.1/pybeam/erlang_types.py
--- old/pybeam-0.3/pybeam/erlang_types.py   2014-02-15 13:51:01.0 
+0100
+++ new/pybeam-0.3.1/pybeam/erlang_types.py 2014-03-29 13:07:05.0 
+0100
@@ -20,6 +20,8 @@
 # THE SOFTWARE.
 #
 
+from six import iterbytes
+
 class AtomCacheReference:
def __init__(self, index):
self.index = index
@@ -56,6 +58,10 @@
self.value = value
def 

commit python-pybeam for openSUSE:Factory

2014-02-22 Thread h_root
Hello community,

here is the log from the commit of package python-pybeam for openSUSE:Factory 
checked in at 2014-02-23 07:16:19

Comparing /work/SRC/openSUSE:Factory/python-pybeam (Old)
 and  /work/SRC/openSUSE:Factory/.python-pybeam.new (New)


Package is python-pybeam

Changes:

--- /work/SRC/openSUSE:Factory/python-pybeam/python-pybeam.changes  
2013-07-09 21:10:27.0 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybeam.new/python-pybeam.changes 
2014-02-23 07:16:20.0 +0100
@@ -1,0 +2,8 @@
+Thu Feb 20 16:40:23 UTC 2014 - matwey.korni...@gmail.com
+
+- Version 0.3:
+  - python 3.3 support
+  - minor fixes and add more unit-tests
+  - Code LitT FunT chunk now understood
+
+---

Old:

  pybeam-0.2.tar.gz

New:

  pybeam-0.3.tar.gz



Other differences:
--
++ python-pybeam.spec ++
--- /var/tmp/diff_new_pack.WE0Ded/_old  2014-02-23 07:16:21.0 +0100
+++ /var/tmp/diff_new_pack.WE0Ded/_new  2014-02-23 07:16:21.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybeam
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,19 +13,20 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 Name:   python-pybeam
-Version:0.2
+Version:0.3
 Release:0
-License:MIT
 Summary:Python module to parse Erlang BEAM files
-Url:http://github.com/matwey/pybeam
+License:MIT
 Group:  Development/Languages/Python
+Url:http://github.com/matwey/pybeam
 Source: 
http://pypi.python.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
+BuildRequires:  python-construct
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
-BuildRequires:  python-construct
 Requires:   python-construct
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if 0%{?suse_version}  0%{?suse_version} = 1110

++ pybeam-0.2.tar.gz - pybeam-0.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.2/PKG-INFO new/pybeam-0.3/PKG-INFO
--- old/pybeam-0.2/PKG-INFO 2013-05-06 16:04:24.0 +0200
+++ new/pybeam-0.3/PKG-INFO 2014-02-20 17:34:34.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: pybeam
-Version: 0.2
+Version: 0.3
 Summary: Python module to parse Erlang BEAM files
 Home-page: http://github.com/matwey/pybeam
 Author: Matwey V. Kornilov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.2/pybeam/__init__.py 
new/pybeam-0.3/pybeam/__init__.py
--- old/pybeam-0.2/pybeam/__init__.py   2013-04-29 19:26:42.0 +0200
+++ new/pybeam-0.3/pybeam/__init__.py   2014-02-20 17:30:18.0 +0100
@@ -20,7 +20,7 @@
 # THE SOFTWARE.
 #
 
-from beam_file import BeamFile
+from pybeam.beam_file import BeamFile
 
 __all__ = [BeamFile]
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pybeam-0.2/pybeam/beam_construct.py 
new/pybeam-0.3/pybeam/beam_construct.py
--- old/pybeam-0.2/pybeam/beam_construct.py 2013-05-01 19:01:30.0 
+0200
+++ new/pybeam-0.3/pybeam/beam_construct.py 2014-02-20 17:30:18.0 
+0100
@@ -1,5 +1,6 @@
 #
 # Copyright (c) 2013 Matwey V. Kornilov matwey.korni...@gmail.com
+# Copyright (c) 2013 Fredrik Ahlberg fred...@z80.se
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the Software), to deal
@@ -21,11 +22,25 @@
 #
 
 from construct import *
-from eetf_construct import term
+from pybeam.eetf_construct import term, external_term
+import codecs
 
-chunk_atom = Struct(chunk_atom,
-   UBInt32(len),
-   Array(lambda ctx: ctx.len, PascalString(atom))
+erl_version_magic = Magic(b'\x83')
+
+chunk_atom = Rename(chunk_atom, PrefixedArray(PascalString(atom, 
encoding=latin1), length_field = UBInt32(len)))
+
+chunk_attr = Rename(chunk_attr, external_term)
+
+chunk_cinf = Rename(chunk_cinf, external_term)
+
+chunk_code = Struct(chunk_code,
+   UBInt32(headerlen),
+   UBInt32(set),
+   UBInt32(opcode_max),
+   UBInt32(labels),
+   UBInt32(functions),
+   Bytes(skip, lambda ctx: ctx.headerlen-16),
+   Bytes(code, lambda ctx: ctx._.size-ctx.headerlen-4),
)
 
 chunk_expt = Struct(chunk_expt,
@@ -48,6 +63,25 @@
)
)
 
+chunk_litt =