-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move add-on properties into global ADDON namespace
Following suite with latest libaddon changes
- Loading branch information
1 parent
0c856f0
commit 7ed63c0
Showing
6 changed files
with
59 additions
and
82 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
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 |
---|---|---|
|
@@ -38,32 +38,48 @@ | |
|
||
from ._version import __version__ | ||
|
||
try: | ||
from .data.patrons import MEMBERS_CREDITED, MEMBERS_TOP | ||
except ImportError: | ||
MEMBERS_CREDITED = MEMBERS_TOP = () | ||
|
||
__all__ = [ | ||
"ADDON_NAME", "ADDON_ID", "ADDON_VERSION", "LINKS", | ||
"LICENSE", "LIBRARIES", "AUTHORS", "CONTRIBUTORS", | ||
"SPONSORS", | ||
"ADDON", | ||
"OLC_MODEL", "OLC_CARD", "OLC_MAX", | ||
"OLC_FLDS", "OLC_FLDS_IDS", "OLC_FIDS_PRIV" | ||
] | ||
|
||
# ADD-ON | ||
|
||
ADDON_NAME = "Cloze Overlapper" | ||
ADDON_ID = "969733775" | ||
ADDON_VERSION = __version__ | ||
LINKS = { | ||
"help": "https://github.com/glutanimate/cloze-overlapper/wiki" | ||
} | ||
LICENSE = "GNU AGPLv3" | ||
LIBRARIES = [] | ||
AUTHORS = [ | ||
{"name": "Aristotelis P. (Glutanimate)", "years": "2016-2019", | ||
"contact": "https://glutanimate.com"} | ||
] | ||
# automatically sorted: | ||
CONTRIBUTORS = ["zjosua"] | ||
SPONSORS = [] | ||
# PROPERTIES DESCRIBING ADDON | ||
|
||
class ADDON(object): | ||
"""Class storing general add-on properties | ||
Property names need to be all-uppercase with no leading underscores | ||
""" | ||
NAME = "Cloze Overlapper" | ||
MODULE = "cloze_overlapper" | ||
ID = "969733775" | ||
VERSION = __version__ | ||
LICENSE = "GNU AGPLv3" | ||
AUTHORS = ( | ||
{"name": "Aristotelis P. (Glutanimate)", "years": "2016-2019", | ||
"contact": "https://glutanimate.com"}, | ||
) | ||
AUTHOR_MAIL = "[email protected]" | ||
LIBRARIES = () | ||
CONTRIBUTORS = ("zjosua", ) | ||
SPONSORS = () | ||
MEMBERS_CREDITED = MEMBERS_CREDITED | ||
MEMBERS_TOP = MEMBERS_TOP | ||
LINKS = { | ||
"patreon": "https://www.patreon.com/glutanimate", | ||
"bepatron": "https://www.patreon.com/bePatron?u=7522179", | ||
"coffee": "http://ko-fi.com/glutanimate", | ||
"description": "https://ankiweb.net/shared/info/{}".format(ID), | ||
"rate": "https://ankiweb.net/shared/review/{}".format(ID), | ||
"twitter": "https://twitter.com/glutanimate", | ||
"youtube": "https://www.youtube.com/c/glutanimate", | ||
"help": "https://github.com/glutanimate/review-heatmap/wiki" | ||
} | ||
|
||
# OLC | ||
|
||
|
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 |
---|---|---|
|
@@ -39,5 +39,3 @@ | |
from .anki20 import * # noqa: F401 | ||
else: | ||
from .anki21 import * # noqa: F401 | ||
|
||
QRC_PREFIX = "cloze_overlapper" |
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 was deleted.
Oops, something went wrong.