From e7ad07807babd7d597b4fbaaefa0cdc17c919ccc Mon Sep 17 00:00:00 2001 From: evanofslack <51209817+evanofslack@users.noreply.github.com> Date: Wed, 17 Nov 2021 20:48:43 -0500 Subject: [PATCH 1/2] create pypi packaging workflow --- .github/workflows/pypi-upload.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pypi-upload.yml diff --git a/.github/workflows/pypi-upload.yml b/.github/workflows/pypi-upload.yml new file mode 100644 index 0000000..ec77163 --- /dev/null +++ b/.github/workflows/pypi-upload.yml @@ -0,0 +1,33 @@ +name: Upload Python Package + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + upload: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: 3.8 + + # Install dependencies + - name: "Installs dependencies" + run: | + python3 -m pip install --upgrade pip + python3 -m pip install setuptools wheel twine build + + # Build and upload to PyPI + + - name: "Builds and uploads to PyPI" + run: | + python3 -m build + python3 -m twine upload dist/* + env: + TWINE_USERNAME: evan_slack + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file From 2d8e900c47fe73e73d3560c645823ad4be7367a8 Mon Sep 17 00:00:00 2001 From: evanofslack <51209817+evanofslack@users.noreply.github.com> Date: Wed, 17 Nov 2021 20:49:05 -0500 Subject: [PATCH 2/2] prepare for v0.1.5 release --- pyminion/__init__.py | 2 +- setup.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyminion/__init__.py b/pyminion/__init__.py index adfbfc6..4356461 100644 --- a/pyminion/__init__.py +++ b/pyminion/__init__.py @@ -5,7 +5,7 @@ """ -__version__ = "0.1.4" +__version__ = "0.1.5" __author__ = "Evan Slack" diff --git a/setup.py b/setup.py index 4bf1c22..a2a58a5 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="pyminion", - version="0.1.4", + version="0.1.5", author="Evan Slack", author_email="evan.slack@outlook.com", description="Dominion but make it python", @@ -21,6 +21,8 @@ exclude=( "tests", "tests.*", + "examples", + "examples.*", ) ), python_requires=">=3.8",