Skip to content

Commit

Permalink
Bump version for new release. (#43)
Browse files Browse the repository at this point in the history
* fix: version bump (#38)

* publish_develop workflow to publish -dev package to pypi

* Update setup.cfg (#42)

Signed-off-by: pacuraro <122358966+pacuraro@users.noreply.github.com>

* misc: version bump for new release

---------

Signed-off-by: pacuraro <122358966+pacuraro@users.noreply.github.com>
Signed-off-by: Gustavo Silva <gustavosantaremsilva@gmail.com>
Co-authored-by: Filipe Pina <fopina@gmail.com>
Co-authored-by: Filipe Pina <636320+fopina@users.noreply.github.com>
Co-authored-by: pacuraro <122358966+pacuraro@users.noreply.github.com>
  • Loading branch information
4 people committed Jul 27, 2023
1 parent 018bf92 commit 1816a8b
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [created]

jobs:
deploy:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/publish_develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflows 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 develop

on:
push:
branches:
- develop

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Update package name, version and README
run: |
sed -i 's/^name = django-dkron$/name = django-dkron-dev/' setup.cfg
sed -i "s/^__version__ = .*/__version__ = '0.${{ github.run_number }}'/" dkron/__init__.py
echo dev releases from https://github.com/surface-security/django-dkron > README.md
- name: Confirm package name changed
run: test -n "$(git status --porcelain setup.cfg)"
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
2 changes: 1 addition & 1 deletion .github/workflows/publish_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- testpypi/*

jobs:
deploy:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion dkron/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.1.1'
__version__ = '1.1.2'

# set default_app_config when using django earlier than 3.2
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ packages = find:
# requires 3.9 due to django-notification-sender...
python_requires = >=3.9
install_requires =
Django >= 3.0, < 4
Django >= 3.0, < 5
django-logbasecommand < 1
django-notification-sender < 1
requests > 2, < 3
Expand Down

0 comments on commit 1816a8b

Please sign in to comment.