From f5918e85d960989d02c6a10d587204e494c7dc53 Mon Sep 17 00:00:00 2001 From: Kristof Daja Date: Sat, 12 Dec 2020 00:16:47 +0100 Subject: [PATCH] Stepped to v2.5.0 Added preliminary .github/workflows --- .github/workflows/publish-to-test-pypi.yml | 35 ++++++++++++++++++++++ setup.py | 4 +-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish-to-test-pypi.yml diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml new file mode 100644 index 0000000..66c20f0 --- /dev/null +++ b/.github/workflows/publish-to-test-pypi.yml @@ -0,0 +1,35 @@ +name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI + +on: push + +jobs: + build-n-publish: + name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@master + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install pypa/build + run: >- + python -m + pip install + build wheel + --user + - name: Build a binary wheel and a source tarball + run: >- + python + setup.py + bdist_wheel + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@master + with: + password: ${{ secrets.PYPI_TEST }} + repository_url: https://test.pypi.org/legacy/ +# - name: Publish distribution 📦 to PyPI +# if: startsWith(github.ref, 'refs/tags') +# uses: pypa/gh-action-pypi-publish@master +# with: +# password: ${{ secrets.PYPI_DJANGO_MINIO_BACKEND }} diff --git a/setup.py b/setup.py index 91eb439..728593f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) -CURRENT_GIT_TAG = 'v2.4.0' +CURRENT_GIT_TAG = 'v2.5.0' year = datetime.datetime.now().year print(f'setup.py :: Using git tag {CURRENT_GIT_TAG}') @@ -27,7 +27,7 @@ author_email='kristof@daja.hu', install_requires=[ 'Django>=2.2.2', - 'minio>=4.0.9', + 'minio>=4.0.9,<7' ], classifiers=[ 'Environment :: Web Environment',