diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0699ac..b637272 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,6 @@ jobs: - uses: actions/checkout@v4 - uses: extractions/setup-just@v2 - uses: astral-sh/setup-uv@v3 - with: - enable-cache: true - cache-dependency-glob: "**/pyproject.toml" - run: just publish env: PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} diff --git a/Justfile b/Justfile index d8dfd81..e0196d6 100644 --- a/Justfile +++ b/Justfile @@ -28,5 +28,6 @@ lint-ci: publish: rm -rf dist + uv version $GITHUB_REF_NAME uv build uv publish --token $PYPI_TOKEN diff --git a/pyproject.toml b/pyproject.toml index d72a092..92e49d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,10 +20,7 @@ classifiers = [ "Typing :: Typed", "Topic :: Software Development :: Libraries", ] -dynamic = ["version"] -packages = [ - { include = "modern_pg" }, -] +version = "0" dependencies = [ "tenacity", "sqlalchemy[asyncio]", @@ -44,11 +41,12 @@ dev-dependencies = [ ] [build-system] -requires = ["hatchling", "hatch-vcs"] -build-backend = "hatchling.build" +requires = ["uv_build"] +build-backend = "uv_build" -[tool.hatch.version] -source = "vcs" +[tool.uv.build-backend] +module-name = "modern_pg" +module-root = "" [tool.mypy] python_version = "3.10"