Skip to content

_#4

Merged
xtsea merged 4 commits into
testerfrom
main
Jan 18, 2026
Merged

_#4
xtsea merged 4 commits into
testerfrom
main

Conversation

@xtsea
Copy link
Copy Markdown
Contributor

@xtsea xtsea commented Jan 18, 2026

Summary by Sourcery

Fix packaging metadata and CI configuration for the userbot_auth project.

Enhancements:

  • Correct the package version file path and issue tracker URL in setup configuration.
  • Remove unnecessary typing dependency from installation requirements.

CI:

  • Pin the GitHub Actions Python version to 3.10.19 in the PyPI workflow.

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jan 18, 2026

Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adjusts packaging configuration and CI workflow: fixes package path used to read the version, corrects the GitHub Issues URL, removes an unnecessary runtime dependency, and pins the PyPI publish workflow to a specific Python version.

Sequence diagram for PyPI publish GitHub Actions workflow using pinned Python version

sequenceDiagram
    actor Developer
    participant GitHub
    participant Workflow_pypi
    participant Actions_setup_python
    participant PyPI

    Developer->>GitHub: Push tag / release
    GitHub->>Workflow_pypi: Trigger pypi.yml
    Workflow_pypi->>Actions_setup_python: uses actions/setup-python@v2 with python-version 3.10.19
    Actions_setup_python-->>Workflow_pypi: Python 3.10.19 environment ready
    Workflow_pypi->>Workflow_pypi: Install dependencies
    Workflow_pypi->>PyPI: Build and upload package
    PyPI-->>Workflow_pypi: Publish result
    Workflow_pypi-->>Developer: Workflow status and logs
Loading

File-Level Changes

Change Details Files
Fix version file path used for the package metadata in setup configuration.
  • Update the version argument in setup() to read from the userbot_auth package directory instead of the previously underscored path
  • Ensure the package version is sourced from the correct version.py file at build time
setup.py
Correct project metadata and dependencies in setup configuration.
  • Fix the project Issues URL to point to the /issues endpoint instead of /issue
  • Remove typing from install_requires since it is part of the standard library in supported Python versions
setup.py
Pin the PyPI publishing GitHub Actions workflow to a specific Python version.
  • Change the GitHub Actions workflow Python version from a floating 3.x to an explicit 3.10.19 for more reproducible builds
.github/workflows/pypi.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@xtsea xtsea merged commit 36ddb6f into tester Jan 18, 2026
2 checks passed
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • Pinning the GitHub Actions python-version to 3.10.19 is quite strict and may require frequent maintenance; consider using a minor version like 3.10 or 3.10.x unless you specifically need that exact patch.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Pinning the GitHub Actions `python-version` to `3.10.19` is quite strict and may require frequent maintenance; consider using a minor version like `3.10` or `3.10.x` unless you specifically need that exact patch.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant