1
0
forked from pool/python-mocket

- Update to version 3.12.0:

* Support for Python 3.12 (#204)
 * Fix for Python 3.12
 * Getting rid of Python 3.7, since it's not supported anymore.
 * Precommit hooks' autoupdate.
 * Disabling `aiohttp` for testing Python 3.12.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=67
This commit is contained in:
Sebastian Wagner 2023-10-31 17:51:21 +00:00 committed by Git OBS Bridge
parent 0cccfa3fb6
commit f86ffa3328
4 changed files with 22 additions and 9 deletions

BIN
mocket-3.11.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
mocket-3.12.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ebbc15b04d64f617fbac54146bef0cfd2f491cb785f515d765e26bb92d410d0
size 591080

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Oct 31 17:34:29 UTC 2023 - Sebastian Wagner <sebix@sebix.at>
- Update to version 3.12.0:
* Support for Python 3.12 (#204)
* Fix for Python 3.12
* Getting rid of Python 3.7, since it's not supported anymore.
* Precommit hooks' autoupdate.
* Disabling `aiohttp` for testing Python 3.12.
-------------------------------------------------------------------
Tue Oct 24 10:15:32 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -27,13 +27,16 @@
%define skip_python2 1
Name: python-mocket%{psuffix}
Version: 3.11.1
Version: 3.12.0
Release: 0
Summary: Python socket mock framework
License: BSD-3-Clause
URL: https://github.com/mindflayer/python-mocket
Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-%{version}.tar.gz
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-decorator >= 4
@ -67,19 +70,19 @@ included, with gevent/asyncio/SSL support.
%prep
%autosetup -p1 -n mocket-%{version}
sed -i '/cov/ d' setup.cfg
sed -i '/pipenv/ d' setup.py
#sed -i '/cov/ d' setup.cfg
#sed -i '/pipenv/ d' setup.py
%build
%if !%{with test}
export LANG=en_US.UTF-8
%python_build
%pyproject_wheel
%endif
%install
%if !%{with test}
export LANG=en_US.UTF-8
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
@ -114,7 +117,7 @@ donttest="$donttest or test_truesendall_with_dump_from_recording"
%doc README.rst
%license LICENSE
%{python_sitelib}/mocket
%{python_sitelib}/mocket-%{version}-py*.egg-info
%{python_sitelib}/mocket-%{version}.dist-info
%endif
%changelog