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

Remove entry points, fix #601 #624

Merged
merged 4 commits into from
Feb 12, 2023
Merged

Remove entry points, fix #601 #624

merged 4 commits into from
Feb 12, 2023

Conversation

NickleDave
Copy link
Collaborator

No description provided.

Remove since they are basically unused
by anyone but us, but require maintenance, test, etc.

Squash commits:
- Remove vak/entry_points.py
- Remove import of entry_points from vak/__init__.py
- Remove model and metric entry points from pyproject.toml
- Rewrite models/models.py to not use entry points
- Fix use of models.find in config/validators.py
- Fix use of find in config/models.py
- Remove entry point test in
  tests/test_models/test_teenytweetynet.py
- Fix entry point test in tests/test_models/test_tweetynet.py
@NickleDave NickleDave marked this pull request as ready for review February 12, 2023 02:22
to hopefully get full log of failures -- not seeing them now
Fix two unit tests to not look for TweetyNet datasets,
so they don't crash on CI

- Fix tests/test_models/test_base.py unit test that tests
  loading state dict from path, by using `model` fixture
  so it only runs with teenytweetynet.
- Fix tests/test_models/test_windowed_frame_classification_model.py
  unit test that tests definitions, by adding a MOCK_INPUT_SHAPE
  so we don't actually need to load a dataset to test.
  We really only used the dataset to get its input shape.
@NickleDave
Copy link
Collaborator Author

I am getting weird failures on CI, like this:

nox > Command pytest --models teenytweetynet --cov=./ --cov-report=xml failed with exit code -9
nox > Session coverage failed.
tests/test_nets/test_tweetynet.py ......
Error: Process completed with exit code 1.

I pushed one more commit that fixed actual failures due to unit tests looking for data that's not in the generated data we download during CI runs. But I don't think that explains the exit code -9 above. Going to merge because this is passing locally.

@NickleDave NickleDave merged commit b9d5b4b into version-1.0 Feb 12, 2023
@NickleDave NickleDave deleted the remove-entry-points branch February 13, 2023 01:40
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.

1 participant