|
|
33708b5 |
# Created by pyp2rpm-3.2.2
|
|
|
33708b5 |
%global pypi_name black
|
|
|
33708b5 |
|
|
|
33708b5 |
Name: python-%{pypi_name}
|
|
|
91eef83 |
Version: 19.3b0
|
|
|
ab4f0bc |
Release: 1%{?dist}
|
|
|
33708b5 |
Summary: The uncompromising code formatter
|
|
|
33708b5 |
|
|
|
33708b5 |
License: MIT
|
|
|
33708b5 |
URL: https://github.com/ambv/black
|
|
|
33708b5 |
Source0: https://files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
111304e |
Source1: black.1
|
|
|
ab4f0bc |
Source2: blackd.1
|
|
|
33708b5 |
BuildArch: noarch
|
|
|
33708b5 |
|
|
|
33708b5 |
BuildRequires: python3-devel
|
|
|
33708b5 |
BuildRequires: python3-setuptools
|
|
|
ab4f0bc |
BuildRequires: python3-aiohttp
|
|
|
33708b5 |
BuildRequires: python3-appdirs
|
|
|
aa60c12 |
BuildRequires: python3-attrs >= 17.4.0
|
|
|
aa60c12 |
BuildRequires: python3-click >= 6.5
|
|
|
aa60c12 |
BuildRequires: python3-toml >= 0.9.4
|
|
|
aa60c12 |
|
|
|
33708b5 |
|
|
|
33708b5 |
%description
|
|
|
33708b5 |
Black is the uncompromising Python code formatter. By using it, you agree to
|
|
|
33708b5 |
cease control over minutiae of hand-formatting. In return, Black gives you
|
|
|
33708b5 |
speed, determinism, and freedom from pycodestyle nagging about formatting.
|
|
|
33708b5 |
You will save time and mental energy for more important matters.
|
|
|
33708b5 |
|
|
|
33708b5 |
%package -n python3-%{pypi_name}
|
|
|
33708b5 |
Summary: %{summary}
|
|
|
33708b5 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
ab4f0bc |
|
|
|
ab4f0bc |
Requires: python3-aiohttp
|
|
|
33708b5 |
Requires: python3-appdirs
|
|
|
aa60c12 |
Requires: python3-attrs >= 17.4.0
|
|
|
aa60c12 |
Requires: python3-click >= 6.5
|
|
|
33708b5 |
Requires: python3-setuptools
|
|
|
aa60c12 |
Requires: python3-toml >= 0.9.4
|
|
|
33708b5 |
%description -n python3-%{pypi_name}
|
|
|
33708b5 |
Black is the uncompromising Python code formatter. By using it, you agree to
|
|
|
33708b5 |
cease control over minutiae of hand-formatting. In return, Black gives you
|
|
|
33708b5 |
speed, determinism, and freedom from pycodestyle nagging about formatting.
|
|
|
33708b5 |
You will save time and mental energy for more important matters.
|
|
|
33708b5 |
|
|
|
33708b5 |
|
|
|
33708b5 |
%prep
|
|
|
33708b5 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
33708b5 |
# Remove bundled egg-info
|
|
|
33708b5 |
rm -rf %{pypi_name}.egg-info
|
|
|
33708b5 |
|
|
|
33708b5 |
%build
|
|
|
33708b5 |
%py3_build
|
|
|
33708b5 |
|
|
|
33708b5 |
%install
|
|
|
33708b5 |
%py3_install
|
|
|
33708b5 |
cp %{buildroot}/%{_bindir}/black %{buildroot}/%{_bindir}/black-%{python3_version}
|
|
|
ab4f0bc |
cp %{buildroot}/%{_bindir}/blackd %{buildroot}/%{_bindir}/blackd-%{python3_version}
|
|
|
33708b5 |
# ln -s {_bindir}/black-{python3_version} {buildroot}/{_bindir}/black-3
|
|
|
33708b5 |
|
|
|
111304e |
install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/black.1
|
|
|
ab4f0bc |
install -D -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/blackd.1
|
|
|
111304e |
|
|
|
33708b5 |
%check
|
|
|
aa60c12 |
export PIP_INDEX_URL=http://host.invalid./
|
|
|
aa60c12 |
export PIP_NO_DEPS=yes
|
|
|
33708b5 |
%{__python3} setup.py test
|
|
|
33708b5 |
|
|
|
33708b5 |
%files -n python3-%{pypi_name}
|
|
|
33708b5 |
%license LICENSE
|
|
|
33708b5 |
%doc README.md
|
|
|
33708b5 |
%{_bindir}/black
|
|
|
33708b5 |
%{_bindir}/black-%{python3_version}
|
|
|
111304e |
%{_mandir}/man1/black.1*
|
|
|
ab4f0bc |
%{_bindir}/blackd
|
|
|
ab4f0bc |
%{_bindir}/blackd-%{python3_version}
|
|
|
ab4f0bc |
%{_mandir}/man1/blackd.1*
|
|
|
33708b5 |
|
|
|
ab4f0bc |
%{python3_sitelib}/__pycache__/black*
|
|
|
ab4f0bc |
%{python3_sitelib}/black*.py
|
|
|
33708b5 |
%{python3_sitelib}/blib2to3
|
|
|
33708b5 |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
33708b5 |
|
|
|
33708b5 |
%changelog
|
|
|
91eef83 |
* Thu Mar 21 2019 Christian Heimes <cheimes@redhat.com> - 19.3b0-1
|
|
|
91eef83 |
- New upstream release 19.3b0, rhbz#1688957
|
|
|
91eef83 |
|
|
|
ab4f0bc |
* Thu Sep 27 2018 Christian Heimes <cheimes@redhat.com> - 18.9b0-1
|
|
|
ab4f0bc |
- New upstream version 18.9b0
|
|
|
ab4f0bc |
- Include blackd daemon
|
|
|
ab4f0bc |
|
|
|
672a03a |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 18.6b4-3
|
|
|
672a03a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
672a03a |
|
|
|
994d2e8 |
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 18.6b4-2
|
|
|
994d2e8 |
- Rebuilt for Python 3.7
|
|
|
994d2e8 |
|
|
|
06f9719 |
* Fri Jun 22 2018 Christian Heimes <cheimes@redhat.com> - 18.6b4-1
|
|
|
06f9719 |
- New upstream release 18.6b4, rhbz#1593485
|
|
|
06f9719 |
- Remove workaround for missing empty_pyproject.toml
|
|
|
06f9719 |
|
|
|
197fac0 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 18.6b2-3
|
|
|
197fac0 |
- Rebuilt for Python 3.7
|
|
|
197fac0 |
|
|
|
aa60c12 |
* Sat Jun 09 2018 Christian Heimes <cheimes@redhat.com> - 18.6b2-2
|
|
|
aa60c12 |
- Add new build and runtime dependency python3-toml
|
|
|
aa60c12 |
- Don't download external packages in tests
|
|
|
aa60c12 |
- Create missing empty_pyproject.toml for tests
|
|
|
aa60c12 |
|
|
|
4385d0a |
* Sat Jun 09 2018 Christian Heimes <cheimes@redhat.com> - 18.6b2-1
|
|
|
4385d0a |
- New upstream release 18.6b2, rhbz#1589399
|
|
|
4385d0a |
|
|
|
626b9b3 |
* Wed Jun 06 2018 Christian Heimes <cheimes@redhat.com> - 18.6b1-1
|
|
|
626b9b3 |
- New upstream release 18.6b1
|
|
|
626b9b3 |
|
|
|
21af0fe |
* Tue May 29 2018 Christian Heimes <cheimes@redhat.com> - 18.5b1-1
|
|
|
21af0fe |
- New upstream release 18.5b0, rhbz#1579822
|
|
|
21af0fe |
|
|
|
3a58c47 |
* Fri May 04 2018 Christian Heimes <cheimes@redhat.com> - 18.4a4-2
|
|
|
3a58c47 |
- Add man page
|
|
|
3a58c47 |
- Ignore false spelling warnings
|
|
|
3a58c47 |
|
|
|
33708b5 |
* Wed May 02 2018 Christian Heimes <cheimes@redhat.com> - 18.4a4-1
|
|
|
33708b5 |
- Initial package.
|