Skip to content
Snippets Groups Projects

Convert scripts to entry_points

Open Duncan Macleod requested to merge duncanmmacleod/dqsegdb-client:entry-points into master
1 unresolved thread
+ 9
8
@@ -15,14 +15,11 @@ Source0: %pypi_source
BuildArch: noarch
Prefix: %{_prefix}
# rpmbuild dependencies
BuildRequires: python-srpm-macros
BuildRequires: python-rpm-macros
BuildRequires: python3-rpm-macros
# build requirements
BuildRequires: python%{python3_pkgversion}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-pip
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-wheel
# test requirements
BuildRequires: python%{python3_pkgversion}-pyOpenSSL >= 0.14
@@ -68,10 +65,14 @@ tools.
%autosetup -n %{srcname}-%{version}
%build
%py3_build
# remove the lalsuite requirement from setup.py, that is fulfilled by
# python3-lal RPMs
sed -i '/lalsuite/d' setup.py
# build the wheel
%py3_build_wheel
%install
%py3_install
%py3_install_wheel %{srcname}-%{version}-*.whl
%check
cd %{_builddir} # move out of the source tree
Loading