Skip to content

Clean up PyPI release - #66

Merged
FanwangM merged 2 commits into
masterfrom
pypi_dev
Sep 8, 2026
Merged

FanwangM merged 2 commits into
masterfrom
pypi_dev

Conversation

@FanwangM

@FanwangM FanwangM commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Description

Enable automatic PyPI release

Type of Changes

Please remove the lines that don't represent the type of your PR.

🪲 Bug Fix
📚 Documentation
🎨 Improve Format & Structure
🚀 Release

Related Issue

Closes #64

Copilot AI lite review requested due to automatic review settings September 8, 2026 11:28
@FanwangM FanwangM changed the title Pypi dev Clean up PyPI release Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Runtime dependencies appear incomplete for a clean install (notably denspart is imported unconditionally but not declared), which conflicts with the stated goal of enabling reliable releases/installs.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR aims to support automated PyPI releases by cleaning up packaging metadata and making the Sphinx documentation version track repository tags.

Changes:

  • Removes a stale commented install hint from requirements.txt.
  • Removes a stale commented version line from pyproject.toml.
  • Updates Sphinx version/release to be derived from the latest git tag.
File summaries
File Description
requirements.txt Removes a comment, but this is also where runtime deps are sourced for packaging.
pyproject.toml Removes a commented version line while keeping dynamic versioning enabled.
doc/conf.py Sets Sphinx version/release based on git tags via a helper function.
Review details
  • Files reviewed: 2/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread doc/conf.py
Comment on lines +48 to +57
def _git_tag_version(default='1.0.0'):
try:
tag = subprocess.check_output(
['git', 'describe', '--tags', '--abbrev=0'],
cwd=os.path.abspath('..'),
stderr=subprocess.DEVNULL,
)
return tag.decode('utf-8').strip().lstrip('v') or default
except Exception:
return default
@FanwangM
FanwangM merged commit 19eafd0 into master Sep 8, 2026
1 check passed
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.

Clean installation from main fails with ModuleNotFoundError: No module named 'rhopart'

2 participants