Skip to content

[minor] Convert to pyproject.toml #14

[minor] Convert to pyproject.toml

[minor] Convert to pyproject.toml #14

Workflow file for this run

# Peek at the release pyproject.toml
name: Preview Release
on:
pull_request:
jobs:
preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v3
with:
python-version: '3.12'
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
channel-priority: strict
activate-environment: my-env
use-mamba: true
- name: Update environment
shell: bash -l {0}
run: mamba env update -n my-env -f .ci_support/environment.yml
- name: Conda list
shell: bash -l {0}
run: conda list
- name: Peek
shell: bash -l {0}
run: |
which pip
which python
ls
cat pyproject.toml
cat setup.py
- name: Install versioneer
shell: bash -l {0}
run: |
pip install versioneer[toml]==0.29
- name: Install local code without build isolation
shell: bash -l {0}
run: |
pip install --no-deps . --no-build-isolation
- name: Install local code with build isolation
if: inputs.no-build-isolation != 'true'
shell: bash -l {0}
run: |
pip install --no-deps ${{ inputs.local-code-directory }}
- uses: pyiron/actions/update-pyproject-dependencies@main
with:
lower-bound-yaml: .ci_support/lower_bound.yml
semantic-upper-bound: minor
pypi-to-conda-name-map-file: .ci_support/pypi_vs_conda_names.json
- name: Preview
shell: bash -l {0}
run: |
cat pyproject.toml
- name: Build
shell: bash -l {0}
run: |
python setup.py sdist bdist_wheel