-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload to pypi--next step is to upload to conda-forge
- Loading branch information
1 parent
e6a2ef9
commit 5e8f75a
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Summary | ||
|
||
## Checklist | ||
|
||
- [ ] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!) | ||
- [ ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. | ||
- [ ] I've updated the documentation accordingly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
groups: | ||
dependencies: | ||
patterns: | ||
- "*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
name: "Publish release" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Pixi Python Project | ||
uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.28.2 | ||
cache: true | ||
environments: dev # separate by spaces; only using the dev environment to build | ||
|
||
- name: Install twine from conda-forge (globally as to not interfere) | ||
run: pixi global install twine | ||
|
||
- name: Build package | ||
run: pixi run -e dev build | ||
|
||
- name: Publish to PyPI | ||
run: twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[project] | ||
name = "ranx" | ||
name = "ranlibx" | ||
version = "0.0.1" | ||
description = "Add a short description here" | ||
authors = [{ name = "Ameer Arsala", email = "[email protected]" }] | ||
|
@@ -21,12 +21,15 @@ ranx = "ranx.cli.main:app" | |
build-backend = "hatchling.build" | ||
requires = ["hatchling"] | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["ranx"] # account for discrepancy between ranlibx and ranx | ||
|
||
[tool.pixi.project] | ||
channels = ["conda-forge"] | ||
platforms = ["linux-64", "osx-arm64", "win-64"] | ||
|
||
[tool.pixi.pypi-dependencies] | ||
ranx = { path = ".", editable = true } | ||
ranlibx = { path = ".", editable = true } | ||
|
||
[tool.pixi.feature.devdeps.dependencies] | ||
pytest = "*" | ||
|