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

Ship Cargo.lock in the source distribution #1508

Closed
wants to merge 4 commits into from
Closed

Ship Cargo.lock in the source distribution #1508

wants to merge 4 commits into from

Conversation

cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Dec 30, 2021

Which issue does this PR close?

It doesn't close an issue as far as I know.

Rationale for this change

Build systems like nix need Cargo.lock to build reproducible Rust packages.

The Cargo.lock file is necessary to generate a hash for a crate's dependencies.

Without the

What changes are included in this PR?

  • Updates to Cargo.lock resulting from running maturin build
  • Required changes to pyproject.toml to ship the Cargo.lock in the source distribution

Are there any user-facing changes?

No API changes.

Does user-facing mean only API changes?

@alamb
Copy link
Contributor

alamb commented Dec 31, 2021

Makes sense to me , but I defer to the python experts such as @jimexist

Note some of this code is being moved to a separate repo -- see #1324 for more details

@cpcloud
Copy link
Contributor Author

cpcloud commented Dec 31, 2021

Alright, I'll reopen the PR over there, thanks @alamb!

@cpcloud
Copy link
Contributor Author

cpcloud commented Dec 31, 2021

Hm, it looks like github actions hasn't been set up for that repo, so I'll leave this PR open for now.

@@ -77,6 +77,9 @@ jobs:
- name: Build Python package
run: maturin build --release --no-sdist --strip

- name: Check that the lock file is up to date
run: git diff --exit-code Cargo.lock
Copy link
Member

Choose a reason for hiding this comment

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

can you use --frozen and --locked per doc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, great idea. Thanks

@jimexist
Copy link
Member

jimexist commented Jan 3, 2022

after #1518 is merged please consider merging to that repo instead. thanks!

@cpcloud
Copy link
Contributor Author

cpcloud commented Jan 3, 2022

Ok, thanks. I'll just proactively move it over

@cpcloud
Copy link
Contributor Author

cpcloud commented Jan 5, 2022

Closing in favor of datafusion-contrib/datafusion-python#7

@cpcloud cpcloud closed this Jan 5, 2022
@cpcloud cpcloud deleted the ship-cargo-lock branch January 5, 2022 23:46
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.

3 participants