Skip to content

Commit

Permalink
chore: disable pyproject.toml dynamic version for release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
pndurette committed Nov 21, 2022
1 parent 25d3c1c commit ed9d2d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[project]
name = "gTTS"
version = "2.2.4"
description = "gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate text-to-speech API"
authors = [{name = "Pierre Nicolas Durette", email = "pndurette@gmail.com"}]
requires-python = ">=3.7"
Expand Down Expand Up @@ -33,7 +34,12 @@ dependencies = [
"click ~= 8.1.3",
"six ~= 1.16.0"
]
dynamic = ["version"]

# TODO: release-please [yet] doesn't support dynamic version for pyproject.toml
# https://github.com/googleapis/release-please/blob/909d310defdf24adfd4858bbe1604668c14ef77f/src/updaters/python/pyproject-toml.ts#L54
# dynamic = ["version"]
# [tool.setuptools.dynamic]
# version = {attr = "gtts.version.__version__"}

[project.optional-dependencies]
tests = [
Expand All @@ -58,9 +64,6 @@ documentation = "https://gtts.readthedocs.io"
repository = "https://github.com/pndurette/gTTS"
changelog = "https://github.com/pndurette/gTTS/blob/main/CHANGELOG.rst"

[tool.setuptools.dynamic]
version = {attr = "gtts.version.__version__"}

[tool.setuptools.packages.find]
#where = ["src"] # list of folders that contain the packages (["."] by default)
#include = ["my_package*"] # package names should match these glob patterns (["*"] by default)
Expand Down

0 comments on commit ed9d2d4

Please sign in to comment.