Skip to content

Commit 28efe13

Browse files
committed
Added PyPi publishing
1 parent ba1df63 commit 28efe13

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,31 @@ jobs:
3131

3232
- name: Build the package
3333
run: maturin build
34+
35+
publish:
36+
needs: build
37+
runs-on: ubuntu-latest
38+
if: github.event_name == 'release'
39+
40+
steps:
41+
- name: Check out the repository
42+
uses: actions/checkout@v2
43+
44+
- name: Set up Python
45+
uses: actions/setup-python@v2
46+
with:
47+
python-version: '3.12'
48+
49+
- name: Set up Rust
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: stable
53+
override: true
54+
55+
- name: Install maturin
56+
run: pip install maturin
57+
58+
- name: Publish to PyPI
59+
env:
60+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
61+
run: maturin publish

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
[build-system]
22
requires = ["maturin"]
33
build-backend = "maturin"
4+
5+
[project]
6+
name = "symparsepy"
7+
requires-python = ">=3.12"
8+
description = "symparsepy is a Rust-based Python package for parsing symbols from PDB files. This package leverages the pyo3 library to create Python bindings for Rust code."
9+
readme = "README.md"
10+
license = {text = "MIT License"}
11+
version = "0.1.0"
12+
13+
[project.urls]
14+
Repository = "https://github.com/P1tt1cus/SymparsePy"

0 commit comments

Comments
 (0)