Skip to content

Commit

Permalink
Use underscore instead of hyphen for plugin name #22 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Aug 5, 2020
1 parent 344e380 commit 28491a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions qgispluginci/parameters.py
Expand Up @@ -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).
Expand Down Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions test/plugins.xml.expected
Expand Up @@ -5,10 +5,10 @@
<version>0.1.2</version>
<qgis_minimum_version>3.2</qgis_minimum_version>
<homepage>https://github.com/opengisch/qgis-plugin-ci</homepage>
<file_name>qgis-plugin-ci-testing.0.1.2.zip</file_name>
<file_name>qgis_plugin_ci_testing.0.1.2.zip</file_name>
<icon>icons/opengisch.png</icon>
<author_name>Denis Rouzaud</author_name>
<download_url>https://github.com/opengisch/qgis-plugin-ci/releases/download/0.1.2/qgis-plugin-ci-testing.0.1.2.zip</download_url>
<download_url>https://github.com/opengisch/qgis-plugin-ci/releases/download/0.1.2/qgis_plugin_ci_testing.0.1.2.zip</download_url>
<uploaded_by>Denis Rouzaud</uploaded_by>
<create_date>1985-07-21</create_date>
<update_date>__TODAY__</update_date>
Expand Down

0 comments on commit 28491a9

Please sign in to comment.