Skip to content

Conversation

@deepcharles
Copy link
Owner

@deepcharles deepcharles commented Aug 20, 2025

The build process was not working properly anymore. The __version__ attribute was not picked up: the line version = attr: ruptures.__version__ in setup.cfg file fails with a ModuleNotFoundError.

Related issues/PR:

I'm not sure why this is a problem only now.

My workaround is to remove the culprit line that was causing the error:

version = attr: ruptures.__version__

The version is correctly picked up from ruptures/version.py. However this is an implicit behaviour and I haven't found any documentation on it. Maybe not the best mechanism, so I'm open to suggestions.

This should solve #351 #353

This PR also adds an option to prevent uploading wheels and dist to PyPI. This way we can build wheels and dist (for Python 3.13 for instance) and upload them manually to PyPI without incrementing the version.

@github-actions github-actions bot added the Type: Build Bug fix to a build script label Aug 20, 2025
@codecov
Copy link

codecov bot commented Aug 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (39a837b) to head (5ef2ad9).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #354   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files          40       40           
  Lines         980      980           
=======================================
  Hits          968      968           
  Misses         12       12           
Flag Coverage Δ
unittests 98.77% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@deepcharles deepcharles marked this pull request as ready for review August 20, 2025 15:36
@deepcharles deepcharles self-assigned this Aug 20, 2025
@deepcharles deepcharles merged commit f0b04b5 into master Aug 20, 2025
20 checks passed
@deepcharles deepcharles deleted the setuptools-fix branch August 20, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Build Bug fix to a build script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants