Sync from SUSE:ALP:Source:Standard:1.0 python-portend revision 48fe555cafbe819ccaaacdcb4f650c0c

This commit is contained in:
Adrian Schröter 2023-06-06 15:14:10 +02:00
commit 0dba28e0b4
4 changed files with 160 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

BIN
portend-3.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

65
python-portend.changes Normal file
View File

@ -0,0 +1,65 @@
-------------------------------------------------------------------
Fri Apr 21 12:29:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:43:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Tue Oct 4 23:10:53 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version v3.1.0
Require Python 3.7 or later.
- Update to version v3.0.0
Removed legacy aliases wait_for_occupied_port and wait_for_free_port.
- Update to version v2.7.2
Packaging refresh.
- Update to version v2.7.1
#14: Fix host/port order.
- Update to version v2.7.0
Refresh package. Require Python 3.6 or later.
-------------------------------------------------------------------
Wed Mar 18 08:49:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
- Update to 2.6
* Package refresh.
-------------------------------------------------------------------
Mon Feb 24 11:13:56 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Fix up dependencies to match requirements
-------------------------------------------------------------------
Tue Jun 18 12:46:11 UTC 2019 - pgajdos@suse.com
- version update to 2.5
* #10: Fix race condition in ``occupied`` and ``free``
-------------------------------------------------------------------
Fri Apr 5 07:03:43 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.4:
* find_available_local_port now relies on socket.getaddrinfo to
find a suitable address family.
-------------------------------------------------------------------
Tue Mar 5 12:56:25 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.3:
* Fix README rendering.
* Merge with skeleton, including embedded license file.
* #1: Removed portend._getaddrinfo and its usage in Checker.assert_free.
* #5: Restored use of portend.client_host during assert_free check on Windows, fixing check when the bind address is *ADDR_ANY.
-------------------------------------------------------------------
Fri Mar 31 14:23:56 UTC 2017 - jmatejek@suse.com
- initial commit

69
python-portend.spec Normal file
View File

@ -0,0 +1,69 @@
#
# spec file for package python-portend
#
# Copyright (c) 2023 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-portend
Version: 3.1.0
Release: 0
Summary: TCP port monitoring utilities
License: MIT
Group: Development/Languages/Python
URL: https://github.com/jaraco/portend
Source: https://files.pythonhosted.org/packages/source/p/portend/portend-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tempora >= 1.8}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-tempora >= 1.8
BuildArch: noarch
%python_subpackages
%description
Use portend to monitor TCP ports for bound or unbound states.
The portend may also be executed directly. If the function succeeds, it
returns nothing and exits with a status of 0. If it fails, it prints a
message and exits with a status of 1. For example::
Portend also exposes a ``find_available_local_port`` for identifying
a suitable port for binding locally::
%prep
%setup -q -n portend-%{version}
# do not require cov/xdist/etc
sed -i -e '/addopts/d' pytest.ini
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m pytest test_portend.py
%files %{python_files}
%license LICENSE
%doc CHANGES.rst README.rst
%{python_sitelib}/*
%changelog