14
0

Accepting request 853003 from home:bnavigator:branches:devel:languages:python

- Update to version 1.2 
  * added ``getthreadtitle()`` and ``setthreadtitle()``.
  * Initialisation of the module moved to the first usage: 
    importing the module doesn't cause side effects.
  * Manage much longer command lines (#52)
  * Improved build on BSD, dropped ancient versions (issue #67).
  * Fixed build for Python 3.8 (#66, #72)
  * Added support for Python 3.9
  * Dropped support for Python < 3.6
- Drop use-pkg-config.patch
- Drop extra requirements

OBS-URL: https://build.opensuse.org/request/show/853003
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setproctitle?expand=0&rev=42
This commit is contained in:
2020-12-04 10:52:51 +00:00
committed by Git OBS Bridge
parent e190fc2196
commit 63ac8c4ec4
5 changed files with 23 additions and 40 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Dec 4 01:17:03 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to version 1.2
* added ``getthreadtitle()`` and ``setthreadtitle()``.
* Initialisation of the module moved to the first usage:
importing the module doesn't cause side effects.
* Manage much longer command lines (#52)
* Improved build on BSD, dropped ancient versions (issue #67).
* Fixed build for Python 3.8 (#66, #72)
* Added support for Python 3.9
* Dropped support for Python < 3.6
- Drop use-pkg-config.patch
- Drop extra requirements
-------------------------------------------------------------------
Sun Aug 16 07:30:43 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -17,23 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-setproctitle
Version: 1.1.10
Version: 1.2
Release: 0
Summary: Python module to allow customization of the process title
License: BSD-3-Clause
URL: https://github.com/dvarrazzo/py-setproctitle/
Source: https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
# PATCH-FIX-UPSTREAM Test build/harness helper; heavily revised in next release jayvdb@gmail.com
Patch0: use-pkg-config.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module modernize}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: pkg-config
BuildRequires: procps
BuildRequires: python-rpm-macros
BuildRequires: python3-tools
%python_subpackages
%description
@@ -44,8 +40,6 @@ the OpenSSH Server for example.
%prep
%setup -q -n setproctitle-%{version}
%autopatch -p1
python-modernize -nw tests
%build
export CFLAGS="%{optflags}"
@@ -55,16 +49,12 @@ export CFLAGS="%{optflags}"
%python_install
%check
export LANG=en_US.UTF-8
%{python_expand export PYTHON=$python
PYTHON_MAJOR=${PYTHON:6:1}
make tests/pyrun${PYTHON_MAJOR}
PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest -v
}
%pytest_arch
%files %{python_files}
%doc HISTORY.rst README.rst
%license COPYRIGHT
%{python_sitearch}/*
%{python_sitearch}/setproctitle*.so
%{python_sitearch}/setproctitle-%{version}*-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6283b7a58477dd8478fbb9e76defb37968ee4ba47b05ec1c053cb39638bd7398
size 24042

3
setproctitle-1.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b4e48722dd96cbd66d5bf2eab930fff8546cd551dd8d774c8a319448bd381a6
size 23454

View File

@@ -1,22 +0,0 @@
@@ -1,21 +0,0 @@
--- a/Makefile.orig 2019-09-15 17:13:27.656631109 +0700
+++ b/Makefile 2019-09-15 17:16:00.458264928 +0700
@@ -7,15 +7,15 @@
# Customize these to select the Python to build/test
PYTHON ?= python
-PYCONFIG ?= python-config
+PYCONFIG ?= pkg-config
PY2TO3 ?= 2to3
# PYVER value is 2 or 3
PYVER := $(shell $(PYTHON) -c "import sys; print(sys.version_info[0])")
ROOT_PATH := $(shell pwd)
-PYINC := $(shell $(PYCONFIG) --includes)
-PYLIB := $(shell $(PYCONFIG) --ldflags) -L$(shell $(PYCONFIG) --prefix)/lib
+PYINC := $(shell $(PYCONFIG) python$(PYVER)-embed --cflags) $(shell $(PYCONFIG) python$(PYVER) --cflags)
+PYLIB := $(shell $(PYCONFIG) python$(PYVER)-embed --libs) $(shell $(PYCONFIG) python$(PYVER) --libs)
BUILD_DIR = build/lib.$(PYVER)