smscalls: allow multiple backup dirs (#172)

* smscalls: allow multiple backup dirs
* add smscalls to my.config, add test to CI
This commit is contained in:
Sean Breckenridge 2021-05-13 17:35:36 -07:00 committed by GitHub
parent 014494059d
commit b64a11cc69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View file

@ -24,6 +24,9 @@ class hypothesis:
class instapaper: class instapaper:
export_path: Paths = '' export_path: Paths = ''
class smscalls:
export_path: Paths = ''
class pocket: class pocket:
export_path: Paths = '' export_path: Paths = ''

View file

@ -5,13 +5,13 @@ Exported using https://play.google.com/store/apps/details?id=com.riteshsahu.SMSB
REQUIRES = ['lxml'] REQUIRES = ['lxml']
from .core import PathIsh, dataclass from .core import Paths, dataclass
from my.config import smscalls as user_config from my.config import smscalls as user_config
@dataclass @dataclass
class smscalls(user_config): class smscalls(user_config):
# directory that SMSBackupRestore syncs XML files to # path[s] that SMSBackupRestore syncs XML files to
export_path: PathIsh export_path: Paths
from .core.cfg import make_config from .core.cfg import make_config
config = make_config(smscalls) config = make_config(smscalls)

View file

@ -85,6 +85,7 @@ commands =
hpi module install my.coding.commits hpi module install my.coding.commits
hpi module install my.goodreads hpi module install my.goodreads
hpi module install my.pdfs hpi module install my.pdfs
hpi module install my.smscalls
# todo fuck. -p my.github isn't checking the subpackages?? wtf... # todo fuck. -p my.github isn't checking the subpackages?? wtf...
# guess it wants .pyi file?? # guess it wants .pyi file??
@ -94,6 +95,7 @@ commands =
-p my.hypothesis \ -p my.hypothesis \
-p my.instapaper \ -p my.instapaper \
-p my.pocket \ -p my.pocket \
-p my.smscalls \
-p my.reddit \ -p my.reddit \
-p my.stackexchange.stexport \ -p my.stackexchange.stexport \
-p my.pinboard \ -p my.pinboard \