|
|
19bec2a |
Name: python-operator-courier
|
|
|
19bec2a |
Version: 1.0.0
|
|
|
19bec2a |
Release: 1%{?dist}
|
|
|
19bec2a |
Summary: Library and CLI tool to build, verify and push operator metadata
|
|
|
19bec2a |
|
|
|
19bec2a |
License: ASL 2.0
|
|
|
19bec2a |
URL: https://pypi.io/project/operator-courier
|
|
|
19bec2a |
|
|
|
19bec2a |
# TODO - eventually, use pypi_source like this, but I currently
|
|
|
19bec2a |
# get a (temporary) 504 Gateway Timeout with it. For now, use
|
|
|
19bec2a |
# this other url which works.
|
|
|
19bec2a |
#Source0: %%pypi_source operator-courier
|
|
|
19bec2a |
Source0: https://files.pythonhosted.org/packages/91/62/cf43c66e5d427e561e06635fbeabe867354edaa63dc2fbcb30e22ebefdcc/operator-courier-1.0.0.tar.gz
|
|
|
19bec2a |
|
|
|
19bec2a |
BuildArch: noarch
|
|
|
19bec2a |
|
|
|
19bec2a |
# https://fedoraproject.org/wiki/Changes/EnablingPythonGenerators
|
|
|
19bec2a |
%?python_enable_dependency_generator
|
|
|
19bec2a |
|
|
|
19bec2a |
|
|
|
19bec2a |
%description
|
|
|
19bec2a |
The operator courier library is used to build, validate and
|
|
|
19bec2a |
push Operator Artifacts to quay.io application registries.
|
|
|
19bec2a |
|
|
|
19bec2a |
%package -n python3-operator-courier
|
|
|
19bec2a |
Summary: Library to build, verify and push operator metadata
|
|
|
19bec2a |
|
|
|
19bec2a |
%{?python_provide:%python_provide python3-operator-courier}
|
|
|
19bec2a |
|
|
|
19bec2a |
BuildRequires: python3-devel
|
|
|
19bec2a |
BuildRequires: python3-setuptools
|
|
|
19bec2a |
BuildRequires: python3-requests
|
|
|
19bec2a |
BuildRequires: python3-PyYAML
|
|
|
19bec2a |
|
|
|
19bec2a |
# These are just for running tests, which will be enabled soon.
|
|
|
19bec2a |
BuildRequires: python3-pytest
|
|
|
19bec2a |
BuildRequires: python3-pytest-runner
|
|
|
19bec2a |
|
|
|
19bec2a |
|
|
|
19bec2a |
%description -n python3-operator-courier
|
|
|
19bec2a |
The operator courier library is used to build, validate and
|
|
|
19bec2a |
push Operator Artifacts to quay.io application registries.
|
|
|
19bec2a |
|
|
|
19bec2a |
%prep
|
|
|
19bec2a |
%autosetup -p1 -n operator-courier-%{version}
|
|
|
19bec2a |
|
|
|
19bec2a |
%build
|
|
|
19bec2a |
%py3_build
|
|
|
19bec2a |
|
|
|
19bec2a |
%install
|
|
|
19bec2a |
%py3_install
|
|
|
19bec2a |
|
|
|
19bec2a |
# No tests in the tarball yet. Soon!
|
|
|
19bec2a |
# https://github.com/operator-framework/operator-courier/issues/13
|
|
|
19bec2a |
#%check
|
|
|
19bec2a |
#PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
|
|
19bec2a |
|
|
|
19bec2a |
%files -n python3-operator-courier
|
|
|
19bec2a |
# No license in the tarball yet. Soon!
|
|
|
19bec2a |
# https://github.com/operator-framework/operator-courier/issues/13
|
|
|
19bec2a |
#%%license LICENSE
|
|
|
19bec2a |
%doc README.md
|
|
|
19bec2a |
%{_bindir}/operator-courier
|
|
|
19bec2a |
%{python3_sitelib}/*.egg-info
|
|
|
19bec2a |
%{python3_sitelib}/operatorcourier/
|
|
|
19bec2a |
|
|
|
19bec2a |
|
|
|
19bec2a |
%changelog
|
|
|
19bec2a |
* Mon Feb 11 2019 Ralph Bean <rbean@redhat.com> - 1.0.0-1
|
|
|
19bec2a |
- Initial packaging for Fedora.
|