Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pyforgejo for
openSUSE:Factory checked in at 2025-05-08 20:39:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyforgejo (Old)
and /work/SRC/openSUSE:Factory/.python-pyforgejo.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyforgejo"
Thu May 8 20:39:58 2025 rev:5 rq:1275632 version:2.0.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyforgejo/python-pyforgejo.changes
2025-04-29 16:42:48.856323776 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyforgejo.new.30101/python-pyforgejo.changes
2025-05-08 20:40:03.304665872 +0200
@@ -1,0 +2,9 @@
+Thu May 8 16:18:35 UTC 2025 - Richard Rahl <[email protected]>
+
+- update to 2.0.4:
+ * update pyproject.toml
+ * update dev steps
+ * remove debug statements for base_url and api_key
+ * update dev steps
+
+-------------------------------------------------------------------
Old:
----
pyforgejo-2.0.3.tar.gz
New:
----
pyforgejo-2.0.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyforgejo.spec ++++++
--- /var/tmp/diff_new_pack.DjQeuv/_old 2025-05-08 20:40:03.684681734 +0200
+++ /var/tmp/diff_new_pack.DjQeuv/_new 2025-05-08 20:40:03.688681901 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-pyforgejo
-Version: 2.0.3
+Version: 2.0.4
Release: 0
Summary: A client library for accessing the Forgejo API
License: MIT
++++++ pyforgejo-2.0.3.tar.gz -> pyforgejo-2.0.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyforgejo-2.0.3/PKG-INFO new/pyforgejo-2.0.4/PKG-INFO
--- old/pyforgejo-2.0.3/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/pyforgejo-2.0.4/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.3
Name: pyforgejo
-Version: 2.0.3
+Version: 2.0.4
Summary: A Python client library for accessing the Forgejo API
License: MIT
Author: harabat
@@ -257,9 +257,6 @@
+ base_url = base_url or BASE_URL
+ api_key = api_key or API_KEY
+
-+ print(f"Using BASE_URL: {base_url if base_url else 'Not set'}")
-+ print(f"Using API_KEY: {'*' * 40 if api_key else 'Not set'}")
-+
+ if not base_url:
+ raise ValueError("base_url must be provided either as an .env
variable or as an argument")
+ if not api_key:
@@ -267,7 +264,19 @@
# same for AsyncPyforgejoApi
```
-10. Create a virtual environment and install the lib.
+10. Update handling of `api_key` in `core/client_wrapper.py`.
+
+``` diff
+ def get_headers(self) -> typing.Dict[str, str]:
+ headers: typing.Dict[str, str] = {
+ "X-Fern-Language": "Python",
+ }
+- headers["Authorization"] = self.api_key
++ headers["Authorization"] = f"token {self.api_key.replace('token ',
'')}"
+ return headers
+```
+
+11. Create a virtual environment and install the lib.
``` shell
cd /path/to/sdks
@@ -280,7 +289,7 @@
uv sync
```
-11. Use the client as shown in the [Usage](#usage) section.
+12. Use the client as shown in the [Usage](#usage) section.
``` python
# uv pip install ipython
@@ -293,7 +302,7 @@
user = client.user.get_current()
```
-12. Run tests (tests need to be cloned from
<https://codeberg.org/harabat/pyforgejo/src/branch/main/tests)>.
+13. Run tests (tests need to be cloned from
<https://codeberg.org/harabat/pyforgejo/src/branch/main/tests)>.
``` python
uv pip install pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyforgejo-2.0.3/README.md
new/pyforgejo-2.0.4/README.md
--- old/pyforgejo-2.0.3/README.md 1970-01-01 01:00:00.000000000 +0100
+++ new/pyforgejo-2.0.4/README.md 1970-01-01 01:00:00.000000000 +0100
@@ -233,9 +233,6 @@
+ base_url = base_url or BASE_URL
+ api_key = api_key or API_KEY
+
-+ print(f"Using BASE_URL: {base_url if base_url else 'Not set'}")
-+ print(f"Using API_KEY: {'*' * 40 if api_key else 'Not set'}")
-+
+ if not base_url:
+ raise ValueError("base_url must be provided either as an .env
variable or as an argument")
+ if not api_key:
@@ -243,7 +240,19 @@
# same for AsyncPyforgejoApi
```
-10. Create a virtual environment and install the lib.
+10. Update handling of `api_key` in `core/client_wrapper.py`.
+
+``` diff
+ def get_headers(self) -> typing.Dict[str, str]:
+ headers: typing.Dict[str, str] = {
+ "X-Fern-Language": "Python",
+ }
+- headers["Authorization"] = self.api_key
++ headers["Authorization"] = f"token {self.api_key.replace('token ',
'')}"
+ return headers
+```
+
+11. Create a virtual environment and install the lib.
``` shell
cd /path/to/sdks
@@ -256,7 +265,7 @@
uv sync
```
-11. Use the client as shown in the [Usage](#usage) section.
+12. Use the client as shown in the [Usage](#usage) section.
``` python
# uv pip install ipython
@@ -269,7 +278,7 @@
user = client.user.get_current()
```
-12. Run tests (tests need to be cloned from
<https://codeberg.org/harabat/pyforgejo/src/branch/main/tests)>.
+13. Run tests (tests need to be cloned from
<https://codeberg.org/harabat/pyforgejo/src/branch/main/tests)>.
``` python
uv pip install pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyforgejo-2.0.3/pyforgejo/client.py
new/pyforgejo-2.0.4/pyforgejo/client.py
--- old/pyforgejo-2.0.3/pyforgejo/client.py 1970-01-01 01:00:00.000000000
+0100
+++ new/pyforgejo-2.0.4/pyforgejo/client.py 1970-01-01 01:00:00.000000000
+0100
@@ -75,9 +75,6 @@
base_url = base_url or BASE_URL
api_key = api_key or API_KEY
- print(f"Using BASE_URL: {base_url if base_url else 'Not set'}")
- print(f"Using API_KEY: {'*' * 40 if api_key else 'Not set'}")
-
if not base_url:
raise ValueError(
"base_url must be provided either as an .env variable or as an
argument"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyforgejo-2.0.3/pyproject.toml
new/pyforgejo-2.0.4/pyproject.toml
--- old/pyforgejo-2.0.3/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/pyforgejo-2.0.4/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
@@ -4,7 +4,7 @@
[project]
name = "pyforgejo"
-version = "2.0.3"
+version = "2.0.4"
description = "A Python client library for accessing the Forgejo API"
authors = [
{name = "harabat"},