Skip to content

Commit

Permalink
Fix publish to PyPi for win and mac wheels. Add packages badges in re…
Browse files Browse the repository at this point in the history
…adme. Bump prefix tree dependency version to 0.7
  • Loading branch information
vemonet committed Jan 3, 2024
1 parent 40c7b48 commit a74e51e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install wasm-pack for JS
run: cargo install wasm-pack

- name: Setup node for JS
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 20
Expand Down Expand Up @@ -149,12 +149,12 @@ jobs:
with:
name: curies_wheel_universal2_mac
path: target/wheels/*.whl
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: target/wheels
- name: Publish to PyPI
if: github.event_name == 'release'
run: pip install twine && twine upload target/wheels/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}


wheel_windows:
Expand All @@ -178,9 +178,9 @@ jobs:
with:
name: curies_wheel_x86_64_windows
path: target/wheels/*.whl
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages-dir: target/wheels
- name: Publish to PyPI
if: github.event_name == 'release'
run: pip install twine && twine upload target/wheels/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,28 @@
🦀 curies.rs
</h1>

<p align="center">
<a href="https://crates.io/crates/curies">
<img alt="crates.io" src="https://img.shields.io/crates/v/curies.svg" />
</a>
<a href="https://www.npmjs.com/package/@biopragmatics/curies">
<img alt="npm" src="https://img.shields.io/npm/v/@biopragmatics/curies" />
</a>
<a href="https://pypi.org/project/curies-rs">
<img alt="PyPI" src="https://img.shields.io/pypi/v/curies-rs" />
</a>
</p>

<p align="center">
<a href="https://github.com/biopragmatics/curies.rs/actions/workflows/test.yml">
<img alt="Test" src="https://github.com/biopragmatics/curies.rs/actions/workflows/test.yml/badge.svg" />
</a>
<a href="https://github.com/biopragmatics/curies.rs/actions/workflows/build.yml">
<img alt="Build" src="https://github.com/biopragmatics/curies.rs/actions/workflows/build.yml/badge.svg" />
</a>
<a href="https://docs.rs/curies">
<img alt="crates" src="https://docs.rs/curies/badge.svg" />
</a>
<a href="https://deps.rs/repo/github/biopragmatics/curies.rs">
<img src="https://deps.rs/repo/github/biopragmatics/curies.rs/status.svg" alt="Dependency status" />
</a>
Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ authors.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
ptrie = "0.6"
ptrie = "0.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
reqwest = { version = "0.11", features = ["blocking", "json"] }
Expand Down

0 comments on commit a74e51e

Please sign in to comment.