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

test_python_sdist: run on release tags only #5

Closed
wants to merge 6 commits into from

Conversation

tomjakubowski
Copy link
Owner

also updates the cargo patch-job so it uses the .crate files produced earlier in the workflow instead of using git sources with metadata. this is closer to what happens when installing a release version sdist (and would help us catch problems packaging the server and client crate sources)

Pull Request Checklist

  • Description which clearly states what problems the PR solves.
  • Description contains a link to the Github Issue, and any relevent
    Discussions, this PR applies to.
  • Include new tests that fail without this PR but passes with it.
  • Include any relevent Documentation changes related to this change.
  • Verify all commits have been signed in accordance with the DCO policy.
  • Reviewed PR commit history to remove unnecessary changes.
  • Make sure your PR passes build, test and lint steps completely.

Signed-off-by: Andrew Stein <steinlink@gmail.com>

# Conflicts:
#	rust/perspective-python/Cargo.toml
@tomjakubowski tomjakubowski force-pushed the sdist-ci-followups branch 5 times, most recently from aab0b79 to 3a8506b Compare November 5, 2024 03:39
fixes bug when cmake is installed to a path with a space in it

Signed-off-by: Tom Jakubowski <tom@prospective.dev>
Also updates the cargo patch-job so it uses the .crate files produced
earlier in the workflow instead of using git sources with metadata. This
is closer to what happens when building and installing from a release
sdist, which pulls .crate files from crates.io.

Signed-off-by: Tom Jakubowski <tom@prospective.dev>
Change how the CMAKE_C_FLAGS_RELEASE and CMAKE_CXX_FLAGS_RELEASE
variables are reset and used.  They are now interpolated into
CMAKE_CXX_FLAGS, placed before the EXTENDED_FLAGS so that EXTENDED_FLAGS
and OPT_FLAGS can override the FLAGS_RELEASE.  This ensures that RELEASE
flags from the environment are used, while allowing them to be
overridden by perspective's optimization flags.

Also preserve values of `CMAKE_CXX_FLAGS` set by the builder.

This is a port of a conda-feedstock patch by Isuru Fernando.

<conda-forge/perspective-feedstock@9eab18c>

Signed-off-by: Tom Jakubowski <tom@prospective.dev>
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
this was an ODR violation: the same function was defined twice, once
with `inline` specifier in utils.h, and once without `inline` in
utils.cpp

it happened to work on clang and gcc and msvc, most of the time, but
broke in the conda build on Windows

Signed-off-by: Tom Jakubowski <tom@prospective.dev>
@tomjakubowski tomjakubowski force-pushed the sdist-ci-followups branch 2 times, most recently from 172478a to 5b5f9ce Compare November 5, 2024 03:43
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