Skip to content

Commit

Permalink
fixup! python: switch to pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohhh committed Jan 10, 2024
1 parent a0dd028 commit 7cd786f
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 16 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install fpga-tools
uses: YosysHQ/setup-oss-cad-suite@v2
- name: Setup PDM
uses: pdm-project/setup-pdm@v3
with:
python-version: '3.10'
- name: Install dependencies
run: pdm install -G test
run: pdm install -G test -G ci_test
- name: Run test suite
run:
pdm test
YOSYS=yowasp-yosys pdm test

publish_pypi:
if: github.ref == 'refs/heads/main'
Expand Down
85 changes: 77 additions & 8 deletions pdm.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ Documentation = "https://apertus-open-source-cinema.github.io/naps/"
publish = [
"twine>=4.0.2",
]
ci_test = [
"yowasp-yosys>=0.36.0.8.post620",
]
[tool.pdm.dev-dependencies]
test = [
"PiDNG",
Expand All @@ -56,6 +59,7 @@ requires = ["pdm-backend"]
build-backend = "pdm.backend"



[tool.pdm.build]
excludes = ["**/.sim_results"]

Expand Down

0 comments on commit 7cd786f

Please # to comment.