#2 Update to 0.70.14 with assorted packaging improvements
Merged a year ago by music. Opened a year ago by music.
rpms/ music/python-multiprocess v0.70.14  into  rawhide

file modified
+1
@@ -1,2 +1,3 @@ 

  /multiprocess-0.70.12.2.zip

  /multiprocess-0.70.13.tar.gz

+ /multiprocess-0.70.14.tar.gz

file modified
+22 -21
@@ -25,24 +25,32 @@ 

  maintained at https://uqfoundation.github.io/project/pathos/query.}

  

  Name:           python-multiprocess

- Version:        0.70.13

+ Version:        0.70.14

  Release:        %autorelease

  Summary:        Better multiprocessing and multithreading in python

  

- License:        BSD

+ # The entire source is BSD-3-Clause, except py*/doc/html4css1.css, which are

+ # LicenseRef-Fedora-Public-Domain:

+ #

+ #   :Copyright: This stylesheet has been placed in the public domain.

+ License:        BSD-3-Clause AND LicenseRef-Fedora-Public-Domain

  URL:            https://pypi.org/pypi/multiprocess

- Source0:        %{pypi_source multiprocess %{version} tar.gz}

+ Source0:        %{pypi_source multiprocess}

  BuildArch:      noarch

  

+ BuildRequires:  dos2unix

+ 

  %description %_description

  

  %package -n python3-multiprocess

  Summary:        %{summary}

+ # This subpackage does not contain the public-domain CSS file.

+ License:        BSD-3-Clause

+ 

  BuildRequires:  python3-devel

- # required for tests

- BuildRequires:  python-unversioned-command

- # Not automatically generated

+ # Required for tests; not automatically generated

  BuildRequires:  python3-test

+ BuildRequires:  python3dist(pox)

  

  %description -n python3-multiprocess %_description

  
@@ -54,14 +62,12 @@ 

  

  %prep

  %autosetup -n multiprocess-%{version}

- rm -rf multiprocess.egg-info

  

- # Fix wrong end of file encoding

- find py%{python3_version}/doc/ -name "*" -exec sed -i 's/\r$//' '{}' \;

- find py%{python3_version}/examples/ -name "*" -exec sed -i 's/\r$//' '{}' \;

+ # Convert line endings

+ find py%{python3_version}/{doc,examples}/ -type f -exec dos2unix '{}' '+'

  

- # remove shebang

- sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' py%{python3_version}/multiprocess/tests/__main__.py

+ # Remove shebang

+ sed -r -i '1{/^#!/d}' py%{python3_version}/multiprocess/tests/__main__.py

  

  # Upstream pretends not to be a pure-Python package to “force python-, abi-,

  # and platform-specific naming of bdist_wheel”; this isn’t needed here, and we
@@ -79,15 +85,10 @@ 

  %pyproject_save_files multiprocess _multiprocess

  

  %check

- export PYTHONPATH="$RPM_BUILD_ROOT/%{python3_sitearch}/:$RPM_BUILD_ROOT/%{python3_sitelib}/:."

- pushd py%{python3_version}

- # https://github.com/uqfoundation/multiprocess/blob/master/.travis.yml#L67

- for test in multiprocess/tests/__init__.py; do echo $test ; %{__python3} $test > /dev/null; done

- 

- # These do not run properly in the build root: it cannot find the installed version even after PYTHONPATH is set

- #for test in multiprocess/tests/*.py; do if [[ $test != *"__"* && $test != *"mp_"*  ]]; then echo $test ; %%{__python3} $test > /dev/null; fi; done

- popd

- 

+ # See tox.ini (but don’t try to use %%tox unless we comment out the explicit

+ # pip install command there):

+ PYTHONPATH='%{buildroot}%{python3_sitelib}' %{python3} \

+     py%{python3_version}/multiprocess/tests/__main__.py

  

  %files -n python3-multiprocess -f %{pyproject_files}

  %doc README.md

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (multiprocess-0.70.13.tar.gz) = d35b5ee565c59b2df551238ee3524102205a177a960312e61d6f87ff1f58059af13a55b6f731d30b673adcbba07f4261e141d96e6bdf6ebffbe8fa08db4073e8

+ SHA512 (multiprocess-0.70.14.tar.gz) = 22202b81c33601d75ca3222a6485bae596d7807d54757280ac06f2fd7247c927f978b4f5c62bd81739b95462a96dc629e5559630d9310343f86b46ee37841b6b

See commit messages for details of packaging improvements. In particular, all the tests are now executed (and their invocation is simpler), python-unversioned-command is no longer a BR, and the License is converted to SPDX.

The improvements may be backported to at least F37, but the version update in the final commit depends on a version of python-dill that was just built in Rawhide only.

https://github.com/uqfoundation/multiprocess/releases/tag/multiprocess-0.70.14

https://github.com/uqfoundation/multiprocess/compare/multiprocess-0.70.13...multiprocess-0.70.14

lgtm, yeh, I guess we can update F37 with everything apart from the version update. We could ask Sergio, the python-dill maintainer, if they're willing to let us update it in F37 too.

Given how closely these packages are linked, we should probably all be co-maintaining them to better organise collective updates. Can ask Sergio about that too.

Pull-Request has been merged by music

a year ago