From 7a63ae66d2f74c44dd8abbcb81dafb0997665135 Mon Sep 17 00:00:00 2001 From: Patricio Cerda Mardini Date: Tue, 19 Mar 2024 10:55:42 +0100 Subject: [PATCH 1/2] fix release CI --- .../{ligthtwood.yml => lightwood.yml} | 15 ++++++----- .github/workflows/release.yml | 26 ------------------- 2 files changed, 9 insertions(+), 32 deletions(-) rename .github/workflows/{ligthtwood.yml => lightwood.yml} (83%) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ligthtwood.yml b/.github/workflows/lightwood.yml similarity index 83% rename from .github/workflows/ligthtwood.yml rename to .github/workflows/lightwood.yml index b9c7b9296..9e87fb1fd 100644 --- a/.github/workflows/ligthtwood.yml +++ b/.github/workflows/lightwood.yml @@ -46,6 +46,7 @@ jobs: deploy: runs-on: ubuntu-latest + environment: PublishCI needs: test if: github.ref == 'refs/heads/stable' || github.event_name == 'release' steps: @@ -57,11 +58,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + pip install poetry + - name: Build + run: poetry build + - name: Publish env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + POETRY_HTTP_BASIC_PYPI_USERNAME: __token__ + POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist - twine upload dist/* + poetry publish --dry-run + poetry publish diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index fc6cf8b2d..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Release Lightwood - -on: - release: - types: [ published ] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist - twine upload dist/* \ No newline at end of file From ae13566dcbd4979a87ad133860062c33d3fa661d Mon Sep 17 00:00:00 2001 From: Patricio Cerda Mardini Date: Tue, 19 Mar 2024 10:57:11 +0100 Subject: [PATCH 2/2] version bump: 24.3.3.1 --- lightwood/__about__.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lightwood/__about__.py b/lightwood/__about__.py index 72c02c861..7a82050a4 100644 --- a/lightwood/__about__.py +++ b/lightwood/__about__.py @@ -1,6 +1,6 @@ __title__ = 'lightwood' __package_name__ = 'lightwood' -__version__ = '24.3.3.0' +__version__ = '24.3.3.1' __description__ = "Lightwood is a toolkit for automatic machine learning model building" __email__ = "community@mindsdb.com" __author__ = 'MindsDB Inc' diff --git a/pyproject.toml b/pyproject.toml index df0e41615..a20cf7c25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "lightwood" -version = "24.3.3.0" +version = "24.3.3.1" description = "Lightwood is Legos for Machine Learning." authors = ["MindsDB Inc."] license = "GPL-3.0-only"