Sync from SUSE:SLFO:Main python-hypothesmith revision 4b3882756199a6a470d31d94668a2735

This commit is contained in:
Adrian Schröter 2024-05-03 21:01:23 +02:00
commit 7d8cc6c163
5 changed files with 239 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

3
_multibuild Normal file
View File

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

BIN
hypothesmith-0.2.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

119
python-hypothesmith.changes Normal file
View File

@ -0,0 +1,119 @@
-------------------------------------------------------------------
Fri Apr 21 12:26:38 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Wed Apr 19 01:17:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Switch to single spec version build for PSP
-------------------------------------------------------------------
Thu Dec 15 06:26:48 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Update requirements
-------------------------------------------------------------------
Tue Dec 13 15:35:43 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.2.3
* Actually package up the renamed grammar file this time.
- Update to 0.2.2 - 2022-11-29
* Correct the minimum required version of LibCST
* Use importlib.resources to load the Python grammar (zip-safe)
-------------------------------------------------------------------
Tue Dec 6 03:35:17 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 0.2.1 - 2022-11-25
* Use the lark package on PyPI, for Lark version 1.0+ (requires recent Hypothesis)
* Use updated Python grammar for from_grammar(), thanks to Lark updates
* Drop support for Python 3.6, add 3.10 and 3.11 to CI
-------------------------------------------------------------------
Thu Oct 20 13:24:58 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>
- Update to v0.2.0
* More efficient generation of Python identifiers
* Workaround for CPython parser bug in 3.9.8 (#16) Yes, yet another one - still,
that's why hypothesmith exists...
- Release v0.1.9
* Fixed rare internal error when from_node() generated misplaced except: clauses
-------------------------------------------------------------------
Thu Sep 29 02:26:11 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 0.2.0 - 2021-11-27
More efficient generation of Python identifiers
Workaround for CPython parser bug in 3.9.8 (#16) Yes, yet another one - still, that's why hypothesmith exists...
- Update to 0.1.9 - 2021-08-19
Fixed rare internal error when from_node() generated misplaced except: clauses
-------------------------------------------------------------------
Sun Mar 21 20:41:41 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to v0.1.8
* Now compatible with Hypothesis 5.46 and later
* Increased diversity of examples generated by from_node()
- Release v0.1.7
* Adds a workaround for BPO-42218
* Bumped Hypothesis requirement to version 5.41 or later
(better internal error messages)
* Added MANIFEST.in so the sdist includes license, tests, etc.
-------------------------------------------------------------------
Sat Nov 14 05:23:01 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v0.1.6
* Improved error messages from internal compiler errors again
* Bumped Hypothesis requirement to version 5.39 or later
- from v0.1.5
* Emit additional debug info when Python fails to compile a string
-------------------------------------------------------------------
Wed Aug 19 15:46:37 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 0.1.4
* Improve handling of identifiers
* Fix internal error in `from_grammar("single_input")
- do not install myself on multibuild test flavor
-------------------------------------------------------------------
Sat Aug 8 18:44:29 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Use github repository download for LICENSE, CHANGELOG.md (needed
by tests) and test directory gh#Zac-HD/hypothesmith#5
- run tests in multibuild flavor, they are quite time-consuming and
the test requirements create dependency loops
- filter empty types file python-hypothesmith-rpmlintrc
-------------------------------------------------------------------
Thu Aug 6 13:31:26 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 0.1.3
* Update to latest versions of LibCST and Hypothesis, for Python
3.9 support
- 0.1.2 - 2020-05-17
* Emit more debug info to diagnose a compile() issue in CPython
nightly
- 0.1.1 - 2020-05-17
* Emit some debug info to help diagnose a possible upstream bug
in CPython nightly
- 0.1.0 - 2020-04-24
* Added auto_target=True argument to the from_node() strategy.
* Improved from_node() generation of comments and trailing
whitespace.
- 0.0.8 - 2020-04-23
* Added a from_node() strategy which uses LibCST to generate
source code. This is a proof-of-concept rather than a robust
tool, but IMO it's a pretty cool concept.
- 0.0.7 - 2020-04-19
* The from_grammar() strategy now takes an auto_target=True
argument, to drive generated examples towards (relatively)
larger and more complex programs.
-------------------------------------------------------------------
Thu Apr 16 10:54:35 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Initial commit, needed by flake8-builtins

91
python-hypothesmith.spec Normal file
View File

@ -0,0 +1,91 @@
#
# spec file
#
# Copyright (c) 2022 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/
#
%{?sle15_python_module_pythons}
%define skip_python2 1
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
Name: python-hypothesmith%{psuffix}
Version: 0.2.3
Release: 0
Summary: Hypothesis strategies for generating Python programs, something like CSmith
License: MPL-2.0
URL: https://github.com/Zac-HD/hypothesmith
Source: https://files.pythonhosted.org/packages/source/h/hypothesmith/hypothesmith-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.6}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-base >= 3.7
Requires: python-hypothesis >= 6.58.1
Requires: python-lark >= 0.10.1
Requires: python-libcst >= 0.4.0
%if %{with test}
BuildRequires: %{python_module black}
BuildRequires: %{python_module exceptiongroup}
BuildRequires: %{python_module hypothesis >= 6.58.1}
BuildRequires: %{python_module lark >= 0.10.1}
BuildRequires: %{python_module libcst >= 0.4.0}
BuildRequires: %{python_module parso}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
%endif
BuildArch: noarch
%python_subpackages
%description
Hypothesis strategies for generating Python programs, something like CSmith.
%prep
%setup -q -n hypothesmith-%{version}
# remove pytest coverage opts
rm tox.ini
%build
%if !%{with test}
%python_build
%endif
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# multibuild: test the source dir, nothing is installed
export PYTHONPATH=$(pwd)/src
%pytest -n auto
%endif
%if !%{with test}
%files %{python_files}
%doc README.md CHANGELOG.md
%license LICENSE
%{python_sitelib}/hypothesmith
%{python_sitelib}/hypothesmith-%{version}-py*.egg-info
%endif
%changelog