Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python-cloudevents #1336

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-1
- Initial package.