From b9d05194418a9312cb10917583eac49f7e02b8cd Mon Sep 17 00:00:00 2001 From: Mohammadreza Amani Date: Sat, 23 Nov 2024 15:45:14 +0330 Subject: [PATCH] fix: fix as tag. --- .github/workflows/pipy_release.yml | 15 +++++++++++---- pyproject.toml | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pipy_release.yml b/.github/workflows/pipy_release.yml index e44ef45..fd8d665 100644 --- a/.github/workflows/pipy_release.yml +++ b/.github/workflows/pipy_release.yml @@ -4,20 +4,27 @@ on: push: branches: - main + jobs: build-n-publish: name: Publish to PyPI runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: python-version: '3.12' - - name: Install dependencies - run: python -m pip install setuptools wheel - - name: Build a binary wheel - run: python setup.py sdist bdist_wheel + + - name: Upgrade pip and install tools + run: | + python -m pip install --upgrade pip + python -m pip install build twine uv + + - name: Build the package + run: uv build + - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@master with: diff --git a/pyproject.toml b/pyproject.toml index eaaf968..34b3143 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ # pyproject.toml [build-system] -requires = ["setuptools>=61.0.0", "wheel"] +requires = ["setuptools>=61.0", "wheel", "uv"] build-backend = "setuptools.build_meta" [project] name = "inui" -version = "1.0.0.1" +version = "1.0.0.2" description = "Powerful and Highly Customizable Python Library for UI" readme = "README.md" authors = [{ name = "Mohammadreza Amani", email = "more.amani@yahoo.com" }]