From 9d354ac76602683bd8147dd5d15b5b20961c5b23 Mon Sep 17 00:00:00 2001 From: Tyler Fox Date: Wed, 8 Nov 2023 20:21:06 -0800 Subject: [PATCH] Set up PyPI uploads --- .github/workflows/main.yml | 13 +++++++++++++ pyproject.toml | 2 +- simplexui/__init__.py | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index eccf2fb..65b4385 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -244,6 +244,7 @@ jobs: - name: Build Wheel run: | + py -3 -m pip install -U pip py -3 -m pip install -U build wheel hatch py -3 -m hatch version $(git describe --tags --abbrev=0) py -3 -m build --wheel @@ -284,6 +285,7 @@ jobs: - name: Build Wheel run: | + python3 -m pip install -U pip python3 -m pip install -U build wheel hatch python3 -m hatch version $(git describe --tags --abbrev=0) python3 -m build --wheel @@ -322,6 +324,7 @@ jobs: - name: Build Wheel run: | + python3 -m pip install -U pip python3 -m pip install -U build wheel hatch python3 -m hatch version $(git describe --tags --abbrev=0) python3 -m build --wheel @@ -397,3 +400,13 @@ jobs: files: | *.zip *.whl + + - name: Publish To PyPI + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python3 -m pip install -U pip + python3 -m pip install -U twine + python3 -m twine upload --verbose *.whl diff --git a/pyproject.toml b/pyproject.toml index 51f437d..47b1074 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "simplexui" +name = "simplex-solver" dynamic = [ "version" ] diff --git a/simplexui/__init__.py b/simplexui/__init__.py index c4a10e0..b7bb7a8 100644 --- a/simplexui/__init__.py +++ b/simplexui/__init__.py @@ -20,7 +20,7 @@ SIMPLEX_UI = None SIMPLEX_UI_ROOT = None -__version__ = "v0.0.0" +__version__ = "v0.0.1-dev" def runSimplexUI():