-
Notifications
You must be signed in to change notification settings - Fork 85
fix: dependecies and conda build #720
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
Changes from all commits
22318fb
40b1887
a57180e
f5edc2c
3eb357a
6d5c342
3494e8d
3ca5ebe
b41176d
8a98682
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: Test Conda Build | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'conda/**' | ||
| - 'pyproject.toml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test-conda-build: | ||
| # Use short, fixed build & package directories to prevent excessively long conda env prefixes | ||
| env: | ||
| CONDA_BLD_PATH: /tmp/conda-bld | ||
| CONDA_PKGS_DIRS: /tmp/conda-pkgs | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Miniconda | ||
| uses: conda-incubator/setup-miniconda@v3 | ||
| with: | ||
| auto-activate-base: true | ||
| activate-environment: "" | ||
|
|
||
| - name: Prepare short conda directories | ||
| run: | | ||
| sudo mkdir -p /tmp/conda-bld /tmp/conda-pkgs | ||
| sudo chown $USER:$USER /tmp/conda-bld /tmp/conda-pkgs | ||
|
|
||
| - name: Test conda build | ||
| shell: bash -l {0} | ||
| run: | | ||
| # Ensure conda-build uses short paths to avoid long prefix issues | ||
| conda install -y conda-build | ||
| export CONDA_BLD_PATH=${CONDA_BLD_PATH:-/tmp/conda-bld} | ||
| export CONDA_PKGS_DIRS=${CONDA_PKGS_DIRS:-/tmp/conda-pkgs} | ||
| mkdir -p "$CONDA_BLD_PATH" "$CONDA_PKGS_DIRS" | ||
| conda build conda --no-anaconda-upload --output-folder build | ||
|
|
||
| - name: Show build artifacts | ||
| shell: bash -l {0} | ||
| run: | | ||
| ls -lh build/noarch/ | ||
| echo "Build successful! Package created:" | ||
| ls build/noarch/*.conda |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,56 @@ | ||||||
| # PyUp configuration | ||||||
| # See https://pyup.io/docs/configuration/ | ||||||
|
|
||||||
| # Update schedule | ||||||
| schedule: "every month" | ||||||
|
|
||||||
| # Branch to create PRs against | ||||||
| branch: master | ||||||
|
|
||||||
| # Only update direct dependencies in pyproject.toml main group | ||||||
| # Ignore all optional dependencies and transitive dependencies | ||||||
| update: insecure | ||||||
|
||||||
| update: insecure | |
| update: all |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| python: | ||
| - 3.9 | ||
| - 3.10 | ||
| - 3.11 | ||
| - 3.12 | ||
| - 3.12 | ||
| - 3.13 |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -10,16 +10,22 @@ source: | |||
|
|
||||
| build: | ||||
| number: 0 | ||||
| script: {{ PYTHON }} -m pip install . -vv | ||||
| noarch: python | ||||
|
||||
| noarch: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The
--forceflag in the anaconda upload command will overwrite existing packages without prompting. While this may be intentional for automated releases, consider whether this could accidentally overwrite a published package. If this is the desired behavior for re-publishing, it's fine; otherwise, consider removing--forceto prevent accidental overwrites.