add deployment github workflow

master
Anton Lydike 1 year ago
parent 2ec134f612
commit 26d7f65cc1

@ -0,0 +1,22 @@
name: Upload to PyPI
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
environment: publishing
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# install build package and build dist
- name: Build distribution
run: >-
python3 -m pip install build --user
python3 -m build --sdist --wheel --outdir dist/
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

@ -1,4 +1,5 @@
import setuptools
from glob import glob
import riscemu
@ -34,6 +35,9 @@ setuptools.setup(
package_data={
"riscemu": ["libc/*.s", "py.typed"],
},
data_files=[
('libc', glob('libc/*.s')),
],
scripts=["riscemu/tools/riscemu"],
python_requires=">=3.8",
install_requires=["pyelftools~=0.27"],

Loading…
Cancel
Save