-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e21d94
commit 97f5595
Showing
5 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Galaxy plugin for Paradox | ||
|
||
:warning: the plugin is looking for maintainer! | ||
|
||
## Installation | ||
|
||
_Integration can be installed using GOG Galaxy `Search Github` engine_ | ||
|
||
## Development | ||
|
||
Install required packages for building and testing: | ||
```bash | ||
pip install -r requirements/dev.txt | ||
``` | ||
|
||
Run tests: | ||
```bash | ||
inv test | ||
``` | ||
|
||
Build package | ||
```bash | ||
inv build [--output=<output_folder>] [--ziparchive=<zip_package_name.zip>] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
galaxy.plugin.api==0.55 | ||
python-dateutil==2.8.0 | ||
requests==2.21.0 | ||
psutil==5.6.6 | ||
psutil==5.6.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
__version__ = "0.5" | ||
__version__ = "0.6" | ||
|
||
__changelog__ = { | ||
"0.6": ''' | ||
- Added lacking tasks.py and README.md | ||
- Added dumping CHANGELOG.md mechanism | ||
''' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import os | ||
import json | ||
|
||
from invoke import task | ||
from galaxy.tools import zip_folder_to_file | ||
from fog import buildtools | ||
|
||
|
||
repo_path = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
|
||
@task | ||
def update_changelog(c, out_dir=repo_path): | ||
buildtools.update_changelog_file(repo_path=repo_path, out_dir=out_dir) | ||
|
||
|
||
@task(optional=["output", "ziparchive"]) | ||
def build(c, output="output", ziparchive=None): | ||
buildtools.build(src='src', output=output) | ||
|
||
version = buildtools.load_version(repo_path) | ||
update_changelog(c, out_dir=output) | ||
|
||
# create manifest | ||
manifest = { | ||
"name": "Galaxy Paradox plugin", | ||
"platform": "paradox", | ||
"guid": "bfa5a6c9-r0c3-5g28-b921-f4cd75d4999a", | ||
"version": version, | ||
"description": "Galaxy Paradox plugin", | ||
"author": "Friends of Galaxy", | ||
"email": "[email protected]", | ||
"url": "https://github.com/FriendsOfGalaxy/galaxy-integration-paradox", | ||
"update_url": "https://raw.githubusercontent.com/FriendsOfGalaxy/galaxy-integration-paradox/master/current_version.json", | ||
"script": "plugin.py" | ||
} | ||
|
||
with open(os.path.join(output, "manifest.json"), "w") as f: | ||
json.dump(manifest, f, indent=4) | ||
|
||
if ziparchive is not None: | ||
zip_folder_to_file(output, ziparchive) | ||
|
||
|
||
@task | ||
def test(c): | ||
"""Run tests""" | ||
c.run("pytest --cache-clear") |