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

Properly include "data packages" in project #1114

Merged
merged 2 commits into from
Jul 25, 2022
Merged

Properly include "data packages" in project #1114

merged 2 commits into from
Jul 25, 2022

Conversation

jwodder
Copy link
Member

@jwodder jwodder commented Jun 9, 2022

There are several folders in dandiapi/ that contain data files but no Python source code, and we want these to be included when dandiapi is installed. Currently, these folders are automatically included by the combination of graft dandiapi in MANIFEST.in and include_package_data=True in setup.py, but because we set packages in setup.py to find_packages() instead of find_namespace_packages(), the folders themselves are not recognized by setuptools as packages. This combination of settings is deprecated, and the setuptools developers recommend using find_namespace_packages() instead of find_packages() for such situations.

@jwodder jwodder added the internal Changes only affect the internal API label Jun 9, 2022
Copy link
Member

@mvandenburgh mvandenburgh left a comment

Choose a reason for hiding this comment

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

Looks good to me, just need one linting fix.

We'll definitely want to test this in our staging Heroku deployment before cutting a release.

setup.py Outdated Show resolved Hide resolved
Co-authored-by: Mike VanDenburgh <37340715+mvandenburgh@users.noreply.github.com>
@yarikoptic
Copy link
Member

was approved and we indeed better test on staging but for that we need to merge. I will be the brave soul to press the green button

@yarikoptic yarikoptic merged commit a98c4c5 into master Jul 25, 2022
@yarikoptic yarikoptic deleted the data-pkg branch July 25, 2022 14:55
@dandibot
Copy link
Member

🚀 PR was released in v0.2.40 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes only affect the internal API released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants