Skip to content

Commit

Permalink
Merge pull request #10 from ericsonj/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ericsonj committed Mar 11, 2021
2 parents 0262a3e + c7086e1 commit 44540b9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Publish

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Ericson Joseph'

# The full version, including alpha/beta/rc tags
release = '1.0.15'
release = '1.0.15-rc2'

version = release

Expand Down
2 changes: 1 addition & 1 deletion scripts/pymaketool
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ log = Logger.getLogger()
parser = argparse.ArgumentParser()
parser.add_argument('goal', type=str, help='Makefile command goal', default=None, nargs='?')
parser.add_argument('--init', type=str, help='initialize project', const=os.path.basename(os.getcwd()), dest='project_name', nargs='?')
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.0.15')
parser.add_argument('-v', '--version', action='version', version='%(prog)s 1.0.15-rc2')
args = parser.parse_args()

goal = args.goal
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pymaketool",
version="1.0.15",
version="1.0.15-rc2",
author="Ericson Joseph",
author_email="ericsonjoseph@gmail.com",
description="Python Makefile Tool",
Expand Down

0 comments on commit 44540b9

Please sign in to comment.