Skip to content

refactor: introduce uv as management tool#5

Merged
LoveEatCandy merged 4 commits intomainfrom
leavers/refactor/introduce-uv
Dec 2, 2025
Merged

refactor: introduce uv as management tool#5
LoveEatCandy merged 4 commits intomainfrom
leavers/refactor/introduce-uv

Conversation

@leavers
Copy link
Collaborator

@leavers leavers commented Nov 30, 2025

Changes:

  1. Use uv as project management tool;
  2. Use uv-build hatchling as build tool.

@codecov-commenter
Copy link

codecov-commenter commented Nov 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.96%. Comparing base (f892dc1) to head (58da028).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main       #5       +/-   ##
===========================================
+ Coverage   78.35%   93.96%   +15.61%     
===========================================
  Files          12       12               
  Lines         850      829       -21     
===========================================
+ Hits          666      779      +113     
+ Misses        184       50      -134     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leavers
Copy link
Collaborator Author

leavers commented Nov 30, 2025

@LoveEatCandy 老铁有空瞅瞅

pyproject.toml Outdated
[project]
name = "megstore"
dynamic = ["version", "dependencies", "optional-dependencies", "readme"]
version = "0.0.1"
Copy link
Member

Choose a reason for hiding this comment

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

version 在 version.py 里面写了,希望可以仅在一处配置

Copy link
Collaborator Author

@leavers leavers Dec 1, 2025

Choose a reason for hiding this comment

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

发现 uv-build 还不支持动态 version,改成 hatchling

58da028

@LoveEatCandy
Copy link
Member

应该还是支持 pip install -e . 的吧

@leavers
Copy link
Collaborator Author

leavers commented Dec 1, 2025

应该还是支持 pip install -e . 的吧

@LoveEatCandy 可以的,用法是 uv pip install -e .

@LoveEatCandy LoveEatCandy merged commit 60207c1 into main Dec 2, 2025
11 checks passed
@LoveEatCandy LoveEatCandy deleted the leavers/refactor/introduce-uv branch December 2, 2025 08:46
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.

3 participants