SPECS: add python-anthropic#74
Conversation
|
f4aa5bb to
9045319
Compare
2 3 solved, and I don't understand 1 fully. |
|
Please remove any unnecessary files from your Pull Request. |
039de35 to
5697d48
Compare
5697d48 to
65613d0
Compare
| BuildRequires: python3dist(sniffio) | ||
| BuildRequires: python3dist(typing-extensions) | ||
|
|
||
| Provides: python3-anthropic |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
| %prep | ||
| %autosetup -n anthropic-%{version} | ||
| # Align with available hatchling in distro while preserving minimum upstream requirement. | ||
| sed -i 's/hatchling==1.26.3/hatchling>=1.26.3/' pyproject.toml |
There was a problem hiding this comment.
| %prep | |
| %autosetup -n anthropic-%{version} | |
| # Align with available hatchling in distro while preserving minimum upstream requirement. | |
| sed -i 's/hatchling==1.26.3/hatchling>=1.26.3/' pyproject.toml | |
| %prep -a | |
| # Align with available hatchling in distro while preserving minimum upstream requirement. | |
| sed -i 's/hatchling==1.26.3/hatchling>=1.26.3/' pyproject.toml |
Will this work?
| BuildRequires: python3dist(hatchling) | ||
| BuildRequires: python3dist(pytest) | ||
|
|
||
| Provides: python3-docstring-parser |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
| # | ||
| # SPDX-License-Identifier: MulanPSL-2.0 | ||
|
|
||
| %global srcname docstring_parser |
There was a problem hiding this comment.
%global srcname docstring-parser
%global pypi_name docstring_parser
Check the new python naming guide: https://openruyi.cn/docs/guide/packaging-guidelines/languages/Python
| License: MIT | ||
| URL: https://github.com/rr-/docstring_parser | ||
| #!RemoteAsset: sha256:583de4a309722b3315439bb31d64ba3eebada841f2e2cee23b99df001434c912 | ||
| Source0: https://files.pythonhosted.org/packages/source/d/docstring_parser/%{srcname}-%{version}.tar.gz |
There was a problem hiding this comment.
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_ame}-%{version}.tar.gz
| BuildRequires: python3dist(pytest) | ||
|
|
||
| Provides: python3-docstring-parser | ||
| %python_provide python3-docstring-parser |
There was a problem hiding this comment.
Provides: python3-%{srcname}
| # Drop setuptools-scm to build with distro-provided static version metadata | ||
| Patch0: 0001-python-httpx-sse-drop-setuptools-scm-build-requireme.patch |
There was a problem hiding this comment.
Patches should be placed in their own section. Also, if this is not upstreamable, the patch number should be 2000.
| %global srcname httpx_sse | ||
| %global pypi_name httpx-sse |
There was a problem hiding this comment.
| %global srcname httpx_sse | |
| %global pypi_name httpx-sse | |
| %global srcname httpx-sse | |
| %global pypi_name httpx_sse |
There was a problem hiding this comment.
| HTTPX clients. | ||
|
|
||
| %prep -a | ||
| %autosetup -p1 -n %{srcname}-%{version} |
| %check | ||
| %pyproject_check_import jiter |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| BuildRequires: python3dist(setuptools) | ||
|
|
||
| Provides: python3-httpx-sse | ||
| %python_provide python3-httpx-sse |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| Provides: python3-jiter | ||
| %python_provide python3-jiter |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| # Disable uv-dynamic-versioning to keep the build fully source-tarball based | ||
| Patch0: 0001-python-mcp-drop-uv-dynamic-versioning.patch |
There was a problem hiding this comment.
Patches should be placed in their own section. Also, if this is not upstreamable, the patch number should be 2000.
| %check | ||
| %pyproject_check_import mcp |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| Provides: python3-mcp | ||
| %python_provide python3-mcp |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| %global srcname python_multipart | ||
| %global pypi_name python-multipart |
There was a problem hiding this comment.
| %global srcname python_multipart | |
| %global pypi_name python-multipart | |
| %global srcname python-multipart | |
| %global pypi_name python_multipart |
See: https://openruyi.cn/docs/guide/packaging-guidelines/languages/Python
| %global srcname python_multipart | ||
| %global pypi_name python-multipart | ||
|
|
||
| Name: python-multipart |
There was a problem hiding this comment.
If the upstream PyPI name is python-multipart, then this package should be called python-python-multipart.
| BuildRequires: python3dist(hatchling) | ||
|
|
||
| Provides: python3-multipart | ||
| %python_provide python3-multipart |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| License: Apache-2.0 | ||
| URL: https://github.com/Kludex/python-multipart | ||
| #!RemoteAsset: sha256:7340bef99a7e0032613f56dc36027b959fd3b30a787ed62d310e951f7c3a3a58 | ||
| Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{srcname}-%{version}.tar.gz |
There was a problem hiding this comment.
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{pypi_name}-%{version}.tar.gz
| %check | ||
| %pyproject_check_import python_multipart multipart |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| %global srcname pydantic_settings | ||
| %global pypi_name pydantic-settings |
There was a problem hiding this comment.
| %global srcname pydantic_settings | |
| %global pypi_name pydantic-settings | |
| %global srcname pydantic-settings | |
| %global pypi_name pydantic_settings |
See: https://openruyi.cn/docs/guide/packaging-guidelines/languages/Python
| License: MIT | ||
| URL: https://github.com/pydantic/pydantic-settings | ||
| #!RemoteAsset: sha256:b4c11847b15237fb0171e1462bf540e294affb9b86db4d9aa5c01730bdbe4025 | ||
| Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{srcname}-%{version}.tar.gz |
There was a problem hiding this comment.
| Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{srcname}-%{version}.tar.gz | |
| Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{pypi_name}-%{version}.tar.gz |
| Provides: python3-pydantic-settings | ||
| %python_provide python3-pydantic-settings |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| %check | ||
| %pyproject_check_import pydantic_settings |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| %global srcname sse_starlette | ||
| %global pypi_name sse-starlette |
There was a problem hiding this comment.
| %global srcname sse_starlette | |
| %global pypi_name sse-starlette | |
| %global srcname sse-starlette | |
| %global pypi_name sse_starlette |
See: https://openruyi.cn/docs/guide/packaging-guidelines/languages/Python
| License: BSD-3-Clause | ||
| URL: https://github.com/sysid/sse-starlette | ||
| #!RemoteAsset: sha256:72a95d7575fd5129bd0ae15275ac6432bb35ac542fdebb82889c24bb9f3f4049 | ||
| Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{srcname}-%{version}.tar.gz |
There was a problem hiding this comment.
Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{pypi_name}-%{version}.tar.gz
| Provides: python3-sse-starlette | ||
| %python_provide python3-sse-starlette |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| %check | ||
| %pyproject_check_import sse_starlette |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| Provides: python3-starlette | ||
| %python_provide python3-starlette |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| %check | ||
| %pyproject_check_import starlette |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
| Provides: python3-uvicorn | ||
| %python_provide python3-uvicorn |
There was a problem hiding this comment.
Provides: python3-%{srcname} = %{version}-%{release}
Provides: python3-%{srcname}
| %check | ||
| %pyproject_check_import uvicorn |
There was a problem hiding this comment.
Is there any reason to avoid using %check as provided by the pyproject BuildSystem?
necessity: lack of python-anthropic
AI declaration: powered by gpt-5.3-codex medium, reviewed by human
Signed-off-by: HNO3Miracle [email protected]