#2 Rename the binary package to black, rhbz#1692117
Merged 5 years ago by churchyard. Opened 5 years ago by churchyard.
rpms/ churchyard/python-black pkgname  into  master

file modified
+13 -5
@@ -3,7 +3,7 @@ 

  

  Name:           python-%{pypi_name}

  Version:        19.3b0

- Release:        1%{?dist}

+ Release:        2%{?dist}

  Summary:        The uncompromising code formatter

  

  License:        MIT
@@ -28,9 +28,8 @@ 

  speed, determinism, and freedom from pycodestyle nagging about formatting.

  You will save time and mental energy for more important matters.

  

- %package -n     python3-%{pypi_name}

+ %package -n     %{pypi_name}

  Summary:        %{summary}

- %{?python_provide:%python_provide python3-%{pypi_name}}

  

  Requires:       python3-aiohttp

  Requires:       python3-appdirs
@@ -38,7 +37,13 @@ 

  Requires:       python3-click >= 6.5

  Requires:       python3-setuptools

  Requires:       python3-toml >= 0.9.4

- %description -n python3-%{pypi_name}

+ 

+ # Package was renamed when Fedora 31 was rawhide

+ # Don't remove this before Fedora 33

+ Provides:       python3-%{pypi_name} = %{version}-%{release}

+ Obsoletes:      python3-%{pypi_name} < 19.3b0-2

+ 

+ %description -n %{pypi_name}

  Black is the uncompromising Python code formatter. By using it, you agree to

  cease control over minutiae of hand-formatting. In return, Black gives you

  speed, determinism, and freedom from pycodestyle nagging about formatting.
@@ -67,7 +72,7 @@ 

  export PIP_NO_DEPS=yes

  %{__python3} setup.py test

  

- %files -n python3-%{pypi_name}

+ %files -n %{pypi_name}

  %license LICENSE

  %doc README.md

  %{_bindir}/black
@@ -83,6 +88,9 @@ 

  %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

  

  %changelog

+ * Wed Apr 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.3b0-2

+ - Rename the binary package to black, rhbz#1692117

+ 

  * Thu Mar 21 2019 Christian Heimes <cheimes@redhat.com> - 19.3b0-1

  - New upstream release 19.3b0, rhbz#1688957

  

Several notes:

  1. I've noticed how you do the prereleases as part of package version. This will break once black decides to stop doing betas only. But since the version updates quite often, we should be able to just wait until a new version is released.

    $ rpmdev-vercmp 19.3b0-1.fc30 19.3-1.fc30
    19.3b0-1.fc30 > 19.3-1.fc30
  2. Please make me the package co-maintainer as agreed on Bugzilla: https://src.fedoraproject.org/rpms/python-black/adduser

I plan to merge this in couple days if there is no response.

Pull-Request has been merged by churchyard

5 years ago