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

notebook test import #116

Closed
wants to merge 1 commit into from
Closed

Conversation

ncrubin
Copy link
Collaborator

@ncrubin ncrubin commented Oct 20, 2021

Example hack to let the notebook run. Because tests are moved outside the package module and we don't have a config file like OpenFermion this hack is necessary. @MichaelBroughton what do you suggest. For almost all OpenFermion packages we need to ship test data. Previously, in openfermion, we moved test data out of the module, but we relied on it so much for examples we ended up moving it back. Should we consider the same here? Is there a standard way of doing this?

Copy link

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

This doesn't appear to work on a fresh remote google colab on colab.sandbox.google.com. Looking closer it appears that the unittest_data isn't available on the pypi.org website: https://pypi.org/project/fqe/#files (inside the 0.2.0.tar.gz file the folder isn't there).
image

So I think we may need a different approach.

@ncrubin
Copy link
Collaborator Author

ncrubin commented Oct 21, 2021

Okay. I will either include the folder in the manifest or move the folder into the module. Adding to manifest will include something like recursive-include test *.py *.npy

@ncrubin ncrubin closed this Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants