forked from pool/python-port-for
Accepting request 1137438 from devel:languages:python
- update to 0.7.2: * Drop support for python 3.7 * Support Python 3.12 * #152, #166, #170 * Add PortType type alias for easier typing related code * get_port will now allow passing additional exclude_ports parameter - these ports will not be chosen. * Add python 3.11 to the list of supported python versions. * Use towncrier as a changelog management tool. * Moved development dependencies to be managed by pipenv. All development process can be managed with it - which means automatic isolation. * Migrate versioning tool to tbump, and move package definition to pyproject.toml * Moved as much of the setup.cfg settings into the pyproject.toml as possible. Dropped pydocstyle support. OBS-URL: https://build.opensuse.org/request/show/1137438 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-port-for?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 7 20:22:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.7.2:
|
||||
* Drop support for python 3.7
|
||||
* Support Python 3.12
|
||||
* #152, #166, #170
|
||||
* Add PortType type alias for easier typing related code
|
||||
* get_port will now allow passing additional exclude_ports
|
||||
parameter - these ports will not be chosen.
|
||||
* Add python 3.11 to the list of supported python versions.
|
||||
* Use towncrier as a changelog management tool.
|
||||
* Moved development dependencies to be managed by pipenv. All
|
||||
development process can be managed with it - which means
|
||||
automatic isolation.
|
||||
* Migrate versioning tool to tbump, and move package definition
|
||||
to pyproject.toml
|
||||
* Moved as much of the setup.cfg settings into the
|
||||
pyproject.toml as possible. Dropped pydocstyle support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 6 14:29:40 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-port-for
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,17 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-port-for
|
||||
Version: 0.6.2
|
||||
Version: 0.7.2
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Utility that helps with local TCP ports managment
|
||||
URL: https://github.com/kmike/port-for/
|
||||
Group: Development/Languages/Python
|
||||
Source: https://github.com/kmike/port-for/archive/refs/tags/v%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
@@ -72,17 +74,16 @@ return a new unused port:
|
||||
%setup -q -n port-for-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand rm -f %{buildroot}%{$python_sitelib}/port_for/tests.py* %{buildroot}%{$python_sitelib}/port_for/__pycache__/tests.*
|
||||
%python_clone -a %{buildroot}%{_bindir}/port-for
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
sed -i '/^addopts =/d' setup.cfg
|
||||
%pytest --doctest-modules src/port_for/utils.py tests/test*.py
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative port-for
|
||||
@@ -93,7 +94,8 @@ sed -i '/^addopts =/d' setup.cfg
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/port_for
|
||||
%{python_sitelib}/port_for-%{version}.dist-info
|
||||
%python_alternative %{_bindir}/port-for
|
||||
|
||||
%changelog
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a38dce1d6354543f9ac2da6ddfef940adc8037123a56e88a4ea0781be07bf7ed
|
||||
size 21223
|
3
v0.7.2.tar.gz
Normal file
3
v0.7.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:09bb11a7dd346d2b0f971890cbb20c8545ccdc4ccc37d2f5bf81736604e5a275
|
||||
size 23126
|
Reference in New Issue
Block a user