summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-id.spec50
-rw-r--r--sources1
3 files changed, 52 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..75290f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/id-1.5.0.tar.gz
diff --git a/python-id.spec b/python-id.spec
new file mode 100644
index 0000000..8363f5d
--- /dev/null
+++ b/python-id.spec
@@ -0,0 +1,50 @@
+Name: python-id
+Version: 1.5.0
+Release: 1
+Summary: A tool for generating OIDC identities
+
+License: Apache-2.0
+URL: https://github.com/di/id
+Source: %{pypi_source id}
+
+BuildArch: noarch
+BuildRequires: python3-devel
+BuildRequires: python3-pytest
+BuildRequires: python3-pretend
+
+
+%global _description %{expand:
+id is a Python tool for generating OIDC identities. It can automatically
+detect and produce OIDC credentials on a number of environments,
+including GitHub Actions, GitLab pipelines and Google Cloud.}
+
+%description %_description
+
+%package -n python3-id
+Summary: %{summary}
+
+%description -n python3-id %_description
+
+%prep
+%autosetup -p1 -n id-%{version}
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+
+%check
+%pytest
+
+
+%files -n python3-id
+%license LICENSE
+%doc README.md
+%{python3_sitelib}/id
+%{python3_sitelib}/id-*.dist-info/
+
+
+%changelog
+* Fri Mar 14 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.5.0-1
+- package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..7bd09d3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+0dfa778f2fc740c95abd990209aa0036 id-1.5.0.tar.gz