Skip to content
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

Use package_data configuration option #272

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

SeanBryan51
Copy link
Collaborator

@SeanBryan51 SeanBryan51 commented Mar 20, 2024

Currently the uploaded tarball for benchcab v4.0.0 is missing the site-packages/benchcab/data directory (see https://anaconda.org/accessnri/benchcab/files). This change fixes this by replacing the include_package_data option with the package_data option in setup.cfg (see Data Files Support).

Conda package deployment was tested here in a forked repository and the uploaded tarball contains the package data directory.

Fixes #267

@SeanBryan51 SeanBryan51 linked an issue Mar 20, 2024 that may be closed by this pull request
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.93%. Comparing base (ac2cb1f) to head (8794d89).
Report is 6 commits behind head on main.

❗ Current head 8794d89 differs from pull request most recent head 0933e46. Consider uploading reports for the commit 0933e46 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #272      +/-   ##
==========================================
+ Coverage   63.84%   63.93%   +0.09%     
==========================================
  Files          35       35              
  Lines        2597     2612      +15     
==========================================
+ Hits         1658     1670      +12     
- Misses        939      942       +3     

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

@SeanBryan51 SeanBryan51 mentioned this pull request Mar 20, 2024
@SeanBryan51 SeanBryan51 requested review from a team and Whyborn and removed request for a team March 20, 2024 05:39
@Whyborn
Copy link

Whyborn commented Mar 20, 2024

Looks fine to merge to me.

Copy link

@Whyborn Whyborn left a comment

Choose a reason for hiding this comment

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

Seems to work as expected.

Currently the uploaded tarball for benchcab v4.0.0 is missing the
site-packages/benchcab/data directory (see
https://anaconda.org/accessnri/benchcab/files). This change fixes this
by replacing the include_package_data option with the package_data
option in setup.cfg (see Data Files Support).

Conda package deployment was tested here in a forked repository and the
uploaded tarball contains the package data directory.

Fixes #267
@SeanBryan51 SeanBryan51 merged commit 762c263 into main Mar 20, 2024
2 checks passed
@SeanBryan51 SeanBryan51 deleted the 267-fix-missing-package-data branch March 20, 2024 22: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.

FileNotFoundError when running benchcab v4.0.0
2 participants