Skip to content

Commit

Permalink
Add python-cloudevents
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Sep 24, 2024
1 parent 82b723e commit 7bee328
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions comps/comps-pulpcore-el8.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<packagereq type="default">python3.11-cleo</packagereq>
<packagereq type="default">python3.11-click</packagereq>
<packagereq type="default">python3.11-click-shell</packagereq>
<packagereq type="default">python3.11-python-cloudevents</packagereq>
<packagereq type="default">python3.11-colorama</packagereq>
<packagereq type="default">python3.11-commonmark</packagereq>
<packagereq type="default">python3.11-contextlib2</packagereq>
Expand Down
1 change: 1 addition & 0 deletions comps/comps-pulpcore-el9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<packagereq type="default">python3.11-cleo</packagereq>
<packagereq type="default">python3.11-click</packagereq>
<packagereq type="default">python3.11-click-shell</packagereq>
<packagereq type="default">python3.11-python-cloudevents</packagereq>
<packagereq type="default">python3.11-colorama</packagereq>
<packagereq type="default">python3.11-commonmark</packagereq>
<packagereq type="default">python3.11-contextlib2</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ tier4_packages:
python-cleo: {}
python-click: {}
python-click-shell: {}
python-cloudevents: {}
python-colorama: {}
python-commonmark: {}
python-contextlib2: {}
Expand Down
1 change: 1 addition & 0 deletions packages/python-cloudevents/cloudevents-1.11.0.tar.gz
62 changes: 62 additions & 0 deletions packages/python-cloudevents/python-cloudevents.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
%global python3_pkgversion 3.11
%global __python3 /usr/bin/python3.11

# Created by pyp2rpm-3.3.3
%global pypi_name cloudevents

Name: python-%{pypi_name}
Version: 1.11.0
Release: 1%{?dist}
Summary: Python SDK for CloudEvents

License: Apache Software License 2.0
URL: https://github.com/cloudevents/sdk-python/
Source0: https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch

BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools


%description
%{summary}


%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
Requires: python%{python3_pkgversion}-deprecation >= 2.0
Requires: python%{python3_pkgversion}-deprecation < 3.0


%description -n python%{python3_pkgversion}-%{pypi_name}
%{summary}


%prep
set -ex
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


%build
set -ex
%py3_build


%install
set -ex
%py3_install


%files -n python%{python3_pkgversion}-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info


%changelog
* Tue Sep 24 2024 Odilon Sousa - 1.11.0
- Initial package.

0 comments on commit 7bee328

Please sign in to comment.