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__