Skip to content

Commit

Permalink
version 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
FriendsOfGalaxy committed Apr 15, 2020
1 parent 4e21d94 commit 97f5595
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 3 deletions.
24 changes: 24 additions & 0 deletions README.md
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>]
```
2 changes: 1 addition & 1 deletion requirements/app.txt
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
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ pytest-flakes==4.0.0
pytest-pythonpath==0.7.3
pytest-asyncio==0.10.0
pytest-mock==1.10.4
pip-tools==3.6.1
aiohttp==3.5.4
fog.buildtools~=1.0
9 changes: 8 additions & 1 deletion src/version.py
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
'''
}
48 changes: 48 additions & 0 deletions tasks.py
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")

0 comments on commit 97f5595

Please sign in to comment.