From 98373ac9446d668966f2456917832de045a7cde8 Mon Sep 17 00:00:00 2001 From: rzyu45 Date: Mon, 3 Jun 2024 20:57:35 +0800 Subject: [PATCH] update pyproject.toml --- .github/workflows/publish-to-pypi.yml | 5 ++++- pyproject.toml | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index f2d980f..3e8e562 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI -on: push +on: + push: + branches: + - 'release/**' jobs: build: diff --git a/pyproject.toml b/pyproject.toml index 46bd04e..c844c18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,13 @@ [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["setuptools>=64", "setuptools_scm>=8"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +version_file = "Solverz/_version.py" [project] name = "Solverz" -version = "0.0.1rc4" +dynamic = ["version"] dependencies = [ "sympy>=1.11.1", "numba == 0.58.1",