Skip to content
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

Python release #1957

Merged
merged 3 commits into from
Jun 7, 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
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
flake8 ./python --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
cd python
- name: Release Python
if: ${{ startsWith(env.commitmsg, 'ci(python)') }}
if: ${{ startsWith(env.commitmsg, 'feat(python)') || startsWith(env.commitmsg, 'fix(python)') }}
run: |
echo Commit MSG = $commitmsg
export VERSION=$(semantic-release print-version)
if [ ! -z "$VERSION" ]; then
GH_TOKEN=${{ secrets.GITHUB_TOKEN }} PYPI_TOKEN=${{ secrets.PYPI_TOKEN }} semantic-release publish
fi
2 changes: 1 addition & 1 deletion python/bullmq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

A background job processor and message queue for Python based on Redis.
"""
__version__ = "0.1.0"
__version__ = "0.4.3"
__author__ = 'Taskforce.sh Inc.'
__credits__ = 'Taskforce.sh Inc.'

Expand Down
4 changes: 3 additions & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ filelock==3.12.0
msgpack==1.0.5
pipenv==2023.5.19
platformdirs==3.5.1
pre-commit==2.20.0
python-semantic-release==7.34.3
redis==4.5.5
semver==3.0.0
semver==2.13.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why an older version?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a conflict with python semantic release that is using version 2, as we are using the same method for both version is working for us as well

six==1.16.0
virtualenv==20.23.0
virtualenv-clone==0.5.7
5 changes: 5 additions & 0 deletions python/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[semantic_release]
branch = master
version_variable = bullmq/__init__.py:__version__
build_command = python3 setup.py sdist
tag_format = vpy{version}
9 changes: 8 additions & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup
from bullmq import __version__

# To use a consistent encoding
from codecs import open
Expand All @@ -10,7 +11,7 @@

setup(
name='bullmq',
version='0.4.3',
version=__version__,
description='BullMQ for Python',
long_description=long_description,
long_description_content_type="text/markdown",
Expand All @@ -25,6 +26,12 @@
'msgpack',
'semver',
],
extras_require={
"dev": [
"pre-commit==2.20.0",
"python-semantic-release==7.34.3",
]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
Expand Down