Skip to content

Commit

Permalink
add workflow to release wheel to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Git committed Dec 16, 2023
1 parent ddf591f commit f3de281
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
47 changes: 46 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [ "master" ]

jobs:
build:
test:

runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -47,3 +47,48 @@ jobs:
run: |
pip install codecov
codecov
build:
needs:
- test
name: Build distributions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: "3.12"

- name: Install dependencies
run: |
python -m pip install -U build
- name: Build
run: python -m build

- uses: actions/upload-artifact@v3
with:
path: |
dist/*.tar.gz
dist/*.whl
deploy:
needs:
- build

runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

# Only publish when a GitHub Release is created.
if: github.event_name == 'release'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
23 changes: 20 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,27 @@ authors = [
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"fire",
"Mako",
"fire==0.5.0",
"Mako==1.3.0",
]
keywords = [
"verification", "testbench", "UVM", "template", "tool", "generator",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Software Development :: Documentation",
]

[project.optional-dependencies]
lint = ['ruff']
doc = ['sphinx']
Expand Down

0 comments on commit f3de281

Please sign in to comment.