From 47d629cbaa7cf8e622c3b96865e6e2fa24a216decedb307f5ec540e4daf37f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Sep 2019 11:19:08 +0000 Subject: [PATCH] - Update to 3.1.6: * Fixed immutability bug. Bug 176. * Fixed failure of `__contains__` in some circumstances. Bug 180. * Better handling of open files. Bug 186. * Better Python 2/3 check. * Making unit tests easier to run. * Allowing length of 1 to be specified for bools. (Thanks to LemonPi) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bitstring?expand=0&rev=15 --- bitstring-3.1.5.zip | 3 --- bitstring-3.1.6.tar.gz | 3 +++ python-bitstring.changes | 11 +++++++++++ python-bitstring.spec | 25 +++++++++---------------- 4 files changed, 23 insertions(+), 19 deletions(-) delete mode 100644 bitstring-3.1.5.zip create mode 100644 bitstring-3.1.6.tar.gz diff --git a/bitstring-3.1.5.zip b/bitstring-3.1.5.zip deleted file mode 100644 index 63ded67..0000000 --- a/bitstring-3.1.5.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c163a86fcef377c314690051885d86b47419e3e1770990c212e16723c1c08faa -size 624428 diff --git a/bitstring-3.1.6.tar.gz b/bitstring-3.1.6.tar.gz new file mode 100644 index 0000000..4f69e8f --- /dev/null +++ b/bitstring-3.1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41fbc1d71b871f985dfe00d2e74e17add8b47e51e1a9e0634ae4c18ea7181418 +size 751557 diff --git a/python-bitstring.changes b/python-bitstring.changes index 50e456a..00ffa8a 100644 --- a/python-bitstring.changes +++ b/python-bitstring.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Fri Sep 13 11:15:20 UTC 2019 - Tomáš Chvátal + +- Update to 3.1.6: + * Fixed immutability bug. Bug 176. + * Fixed failure of `__contains__` in some circumstances. Bug 180. + * Better handling of open files. Bug 186. + * Better Python 2/3 check. + * Making unit tests easier to run. + * Allowing length of 1 to be specified for bools. (Thanks to LemonPi) + ------------------------------------------------------------------- Wed Dec 5 01:59:04 UTC 2018 - Jan Engelhardt diff --git a/python-bitstring.spec b/python-bitstring.spec index e302371..04bcf48 100644 --- a/python-bitstring.spec +++ b/python-bitstring.spec @@ -1,7 +1,7 @@ # # spec file for package python-bitstring # -# 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 @@ -17,24 +17,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Test files missing -%bcond_with test Name: python-bitstring -Version: 3.1.5 +Version: 3.1.6 Release: 0 Summary: Python module for the construction, analysis and modification of binary data License: MIT Group: Development/Languages/Python URL: https://github.com/scott-griffiths/bitstring -Source: https://files.pythonhosted.org/packages/source/b/bitstring/bitstring-%{version}.zip +Source: https://github.com/scott-griffiths/bitstring/archive/bitstring-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: unzip BuildArch: noarch -%if %{with test} -BuildRequires: %{python_module pytest} -%endif %python_subpackages %description @@ -48,8 +44,8 @@ They can also be read from, searched and replaced, and navigated in, similar to a file or stream. %prep -%setup -q -n bitstring-%{version} -sed -i 's/\r$//' README.rst +%setup -q -n bitstring-bitstring-%{version} +dos2unix README.rst sed -i '1{\@^#!%{_bindir}/env python@d}' bitstring.py %build @@ -59,12 +55,9 @@ sed -i '1{\@^#!%{_bindir}/env python@d}' bitstring.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib} -py.test-%{$python_bin_suffix} -} -%endif +cd test +%pytest %files %{python_files} %license LICENSE