From 194284b1ac88192770e1acc9eea89269bd490048 Mon Sep 17 00:00:00 2001 From: Young Date: Sun, 14 Apr 2024 00:09:30 +0800 Subject: [PATCH] Update version --- .github/workflows/python-publish.yml | 10 +++++----- .github/workflows/release-drafter.yml | 6 ++++++ .github/workflows/test_qlib_from_pip.yml | 5 ++++- .github/workflows/test_qlib_from_source.yml | 5 ++++- .github/workflows/test_qlib_from_source_slow.yml | 5 ++++- qlib/__init__.py | 2 +- 6 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5d88b295..9310cd5e 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -51,8 +51,8 @@ jobs: python setup.py bdist_wheel - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | twine upload dist/* @@ -72,10 +72,10 @@ jobs: python-version: 3.7 - name: Install dependencies run: | - pip install twine + pip install twine - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | twine upload dist/pyqlib-*-manylinux*.whl diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 113a4f00..7eefec58 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -6,8 +6,14 @@ on: branches: - main +permissions: + contents: read + jobs: update_release_draft: + permissions: + contents: write + pull-requests: read runs-on: ubuntu-latest steps: # Drafts your next Release notes as Pull Requests are merged into "master" diff --git a/.github/workflows/test_qlib_from_pip.yml b/.github/workflows/test_qlib_from_pip.yml index bde41d80..4cc842b2 100644 --- a/.github/workflows/test_qlib_from_pip.yml +++ b/.github/workflows/test_qlib_from_pip.yml @@ -13,7 +13,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-latest] + # Since macos-latest changed from 12.7.4 to 14.4.1, + # the minimum python version that matches a 14.4.1 version of macos is 3.10, + # so we limit the macos version to macos-12. + os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] # not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129 python-version: [3.7, 3.8] diff --git a/.github/workflows/test_qlib_from_source.yml b/.github/workflows/test_qlib_from_source.yml index 9205a136..38f32da8 100644 --- a/.github/workflows/test_qlib_from_source.yml +++ b/.github/workflows/test_qlib_from_source.yml @@ -14,7 +14,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-latest] + # Since macos-latest changed from 12.7.4 to 14.4.1, + # the minimum python version that matches a 14.4.1 version of macos is 3.10, + # so we limit the macos version to macos-12. + os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] # not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129 python-version: [3.7, 3.8] diff --git a/.github/workflows/test_qlib_from_source_slow.yml b/.github/workflows/test_qlib_from_source_slow.yml index caab6f44..8725d4fe 100644 --- a/.github/workflows/test_qlib_from_source_slow.yml +++ b/.github/workflows/test_qlib_from_source_slow.yml @@ -14,7 +14,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-latest] + # Since macos-latest changed from 12.7.4 to 14.4.1, + # the minimum python version that matches a 14.4.1 version of macos is 3.10, + # so we limit the macos version to macos-12. + os: [windows-latest, ubuntu-20.04, ubuntu-22.04, macos-11, macos-12] # not supporting 3.6 due to annotations is not supported https://stackoverflow.com/a/52890129 python-version: [3.7, 3.8] diff --git a/qlib/__init__.py b/qlib/__init__.py index ed95f589..8714df8d 100644 --- a/qlib/__init__.py +++ b/qlib/__init__.py @@ -2,7 +2,7 @@ # Licensed under the MIT License. from pathlib import Path -__version__ = "0.9.3.99" +__version__ = "0.9.4" __version__bak = __version__ # This version is backup for QlibConfig.reset_qlib_version import os from typing import Union