b66e5d1
%global srcname entrypoints
b66e5d1
%global sum Discover and load entry points from installed packages
b66e5d1
ddf3cdf
%global python3_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
85c88ac
b66e5d1
Name:		python-%{srcname}
ef5397a
ef5397a
# WARNING: Check if an update does not break flake8!
76698d7
Version:	0.3
ef5397a
8973cb9
Release:	10%{?dist}
b66e5d1
Summary:	%{sum}
b66e5d1
b66e5d1
# license clarification issue opened upstream
b66e5d1
# https://github.com/takluyver/entrypoints/issues/10
b66e5d1
b66e5d1
License:	MIT
b66e5d1
b66e5d1
URL:		https://entrypoints.readthedocs.io/
b66e5d1
Source0:	https://github.com/takluyver/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
b66e5d1
b66e5d1
BuildArch:	noarch
2598b03
BuildRequires: make
b66e5d1
BuildRequires:	python3-devel
b66e5d1
BuildRequires:	python3-pip
b66e5d1
BuildRequires:	python3-flit
b66e5d1
BuildRequires:	python3-sphinx
b66e5d1
b66e5d1
%description
b66e5d1
Entry points are a way for Python packages to advertise objects with some
b66e5d1
common interface. The most common examples are console_scripts entry points,
b66e5d1
which define shell commands by identifying a Python function to run.
b66e5d1
b66e5d1
The entrypoints module contains functions to find and load entry points.
b66e5d1
b66e5d1
%package -n python3-%{srcname}
b66e5d1
Summary:	%{sum}
b66e5d1
%{?python_provide:%python_provide python3-%{srcname}}
b66e5d1
b66e5d1
%description -n python3-%{srcname}
b66e5d1
Entry points are a way for Python packages to advertise objects with some
b66e5d1
common interface. The most common examples are console_scripts entry points,
b66e5d1
which define shell commands by identifying a Python function to run.
b66e5d1
b66e5d1
The entrypoints module contains functions to find and load entry points.
b66e5d1
6d212ad
%package -n python-%{srcname}-doc
b66e5d1
Summary:	Documentation for python-entrypoints
b66e5d1
6d212ad
%description -n python-%{srcname}-doc
b66e5d1
Documentation files for python-entrypoints
b66e5d1
b66e5d1
%prep
b66e5d1
%autosetup -n %{srcname}-%{version}
b66e5d1
b66e5d1
b66e5d1
%build
877bce7
XDG_CACHE_HOME=$PWD/.cache FLIT_NO_NETWORK=1 flit build --format wheel
b66e5d1
b66e5d1
pushd doc
b66e5d1
make html PYTHON="%{__python3}" SPHINXBUILD=sphinx-build-%{python3_version}
b66e5d1
rm _build/html/.buildinfo
b66e5d1
popd
b66e5d1
b66e5d1
b66e5d1
%install
ddf3cdf
%py3_install_wheel %python3_wheelname
b66e5d1
b66e5d1
%files -n python3-%{srcname}
b66e5d1
%doc doc/_build/html
b66e5d1
%license LICENSE
186770f
%{python3_sitelib}/__pycache__/*
186770f
%{python3_sitelib}/*.py
73f96d7
%{python3_sitelib}/%{srcname}-%{version}.dist-info
b66e5d1
6d212ad
%files -n python-%{srcname}-doc
b66e5d1
%doc doc/_build/html
b66e5d1
%license LICENSE
b66e5d1
b66e5d1
%changelog
8973cb9
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-10
8973cb9
- Second attempt - Rebuilt for
8973cb9
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8973cb9
0fa594a
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3-9
0fa594a
- Rebuilt for Python 3.10
0fa594a
2b16fd6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-8
2b16fd6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2b16fd6
3f3aefa
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-7
3f3aefa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3f3aefa
9984e18
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3-6
9984e18
- Rebuilt for Python 3.9
9984e18
cb25469
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-5
cb25469
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cb25469
10506d3
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-4
10506d3
- Rebuilt for Python 3.8.0rc1 (#1748018)
10506d3
5a96349
* Sat Aug 17 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-3
5a96349
- Rebuilt for Python 3.8
5a96349
03be7cd
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-2
03be7cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
03be7cd
76698d7
* Tue Feb 26 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3-1
76698d7
- Update to 0.3
76698d7
e5900dc
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-11
e5900dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e5900dc
ddf3cdf
* Wed Nov 28 2018 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.3-10
ddf3cdf
- Drop py2 sub-packages
ddf3cdf
bed3c8e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-9
bed3c8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
bed3c8e
77713c8
* Sat Jul 07 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-8
77713c8
- Add missing dependency on python2-configparser (#1598998)
77713c8
1693800
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-7
877bce7
- Fix flit invocation
1693800
f2f26a6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.3-6
f2f26a6
- Rebuilt for Python 3.7
f2f26a6
5bd7d22
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-5
5bd7d22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5bd7d22
1f13d74
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.3-4
1f13d74
- Update Python 2 dependency declarations to new packaging standards
1f13d74
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
1f13d74
73f96d7
* Wed Jan 03 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.2.3-3
73f96d7
- Restore dist-info information (#1530098).
73f96d7
b25ae07
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.3-2
b25ae07
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b25ae07
e95c5ea
* Tue Jun 13 2017 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.3-1
e95c5ea
- Update to 0.2.3
e95c5ea
7f700f8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-7
7f700f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7f700f8
85c88ac
* Tue Jan 31 2017 Michal Cyprian <mcyprian@redhat.com> - 0.2.2-6
85c88ac
- Use python install wheel macros
85c88ac
6482c3b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-5
6482c3b
- Rebuild for Python 3.6
6482c3b
e95c5ea
* Sun Nov 06 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-4
186770f
- Do not own pycache dir
186770f
6d212ad
* Mon Oct 03 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-3
6d212ad
- Consolidate two doc subpackages into one
6d212ad
b66e5d1
* Sun Oct 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 0.2.2-2
b66e5d1
- Add -doc subpackages
b66e5d1
- Fix source url
b66e5d1
- Add license clarification issue URL for reference
b66e5d1
b66e5d1
* Sat Jul 2 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.2.2-1
b66e5d1
- Initial RPM release