- version update to 0.8

* Use pyproject.toml and drop outdated Python support
  * Drop outdated Python versions from GitHub Actions
  * Initial support for gzip compressed BEAM files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybeam?expand=0&rev=36
This commit is contained in:
Matwey Kornilov 2024-08-29 19:14:39 +00:00 committed by Git OBS Bridge
commit e655e58fbd
7 changed files with 237 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
pybeam-0.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
pybeam-0.8.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15c6e52e36e8d98dd9c07309ae3229190217cc4620faae0036e3ac1117baacb4
size 10964

114
python-pybeam.changes Normal file
View File

@ -0,0 +1,114 @@
-------------------------------------------------------------------
Thu Aug 29 12:06:21 UTC 2024 - pgajdos@suse.com
- version update to 0.8
* Use pyproject.toml and drop outdated Python support
* Drop outdated Python versions from GitHub Actions
* Initial support for gzip compressed BEAM files
-------------------------------------------------------------------
Thu Nov 5 15:33:34 UTC 2020 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 0.7
- Fix CInf parse
- Drop make_sphinx_optional.patch
-------------------------------------------------------------------
Fri Feb 14 09:50:49 UTC 2020 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Version 0.6
-------------------------------------------------------------------
Wed Feb 12 16:47:55 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- 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
-------------------------------------------------------------------
Sun Dec 15 02:38:15 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- 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.
-------------------------------------------------------------------
Fri Jan 11 09:48:15 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
-------------------------------------------------------------------
Wed Dec 26 12:45:48 UTC 2018 - matwey.kornilov@gmail.com
- Version 0.5
- ported to construct 2.9.x
-------------------------------------------------------------------
Tue Dec 4 12:51:57 UTC 2018 - Matej Cepl <mcepl@suse.com>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Mon Mar 19 11:25:48 UTC 2018 - matwey.kornilov@gmail.com
- Version 0.4.1 (bsc#1089748):
- Add support for AtU8 chuck (fix Erlang 20.0 beam file format)
-------------------------------------------------------------------
Thu Aug 24 13:50:13 UTC 2017 - jmatejek@suse.com
- singlespec auto-conversion
-------------------------------------------------------------------
Fri Jan 20 19:35:02 UTC 2017 - matwey.kornilov@gmail.com
- Version 0.4:
- ported to construct 2.8.x
-------------------------------------------------------------------
Wed Jan 18 09:11:57 UTC 2017 - matwey.kornilov@gmail.com
- Update Source url
-------------------------------------------------------------------
Sun Jan 8 14:14:00 UTC 2017 - matwey.kornilov@gmail.com
- Only consruct 2.5.x is supported by pybeam 0.3.x
-------------------------------------------------------------------
Sat May 31 11:27:58 UTC 2014 - matwey.kornilov@gmail.com
- Version 0.3.2:
- add support for Erlang 17.0 (maps)
-------------------------------------------------------------------
Sat Mar 29 12:53:23 UTC 2014 - matwey.kornilov@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 )
-------------------------------------------------------------------
Thu Feb 20 16:40:23 UTC 2014 - matwey.kornilov@gmail.com
- Version 0.3:
- python 3.3 support
- minor fixes and add more unit-tests
- Code LitT FunT chunk now understood
-------------------------------------------------------------------
Mon May 6 14:05:27 UTC 2013 - matwey.kornilov@gmail.com
- Version 0.2:
- fixed floating point parsing
- fixed Atom lists indexation
-------------------------------------------------------------------
Wed May 1 15:57:09 UTC 2013 - matwey.kornilov@gmail.com
- Initial version

90
python-pybeam.spec Normal file
View File

@ -0,0 +1,90 @@
#
# spec file for package python-pybeam
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%endif
%if "%{flavor}" == ""
%bcond_with test
%endif
Name: python-pybeam%{?psuffix}
Version: 0.8
Release: 0
Summary: Python module to parse Erlang BEAM files
License: MIT
Group: Development/Languages/Python
URL: https://github.com/matwey/pybeam
Source: https://files.pythonhosted.org/packages/source/p/pybeam/pybeam-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-construct < 2.11
Requires: python-construct >= 2.9
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module construct < 2.11}
BuildRequires: %{python_module construct >= 2.9}
BuildRequires: %{python_module pybeam}
BuildRequires: %{python_module pytest}
%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.
%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
%autosetup -p1 -n pybeam-%{version}
%build
%if %{without test}
%pyproject_wheel
%endif
%install
%if %{without test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%pytest
%endif
%if %{without test}
%files %{python_files}
%license LICENSE
%{python_sitelib}/pybeam
%{python_sitelib}/pybeam-*-info
%endif
%changelog