Skip to content

Commit

Permalink
plugin: read version from manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixaill committed Sep 28, 2019
1 parent d63607a commit 26b3811
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 70 deletions.
67 changes: 2 additions & 65 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,14 @@
# galaxy-integration-wargaming

GOG Galaxy 2.0 Wargaming Game Center integration

## Installation

* Clone repository to `%localappdata%\GOG.com\Galaxy\plugins\installed\wargaming\`

## Limitations

* Only World of Tanks friends and chat is supported
* No friends and chat roaming between realms

## Changelog

* v. 0.7.3
* updated Galaxy API to 0.46
* fixed connection to WGC servers for NA region

* v. 0.7.2
* updated Galaxy API to 0.43
* fixed incorrect game state update on game launch
* fixed requests to WG.net server when WGC is not installed

* v. 0.7.1
* updated Galaxy API to 0.42
* fixed incorrect variable name in `wgc_api::wguscs_get_showroom()`
* fixed exception on cancelled `asyncio.sleep()`
* fixed region handling in `PAPIWoT::get_account_info()` request

* v. 0.7.0
* implemented receiving friends list
* implemented receiving user info
* improved error handling when servers are not responsible
* fixed error on retrieving WGC settings when WGC is not installed

* v. 0.6.0
* Implemented ability to install games. Ability to install games is implemented. Now this integration implements a minimal set of functions for everyday use!
* Implemented login via OTP backup codes
* Fixed exception in `get_owned_games()` function
* Updated Sentry SDK to 0.10.0

* v. 0.5.0
* Fetch owned games from Wargaming.net account

* v. 0.4.5
* Improve Wargaming.net authorization error processing

* v. 0.4.4
* Galaxy SDK updated to 0.40.1
* Fixed exception when there is no installed games
* Added error logging via Sentry

* v. 0.4.3
* implemented two factor authorization
* Galaxy SDK updated to 0.38

* v. 0.4.2
* changed nickname format from `<email>` to `<realm>_<nickname>`

* v. 0.4.1
* fixed Wargaming.net authorization on non-RU realms
* added additional authorization logging

* v. 0.4.0
* implemented Wargaming.net authorization

* v. 0.3.0
* add ability to delete games

* v. 0.2.0
* added detection that the game is running.

* v. 0.1.0
* initial release
* https://github.com/Mixaill/galaxy-integration-wargaming/releases

## Additional info

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Galaxy Wargaming plugin",
"platform": "wargaming",
"guid": "91728e8a-33c3-4b6d-8382-4dd31043dec1",
"version": "0.7.3",
"version": "0.7.4",
"description": "Galaxy Wargaming plugin",
"author": "Mikhail Paulyshka",
"email": "[email protected]",
Expand Down
10 changes: 7 additions & 3 deletions plugin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
import json
import logging
import os
import sys
Expand All @@ -9,13 +10,16 @@
if thirdparty not in sys.path:
sys.path.insert(0, thirdparty)

from version import __version__
#read manifest
menifest = None
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "manifest.json")) as manifest:
manifest = json.load(manifest)

#Start sentry
import sentry_sdk
sentry_sdk.init(
"https://[email protected]/2",
release=("galaxy-integration-wargaming@%s" % __version__))
release=("galaxy-integration-wargaming@%s" % manifest['version']))

from galaxy.api.consts import Platform
from galaxy.api.errors import BackendError, InvalidCredentials
Expand All @@ -28,7 +32,7 @@

class WargamingPlugin(Plugin):
def __init__(self, reader, writer, token):
super().__init__(Platform.Wargaming, __version__, reader, writer, token)
super().__init__(Platform(manifest['platform']), manifest['version'], reader, writer, token)

self._wgc = WGC()
self._xmpp = dict()
Expand Down
1 change: 0 additions & 1 deletion version.py

This file was deleted.

0 comments on commit 26b3811

Please sign in to comment.