Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Find module path at runtime#89

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fjwillemsen merged 2 commits intopython-constraint:mainfromiyanmv:path-test
Feb 8, 2025

Conversation

@iyanmv
Copy link
Contributor

Currently,test_if_compiled() only passes if you run the test while being in the source repository. Trying to run the test after installing the generated wheel package in a different directory will fail because "./constraint" may not exist, or worse, give a false failure since the shared libraries might exist in the wheel package but not in the source directory.

Instead, let's get the get the path ofconstraint at runtime so that the test can be run in both scenarios.

(I'm not sure if this will work as-it-is with current GitHub Actions, so opening this PR to figure it out)

Currently, this test only passes if you run the test while being in thesource repository. Trying to run the test after installing the generatedwheel package in a different directory will fail because "./constraint" maynot exist, or worse, give a false failure since the shared librariesmight exist in the wheel package but not in the source directory.
@coveralls
Copy link

Coverage Status

coverage: 87.109%. remained the same
when pulling5285a06 on iyanmv:path-test
into97f4cd6 on python-constraint:main.

@fjwillemsenfjwillemsen merged commit5a42848 intopython-constraint:mainFeb 8, 2025
1 check passed
@fjwillemsen
Copy link
Member

@iyanmv thank you for contributing another fix! It will be included in the next release. If you need it sooner than that, let me know and I'll release an intermediate version.

iyanmv reacted with thumbs up emoji

@iyanmv
Copy link
ContributorAuthor

@iyanmv thank you for contributing another fix! It will be included in the next release. If you need it sooner than that, let me know and I'll release an intermediate version.

No, no need for an early release ;)

@fjwillemsen
Copy link
Member

I've just released this in2.0.3. Thank you again!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fjwillemsenfjwillemsenfjwillemsen approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@iyanmv@coveralls@fjwillemsen

[8]ページ先頭

©2009-2025 Movatter.jp