Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

move test and fixtures to root level and simplify test-install command #4264

Merged
merged 8 commits into from
May 20, 2020

Conversation

epwalsh
Copy link
Member

@epwalsh epwalsh commented May 19, 2020

Closes #4252. We keep the test-install comman, but it will just print out some useful info and ensure all of the core submodules can be imported.

There are a few places in our CI that actually use the test-install command, so for now I think this is the easiest solution. And it's important to have a check like this so that we can catch certain errors like forgetting to include a library dependency in setup.py.

Copy link
Contributor

@matt-gardner matt-gardner left a comment

Choose a reason for hiding this comment

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

LGTM, but are we also going to move the tests and fixtures out of the main module?

import_module_and_submodules("allennlp.predictors")
import_module_and_submodules("allennlp.training")
logger.info("AllenNLP version %s installed to %s", VERSION, _get_module_root())
logger.info("Cuda devices available: %s", torch.cuda.device_count())
Copy link
Member

Choose a reason for hiding this comment

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

I like this ;-)

@epwalsh epwalsh changed the title simplify test-install command move test and fixtures to root level and simplify test-install command May 20, 2020
@epwalsh
Copy link
Member Author

epwalsh commented May 20, 2020

@matt-gardner tests and fixtures are now at the root ✅

@epwalsh epwalsh merged commit 9c51d6c into allenai:master May 20, 2020
@epwalsh epwalsh deleted the test-install branch May 20, 2020 18:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do we still need the test-install command?
3 participants