Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
Re-autospec to refresh packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McCarty <[email protected]>
  • Loading branch information
phmccarty committed Oct 22, 2020
1 parent 12232cc commit 6444760
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 69 deletions.
3 changes: 3 additions & 0 deletions options.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ url = https://files.pythonhosted.org/packages/04/98/997f8668b11292f13d3e69fc6262
archives =
giturl = https://github.com/jaraco/portend.git
domain =
alias =

[autospec]
# build 32 bit libraries
Expand Down Expand Up @@ -38,6 +39,8 @@ no_autostart = false
nodebug = false
# disable stripping binaries
nostrip = false
# configure build also for openmpi
openmpi = false
# optimize build for size over speed
optimize_size = false
# set profile for pgo
Expand Down
73 changes: 6 additions & 67 deletions portend.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Name : portend
Version : 2.6
Release : 21
Release : 22
URL : https://files.pythonhosted.org/packages/04/98/997f8668b11292f13d3e69fc626232c497228306c764523c5a3a3b59c775/portend-2.6.tar.gz
Source0 : https://files.pythonhosted.org/packages/04/98/997f8668b11292f13d3e69fc626232c497228306c764523c5a3a3b59c775/portend-2.6.tar.gz
Summary : TCP port monitoring and discovery
Expand All @@ -26,68 +26,7 @@ BuildRequires : virtualenv

%description
.. image:: https://img.shields.io/pypi/v/portend.svg
:target: https://pypi.org/project/portend

.. image:: https://img.shields.io/pypi/pyversions/portend.svg

.. image:: https://img.shields.io/travis/jaraco/portend/master.svg
:target: https://travis-ci.org/jaraco/portend

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code style: Black

.. image:: https://img.shields.io/appveyor/ci/jaraco/portend/master.svg
:target: https://ci.appveyor.com/project/jaraco/portend/branch/master

.. image:: https://readthedocs.org/projects/portend/badge/?version=latest
:target: https://portend.readthedocs.io/en/latest/?badge=latest

por·tend
pôrˈtend/
verb

be a sign or warning that (something, especially something momentous or calamitous) is likely to happen.

Usage
=====

Use portend to monitor TCP ports for bound or unbound states.

For example, to wait for a port to be occupied, timing out after 3 seconds::

portend.occupied('www.google.com', 80, timeout=3)

Or to wait for a port to be free, timing out after 5 seconds::

portend.free('::1', 80, timeout=5)

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::

python -m portend localhost:31923 free
(exits immediately)

python -m portend -t 1 localhost:31923 occupied
(one second passes)
Port 31923 not bound on localhost.

Portend also exposes a ``find_available_local_port`` for identifying
a suitable port for binding locally::

port = portend.find_available_local_port()
print(port, "is available for binding")

Portend additionally exposes the lower-level port checking functionality
in the ``Checker`` class, which currently exposes only one public
method, ``assert_free``::

portend.Checker().assert_free('localhost', 31923)

If assert_free is passed a host/port combination that is occupied by
a bound listener (i.e. a TCP connection is established to that host/port),
assert_free will raise a ``PortNotFree`` exception.
:target: https://pypi.org/project/portend

%package license
Summary: license components for the portend package.
Expand All @@ -111,6 +50,7 @@ Summary: python3 components for the portend package.
Group: Default
Requires: python3-core
Provides: pypi(portend)
Requires: pypi(tempora)

%description python3
python3 components for the portend package.
Expand All @@ -125,12 +65,11 @@ export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1583202827
# -Werror is for werrorists
export SOURCE_DATE_EPOCH=1603399066
export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$CFLAGS -fno-lto "
export FFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$FFLAGS -fno-lto "
export FFLAGS="$FFLAGS -fno-lto "
export CXXFLAGS="$CXXFLAGS -fno-lto "
export MAKEFLAGS=%{?_smp_mflags}
python3 setup.py build
Expand Down
2 changes: 1 addition & 1 deletion release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
21
22
1 change: 0 additions & 1 deletion whatrequires
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# This file contains recursive sources that require this package
CherryPy
ceph
conda

0 comments on commit 6444760

Please sign in to comment.