17
0
2025-06-12 12:04:29 +00:00
committed by Git OBS Bridge
commit 0973580002
5 changed files with 162 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

66
python-simpleeval.changes Normal file
View File

@@ -0,0 +1,66 @@
-------------------------------------------------------------------
Thu Jun 12 12:04:12 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Sun Jan 14 18:55:00 UTC 2024 - Axel Braun <axel.braun@gmx.de>
- enable %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Fri Dec 29 09:15:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 0.9.13:
* Better handling of empty strings passed as input.
* Fix the shift safe number issue from 0.9.12
* More minor pylint / etc fixes / cleanups (general code
quality)
* separate `.parse` from #115
* Allow setting up completely empty `{}` operators / functions
* Add extra bit-ops from #87
-------------------------------------------------------------------
Wed Feb 23 10:37:47 UTC 2022 - pgajdos@suse.com
- version update to 0.9.12
* Remove Cyclic references (memory leak)
* Add left & right shift operations (<< and >>)
* Switch to GH actions & CodeCov.io for CI tests
* Add extra contributors details
* Reformat w/ Black + isort, and have linting of those in CI
-------------------------------------------------------------------
Tue Mar 10 10:40:40 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.9.10:
* minor fixes
* support for python 3.8
-------------------------------------------------------------------
Fri Oct 4 08:47:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Run fdupes
- Remove not really needed commands from build
-------------------------------------------------------------------
Wed Apr 24 13:09:14 UTC 2019 - pgajdos@suse.com
- version update to 0.9.8
* no upstream changelog
- run the test suite
- run spec cleaner
- added sources
https://github.com/danthedeckie/simpleeval/issues/55
+ LICENCE
-------------------------------------------------------------------
Wed May 3 20:20:08 UTC 2017 - axel.braun@gmx.de
- changes for singlespec
-------------------------------------------------------------------
Tue Apr 21 11:36:32 UTC 2015 - axel.braun@gmx.de
- Initial build on OBS
- version 0.8.2

69
python-simpleeval.spec Normal file
View File

@@ -0,0 +1,69 @@
#
# spec file for package python-simpleeval
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2015-2024 Dr. Axel Braun
#
# 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/
#
%define modname simpleeval
%{?sle15_python_module_pythons}
Name: python-%{modname}
Version: 0.9.13
Release: 0
Summary: A simple, safe single expression evaluator library
License: MIT
URL: https://github.com/danthedeckie/simpleeval
Source0: https://files.pythonhosted.org/packages/source/s/simpleeval/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
A quick single file library for easily adding evaluatable expressions
into python projects. Say you want to allow a user to set an alarm volume,
which could depend on the time of day, alarm level, how many previous alarms
had gone off, and if there is music playing at the time.
Or if you want to allow simple formulare in a web application, but dont want
to give full eval() access, or dont want to run in javascript on the client side.
%prep
%setup -q -n %{modname}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENCE
%{python_sitelib}/simpleeval.py
%pycache_only %{python_sitelib}/__pycache__/simpleeval*
%{python_sitelib}/simpleeval-%{version}*-info
%changelog

3
simpleeval-0.9.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4a30f9cc01825fe4c719c785e3762623e350c4840d5e6855c2a8496baaa65fac
size 24535