From 28491a9b7c8e5d899292b5557a67b3fb9eafd97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Trimaille?= Date: Wed, 5 Aug 2020 10:54:41 +0200 Subject: [PATCH] Use underscore instead of hyphen for plugin name #22 (#23) --- qgispluginci/parameters.py | 6 +++--- test/plugins.xml.expected | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qgispluginci/parameters.py b/qgispluginci/parameters.py index 505c9f8f..954f53cc 100644 --- a/qgispluginci/parameters.py +++ b/qgispluginci/parameters.py @@ -13,7 +13,7 @@ class Parameters: ---------- plugin_path: str The directory of the source code in the repository. - Defaults to: `slugify(plugin_name, separator='_')` + Defaults to: `slugify(plugin_name)` github_organization_slug: str The organization slug on SCM host (e.g. Github) and translation platform (e.g. Transifex). @@ -117,9 +117,9 @@ def archive_name(self, release_version: str, experimental: bool = False) -> str: Returns the archive file name """ # zipname: use dot before version number - # and not dash since it's causing issues + # and not dash since it's causing issues #22 return '{zipname}{experimental}.{release_version}.zip'.format( - zipname=self.plugin_slug, + zipname=self.plugin_slug.replace('-', '_'), experimental='-experimental' if experimental else '', release_version=release_version ) diff --git a/test/plugins.xml.expected b/test/plugins.xml.expected index 4dfa9d86..9508d0ee 100644 --- a/test/plugins.xml.expected +++ b/test/plugins.xml.expected @@ -5,10 +5,10 @@ 0.1.2 3.2 https://github.com/opengisch/qgis-plugin-ci - qgis-plugin-ci-testing.0.1.2.zip + qgis_plugin_ci_testing.0.1.2.zip icons/opengisch.png Denis Rouzaud - https://github.com/opengisch/qgis-plugin-ci/releases/download/0.1.2/qgis-plugin-ci-testing.0.1.2.zip + https://github.com/opengisch/qgis-plugin-ci/releases/download/0.1.2/qgis_plugin_ci_testing.0.1.2.zip Denis Rouzaud 1985-07-21 __TODAY__