Skip to content

Commit

Permalink
Use dynamic version only without setuptools_scm to avoid install erro…
Browse files Browse the repository at this point in the history
…rs (#186)

Closes #185
  • Loading branch information
Czaki authored Jun 6, 2024
1 parent 04ec78f commit 46fa82b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions {{cookiecutter.plugin_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true

[tool.setuptools.dynamic]
version = {attr = "{{cookiecutter.module_name}}.__init__.__version__"}

[tool.setuptools.packages.find]
where = ["src"]

Expand All @@ -87,6 +84,9 @@ where = ["src"]
{% if cookiecutter.use_git_tags_for_versioning == 'y' and cookiecutter.plugin_name != "foo-bar" %}
[tool.setuptools_scm]
write_to = "src/{{cookiecutter.module_name}}/_version.py"
{% else %}
[tool.setuptools.dynamic]
version = {attr = "{{cookiecutter.module_name}}.__init__.__version__"}
{%- endif %}

[tool.black]
Expand Down

0 comments on commit 46fa82b

Please sign in to comment.