Skip to content

Bump version for new release. #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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