Skip to content

Simplify python package description #7187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 26, 2025

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Mar 26, 2025

  • Remove conditional dev-release note from package description as
    PyPI makes it clear enough when user visits development release.

  • Make setup.py independent of CIRQ_PRE_RELEASE_VERSION.

  • Validate dev-version value in packaging_test.sh

  • Use runpy instead of exec to obtain version value.
    Make it less mysterious how is the __version__ obtained.

  • Clean up calls to io.open() which is an alias to open().

  • Normalize .dev version value to .dev0 per setuptools notice.

Skip `cirq_ts` which does not have the `__version__` attribute.
Make setup.py files simpler and independent of CIRQ_PRE_RELEASE_VERSION.
PyPI makes it already clear enough if looking at a development version.
Make it less mysterious how is the `__version__` value set.
`io.open` is an alias for `open` anyway.
Address setuptools notice to that effect.
Copy link

codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.14%. Comparing base (80a63b9) to head (9d8d75f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7187      +/-   ##
==========================================
- Coverage   98.14%   98.14%   -0.01%     
==========================================
  Files        1100     1100              
  Lines       96194    96191       -3     
==========================================
- Hits        94412    94409       -3     
  Misses       1782     1782              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pavoljuhas pavoljuhas marked this pull request as ready for review March 26, 2025 01:24
@pavoljuhas pavoljuhas requested a review from mhucka March 26, 2025 01:24
@pavoljuhas pavoljuhas force-pushed the simplify-setup-description branch from a2920c8 to 9d8d75f Compare March 26, 2025 02:07
Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

LGTM.

@pavoljuhas pavoljuhas added this pull request to the merge queue Mar 26, 2025
Merged via the queue into quantumlib:main with commit 53d3331 Mar 26, 2025
38 checks passed
@pavoljuhas pavoljuhas deleted the simplify-setup-description branch March 26, 2025 18:06
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.

2 participants