From 412a85c545640b232111c35a596d93f109f4a71bfbb5c292adc10b81c66ab418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 9 Apr 2020 12:47:05 +0000 Subject: [PATCH] Accepting request 792718 from home:pgajdos:python together with python-enaml OBS-URL: https://build.opensuse.org/request/show/792718 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bytecode?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + bytecode-0.11.0.tar.gz | 3 ++ python-bytecode.changes | 5 ++++ python-bytecode.spec | 62 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 bytecode-0.11.0.tar.gz create mode 100644 python-bytecode.changes create mode 100644 python-bytecode.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/bytecode-0.11.0.tar.gz b/bytecode-0.11.0.tar.gz new file mode 100644 index 0000000..5091ff4 --- /dev/null +++ b/bytecode-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c7f73b7aa2d2c5470d80da2e8c15f4c43314a08e9f74bac7f34bc1a802f49ea +size 58791 diff --git a/python-bytecode.changes b/python-bytecode.changes new file mode 100644 index 0000000..4242de9 --- /dev/null +++ b/python-bytecode.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu Apr 9 11:29:55 UTC 2020 - pgajdos@suse.com + +- initial version 0.11.0, required by python-enaml + diff --git a/python-bytecode.spec b/python-bytecode.spec new file mode 100644 index 0000000..2594b42 --- /dev/null +++ b/python-bytecode.spec @@ -0,0 +1,62 @@ +# +# spec file for package python-bytecode +# +# 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 +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-bytecode +Version: 0.11.0 +Release: 0 +Summary: Python module to generate and modify bytecode +License: MIT +Group: Development/Languages/Python +URL: https://github.com/vstinner/bytecode +Source: https://files.pythonhosted.org/packages/source/b/bytecode/bytecode-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-aenum >= 2.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module aenum} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Python module to generate and modify bytecode + +%prep +%setup -q -n bytecode-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license COPYING +%{python_sitelib}/* + +%changelog