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

Fix django_stubs_ext directory collision with installation name #1667

Merged
merged 5 commits into from
Aug 31, 2023

Conversation

flaeppe
Copy link
Member

@flaeppe flaeppe commented Aug 30, 2023

I have made things!

Moves django_stubs_ext to a directory named ext/, which doesn't collide with its installation name.. Any name other than django_stubs_ext works really.

This should fix odd test suite errors happening depending on environment and depending from where you invoke python(pytest).

Although, unfortunately, people having installed pinned version(s) via &subdirectory=django_stubs_ext have to update their url to &subdirectory=ext

Related issues

Refs: #1627
Refs: #1658 (comment)

Moves `django_stubs_ext` to a directory named `ext/`, which doesn't
collide with its installation name.. Any name other than
`django_stubs_ext` works really.

This should fix odd test suite errors happening depending on
environment and depending from where you invoke python(`pytest`).

Although, unfortunately, people having installed pinned version(s) via
`&subdirectory=django_stubs_ext` have to update their url to
`&subdirectory=ext`
@@ -68,7 +68,7 @@ jobs:

# Must match `shard` definition in the test matrix:
- name: Run tests
run: PYTHONPATH='.' pytest --num-shards=4 --shard-id=${{ matrix.shard }}
run: PYTHONPATH='.' pytest --num-shards=4 --shard-id=${{ matrix.shard }} tests
Copy link
Member Author

Choose a reason for hiding this comment

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

It appears django_stubs_ext/tests ran twice previously. Once under test job and once under matrix-test job

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

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

Thanks! I was not able to dig into it :)

@flaeppe flaeppe merged commit efea3d3 into typeddjango:master Aug 31, 2023
28 checks passed
@flaeppe flaeppe deleted the fix/ext-name-clash branch August 31, 2023 08:35
@flaeppe flaeppe mentioned this pull request Aug 31, 2023
@flaeppe flaeppe linked an issue Aug 31, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

stubtest contribution guide comes out non successful
2 participants