diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..1c0d3c42 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: PyPI Release + +on: + push: + tags: + - '*' + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: | + pip install --upgrade pip + pip install build + pip install -e '.[dev]' + + - name: Build package + run: python -m build + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 846e9b8e..59c6348e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up python + - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' diff --git a/pyproject.toml b/pyproject.toml index c76b328d..e8099b4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,13 +8,18 @@ description = "debug-gym - interactive debugging environment" readme = "README.md" requires-python = ">=3.12" dynamic = ["dependencies", "version"] - classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ] +[project.urls] +Homepage = "https://aka.ms/debug-gym" +Repository = "https://github.com/microsoft/debug-gym" +Issues = "https://github.com/microsoft/debug-gym/issues" +Changelog = "https://github.com/microsoft/debug-gym/blob/main/CHANGELOG.md" + [tool.setuptools.dynamic] dependencies = {file = ["requirements.txt"]} version = {attr = "debug_gym.__version__"}