From 4fe09ad781656913a75d8ecaa144e0a5114f6369 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Tue, 5 Mar 2024 21:47:28 -0700 Subject: [PATCH] Set version, but not readme, in dynamic metadata It looks like meson doesn't allow readme in dynamic metadata. Be sure to install _version.py. --- babelizer/data/{{cookiecutter.package_name}}/meson.build | 1 + babelizer/data/{{cookiecutter.package_name}}/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/babelizer/data/{{cookiecutter.package_name}}/meson.build b/babelizer/data/{{cookiecutter.package_name}}/meson.build index d3ae3d4f..cd75be5f 100644 --- a/babelizer/data/{{cookiecutter.package_name}}/meson.build +++ b/babelizer/data/{{cookiecutter.package_name}}/meson.build @@ -38,6 +38,7 @@ srcs = [ install_pkg_srcs = [ '{{ cookiecutter.package_name }}/__init__.py', '{{ cookiecutter.package_name }}/_bmi.py', + '{{ cookiecutter.package_name }}/_version.py', ] py.install_sources( install_pkg_srcs, diff --git a/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml b/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml index b56ade47..91694789 100644 --- a/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml +++ b/babelizer/data/{{cookiecutter.package_name}}/pyproject.toml @@ -25,7 +25,7 @@ classifiers=[ ] requires-python = ">=3.10" keywords=["bmi", "pymt"] -dynamic = ["readme", "version"] +dynamic = ["version"] dependencies = [ "numpy", ]