%global _empty_manifest_terminate_build 0
Name:		python-simpy
Version:	4.1.2
Release:	1
Summary:	Event discrete, process based simulation for Python.
License:	MIT
URL:		https://gitlab.com/team-simpy/simpy
Source0:	%{pypi_source simpy}
BuildArch:	noarch


%description
SimPy is a process-based discrete-event simulation framework based on standard
Python. Processes in SimPy are defined by Python `generator`__ functions and
can, for example, be used to model active components like customers, vehicles or
agents.  SimPy also provides various types of shared resources to model
limited capacity congestion points (like servers, checkout counters and tunnels).

%package -n python3-simpy
Summary:	Event discrete, process based simulation for Python.
Provides:	python-simpy = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	python3-setuptools_scm
%description -n python3-simpy
SimPy is a process-based discrete-event simulation framework based on standard
Python. Processes in SimPy are defined by Python `generator`__ functions and
can, for example, be used to model active components like customers, vehicles or
agents.  SimPy also provides various types of shared resources to model
limited capacity congestion points (like servers, checkout counters and tunnels).

%package help
Summary:	Development documents and examples for simpy
Provides:	python3-simpy-doc
%description help
SimPy is a process-based discrete-event simulation framework based on standard
Python. Processes in SimPy are defined by Python `generator`__ functions and
can, for example, be used to model active components like customers, vehicles or
agents.  SimPy also provides various types of shared resources to model
limited capacity congestion points (like servers, checkout counters and tunnels).

%prep
%autosetup -n simpy-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi

%files -n python3-simpy
%{python3_sitelib}/*

%files help
%{_docdir}/*

%changelog
* Tue May 26 2026 YangengLiu <dev01202@linx-info.com> - 4.1.2-1
- update version to 4.1.2
  * [NEW] Support Python 3.13 and 3.14
  * [FIX] Allow PEP 657 location underlines in test_exception_chaining so the test passes on Python 3.11+
  * [FIX] Update docs/conftest.py to import TerminalRepr from _pytest._code.code and use the file_path collection hook, replacing the removed py._code import and deprecated py.path.local hook argument
  * [FIX] Explicitly mark ConditionValue as unhashable.
  * [CHANGE] Address current ruff and mypy findings: switch tests to use pytest.raises as a context manager, mark regex match= patterns as raw strings, hoist module-level imports, and extend the ruff ignore list with UP045 (matches the existing UP006/UP007 policy)

* Tue Mar 19 2024 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.1-1
- Update package to version 4.1.1

* Tue Aug 02 2022 liukuo <liukuo@kylinos.cn> - 4.0.1-2
- License compliance rectification

* Mon Sep 27 2021 Python_Bot <Python_Bot@openeuler.org> - 4.0.1-1
- Package Init