Skip to content

SPECS: add python-anthropic#74

Open
HNO3Miracle wants to merge 10 commits intoopenRuyi-Project:mainfrom
HNO3Miracle:anthropic-mcp-stack
Open

SPECS: add python-anthropic#74
HNO3Miracle wants to merge 10 commits intoopenRuyi-Project:mainfrom
HNO3Miracle:anthropic-mcp-stack

Conversation

@HNO3Miracle
Copy link
Copy Markdown

necessity: lack of python-anthropic

AI declaration: powered by gpt-5.3-codex medium, reviewed by human
Signed-off-by: HNO3Miracle [email protected]

@misaka00251
Copy link
Copy Markdown
Member

misaka00251 commented Apr 7, 2026

  1. Please clean up your Pull Request.
  2. VCS: git:%{url}.git is forbidden.
  3. Commit message should be SPECS: Add xxx. instead of SPECS: add xxx.

@misaka00251 misaka00251 added Community: Student contribution Used by contributors that are currently students at an educational institution. Target: Rolling Targeting rolling/current branch. Workflow: In Review Issues that are undergoing code review and/or undergoing design review. BuildSystem: pyproject Issue/PR related to pyproject BuildSystem. labels Apr 7, 2026
@HNO3Miracle HNO3Miracle force-pushed the anthropic-mcp-stack branch from f4aa5bb to 9045319 Compare April 7, 2026 09:08
@HNO3Miracle
Copy link
Copy Markdown
Author

  1. Please clean up your Pull Request.
  2. VCS: git:%{url}.git is forbidden.
  3. Commit message should be SPECS: Add xxx. instead of SPECS: add xxx.

2 3 solved, and I don't understand 1 fully.

@misaka00251
Copy link
Copy Markdown
Member

Please remove any unnecessary files from your Pull Request.

@HNO3Miracle HNO3Miracle force-pushed the anthropic-mcp-stack branch 3 times, most recently from 039de35 to 5697d48 Compare April 14, 2026 08:50
@HNO3Miracle HNO3Miracle force-pushed the anthropic-mcp-stack branch from 5697d48 to 65613d0 Compare April 14, 2026 09:57
BuildRequires: python3dist(sniffio)
BuildRequires: python3dist(typing-extensions)

Provides: python3-anthropic
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides: python3-%{srcname} = %{version}-%{release}

Comment on lines +42 to +45
%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides: python3-%{srcname} = %{version}-%{release}

#
# SPDX-License-Identifier: MulanPSL-2.0

%global srcname docstring_parser
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

@misaka00251 misaka00251 Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides: python3-%{srcname}

Comment on lines +18 to +19
# Drop setuptools-scm to build with distro-provided static version metadata
Patch0: 0001-python-httpx-sse-drop-setuptools-scm-build-requireme.patch
Copy link
Copy Markdown
Member

@misaka00251 misaka00251 Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patches should be placed in their own section. Also, if this is not upstreamable, the patch number should be 2000.

Comment on lines +7 to +8
%global srcname httpx_sse
%global pypi_name httpx-sse
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%global srcname httpx_sse
%global pypi_name httpx-sse
%global srcname httpx-sse
%global pypi_name httpx_sse

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HTTPX clients.

%prep -a
%autosetup -p1 -n %{srcname}-%{version}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...?

Comment on lines +50 to +51
%check
%pyproject_check_import jiter
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +29 to +30
Provides: python3-jiter
%python_provide python3-jiter
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +17 to +18
# Disable uv-dynamic-versioning to keep the build fully source-tarball based
Patch0: 0001-python-mcp-drop-uv-dynamic-versioning.patch
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patches should be placed in their own section. Also, if this is not upstreamable, the patch number should be 2000.

Comment on lines +50 to +51
%check
%pyproject_check_import mcp
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Comment on lines +40 to +41
Provides: python3-mcp
%python_provide python3-mcp
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +7 to +8
%global srcname python_multipart
%global pypi_name python-multipart
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{pypi_name}-%{version}.tar.gz

Comment on lines +37 to +38
%check
%pyproject_check_import python_multipart multipart
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Comment on lines +7 to +8
%global srcname pydantic_settings
%global pypi_name pydantic-settings
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Comment on lines +30 to +31
Provides: python3-pydantic-settings
%python_provide python3-pydantic-settings
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +40 to +41
%check
%pyproject_check_import pydantic_settings
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Comment on lines +7 to +8
%global srcname sse_starlette
%global pypi_name sse-starlette
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source0:        https://files.pythonhosted.org/packages/source/s/%{srcname}/%{pypi_name}-%{version}.tar.gz

Comment on lines +29 to +30
Provides: python3-sse-starlette
%python_provide python3-sse-starlette
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +39 to +40
%check
%pyproject_check_import sse_starlette
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Comment on lines +29 to +30
Provides: python3-starlette
%python_provide python3-starlette
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +39 to +40
%check
%pyproject_check_import starlette
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Comment on lines +28 to +29
Provides: python3-uvicorn
%python_provide python3-uvicorn
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provides:       python3-%{srcname} = %{version}-%{release}
Provides:       python3-%{srcname}

Comment on lines +38 to +39
%check
%pyproject_check_import uvicorn
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason to avoid using %check as provided by the pyproject BuildSystem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BuildSystem: pyproject Issue/PR related to pyproject BuildSystem. Community: Student contribution Used by contributors that are currently students at an educational institution. Target: Rolling Targeting rolling/current branch. Workflow: In Review Issues that are undergoing code review and/or undergoing design review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants