From 8fd9f1183c2a3ff25e7d5255f586058b2b26ee96 Mon Sep 17 00:00:00 2001 From: AmirHosein Rostami <32750909+AHReccese@users.noreply.github.com> Date: Sat, 19 Oct 2024 02:27:08 +0330 Subject: [PATCH] trim the `long_description` string for the generated `setup.py` (#64) * trim the `long_description` string for the generated `setup.py` * CHANGELOG.md updated --------- Co-authored-by: Sepand Haghighi --- CHANGELOG.md | 1 + reserver/reserver_func.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e31bd41..072e099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added - `ReserverBaseError` added in `reserver/__init__.py` ### Changed +- `generate_template_setup_py` method in `reserver_func.py` - `Python 3.13` added to `test.yml` ## [0.3] - 2024-08-28 ### Added diff --git a/reserver/reserver_func.py b/reserver/reserver_func.py index 1141a4a..b824d18 100644 --- a/reserver/reserver_func.py +++ b/reserver/reserver_func.py @@ -102,9 +102,7 @@ def generate_template_setup_py(package_name, user_parameters): packages=[""" + "\"" + package_name + "\"" + "," + """], version='0.0.0', description=""" + "\"" + get_package_parameter("description", user_parameters) + "\"" + """, - long_description=\"\"\" - This name has been reserved using [Reserver](https://github.com/openscilab/reserver). - \"\"\", + long_description= \"This name has been reserved using [Reserver](https://github.com/openscilab/reserver).\", long_description_content_type='text/markdown', author=""" + "\"" + get_package_parameter("author", user_parameters) + "\"" + """, author_email=""" + "\"" + get_package_parameter("author_email", user_parameters, "email") + "\"" + """,