diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3788254..d0cb01c 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -10,7 +10,7 @@ on: branches: [ "master" ] jobs: - build: + test: runs-on: ubuntu-latest strategy: @@ -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 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f79e2e1..0926ca3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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']