Group :: Development/Python3
RPM: python3-module-flit
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name flit
%define pypi_name_core flit-core
%def_with check
Name: python3-module-%pypi_name
Version: 3.8.0
Release: alt1
Summary: A simple packaging tool for simple packages
License: BSD-3-Clause
Group: Development/Python3
URL: https://pypi.org/project/flit/
VCS: https://github.com/pypa/flit
BuildArch: noarch
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
%if_with check
# deps
BuildRequires: python3(requests)
BuildRequires: python3(docutils)
BuildRequires: python3(tomli-w)
BuildRequires: python3(pytest)
BuildRequires: python3(testpath)
BuildRequires: python3(responses)
BuildRequires: python3(tomli)
%endif
%description
Flit is a simple way to put Python packages and modules on PyPI. It tries to
require less thought about packaging and help you avoid common mistakes
%package -n python3-module-%pypi_name_core
Summary: Distribution-building parts of Flit
License: BSD
Group: Development/Python3
# previously flit_core was a part of flit
Conflicts: python3-module-flit <= 3.6.0
%py3_provides %pypi_name_core
%description -n python3-module-%pypi_name_core
Distribution-building parts of Flit.
%prep
%setup
%autopatch -p1
%build
# build PEP517 backend
pushd flit_core
%pyproject_build
popd
# actually it should be built with self-hosted backend
export PYTHONPATH=$(pwd)/flit_core
%pyproject_build
%install
pushd flit_core
%pyproject_install
popd
%pyproject_install
# don't ship tests
rm -r %buildroot%python3_sitelibdir/flit_core/tests/
%check
%tox_check_pyproject
%files
%doc LICENSE
%doc README.rst
%_bindir/flit
%python3_sitelibdir/flit/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%files -n python3-module-%pypi_name_core
%python3_sitelibdir/flit_core/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name_core}/
%changelog
…
Full changelog you can see here
%define pypi_name flit
%define pypi_name_core flit-core
%def_with check
Name: python3-module-%pypi_name
Version: 3.8.0
Release: alt1
Summary: A simple packaging tool for simple packages
License: BSD-3-Clause
Group: Development/Python3
URL: https://pypi.org/project/flit/
VCS: https://github.com/pypa/flit
BuildArch: noarch
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildRequires(pre): rpm-build-python3
%if_with check
# deps
BuildRequires: python3(requests)
BuildRequires: python3(docutils)
BuildRequires: python3(tomli-w)
BuildRequires: python3(pytest)
BuildRequires: python3(testpath)
BuildRequires: python3(responses)
BuildRequires: python3(tomli)
%endif
%description
Flit is a simple way to put Python packages and modules on PyPI. It tries to
require less thought about packaging and help you avoid common mistakes
%package -n python3-module-%pypi_name_core
Summary: Distribution-building parts of Flit
License: BSD
Group: Development/Python3
# previously flit_core was a part of flit
Conflicts: python3-module-flit <= 3.6.0
%py3_provides %pypi_name_core
%description -n python3-module-%pypi_name_core
Distribution-building parts of Flit.
%prep
%setup
%autopatch -p1
%build
# build PEP517 backend
pushd flit_core
%pyproject_build
popd
# actually it should be built with self-hosted backend
export PYTHONPATH=$(pwd)/flit_core
%pyproject_build
%install
pushd flit_core
%pyproject_install
popd
%pyproject_install
# don't ship tests
rm -r %buildroot%python3_sitelibdir/flit_core/tests/
%check
%tox_check_pyproject
%files
%doc LICENSE
%doc README.rst
%_bindir/flit
%python3_sitelibdir/flit/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%files -n python3-module-%pypi_name_core
%python3_sitelibdir/flit_core/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name_core}/
%changelog
…
Full changelog you can see here