pyproject-rpm-macros/tests/python-entrypoints.spec

47 lines
975 B
RPMSpec
Raw Normal View History

2019-07-02 14:53:05 +00:00
%global pypi_name entrypoints
Name: python-%{pypi_name}
Version: 0.3
Release: 0%{?dist}
Summary: Discover and load entry points from installed packages
License: MIT
URL: https://entrypoints.readthedocs.io/
Source0: %{pypi_source}
BuildArch: noarch
BuildRequires: pyproject-rpm-macros
%description
Discover and load entry points from installed packages.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Discover and load entry points from installed packages.
%prep
%autosetup -p1 -n %{pypi_name}-%{version}
%generate_buildrequires
2019-07-18 09:54:04 +00:00
%pyproject_buildrequires
2019-07-02 14:53:05 +00:00
%build
%pyproject_wheel
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/entrypoints-*.dist-info/
%{python3_sitelib}/entrypoints.py
%{python3_sitelib}/__pycache__/entrypoints.*