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

Pin project dependencies during hatch build #760

Merged
merged 10 commits into from
Nov 26, 2024

Conversation

techdragon
Copy link
Contributor

No description provided.

@techdragon techdragon force-pushed the pin-deps-during-hatch-build branch from eaa8c29 to d19f7bd Compare November 25, 2024 04:42
@techdragon techdragon force-pushed the pin-deps-during-hatch-build branch from d19f7bd to daeb147 Compare November 25, 2024 06:05
hatch_build.py Outdated Show resolved Hide resolved
@tennlee
Copy link
Collaborator

tennlee commented Nov 25, 2024

I have done a diff on the wheel from 1.2.0 as as built by this branch. I have noticed some minor difference we should discuss tomorrow, but essentially this looks good as far as I can tell. So it seems like we could reasonably move forward with this approach. In that spirit, I'm now leaving some fine-grained comments on the PR so this improvement can stand the test of time.

hatch_build.py Outdated Show resolved Hide resolved
hatch_build.py Outdated Show resolved Hide resolved
@tennlee
Copy link
Collaborator

tennlee commented Nov 25, 2024

So as far as I can tell this looks great, modulo some minor feedback. Some reflections. I think this means the pyproject.toml for the tagged release in github will vary from what's used to make 'METADATA' in the wheel. So if you were installing from a tagged github release (for some reason) you could get different versions to an sdist or wheel install from pypi. I find it hard to imagine that this would actually matter, but maybe it should be thought about a little. Thank you so much for identifying this approach and putting up this PR, I wouldn't have known how to do this without a lot of painstaking research.

@tennlee
Copy link
Collaborator

tennlee commented Nov 25, 2024

I will also undertake some additional manual testing tomorrow.

hatch_build.py Outdated Show resolved Hide resolved
@techdragon techdragon force-pushed the pin-deps-during-hatch-build branch from 850fe97 to 1d5fcc3 Compare November 25, 2024 16:31
@tennlee tennlee merged commit d693b2e into nci:develop Nov 26, 2024
10 of 11 checks passed
tennlee pushed a commit that referenced this pull request Dec 7, 2024
* Add Jetbrains IDE files to .gitignore
* Pin dependencies during hatch builds
* Add zenodo entry
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.

2 participants