Skip to content

Commit

Permalink
use pixi to build pypi package
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbe7a committed May 23, 2024
1 parent 22f4bc7 commit c223b7c
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up pixi
uses: prefix-dev/setup-pixi@19b5e6071f70a82d3c5741d7b3f98a71d192eb20
with:
python-version: "3.9"
- name: Install Python build
run: pip install build
environments: build
- name: Build project
run: python -m build
run: pixi run -e build build-wheel
- name: Upload package
uses: actions/upload-artifact@v4
with:
Expand Down
281 changes: 281 additions & 0 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pytest-md = "*"
pytest-emoji = "*"
mypy = "*"

[feature.build.dependencies]
build = "*"

[feature.build.tasks]
build-wheel = "python -m build --no-isolation ."

[feature.test.tasks]
test = "pytest"

Expand All @@ -47,4 +53,5 @@ python = "3.12.*"
default = ["test"]
py38 = ["py38", "test"]
py312 = ["py312", "test"]
build = ["build"]
lint = ["lint"]

0 comments on commit c223b7c

Please sign in to comment.