Lance Edgar
5c4dcb09f3
Add --stdout
and --stderr
args for base Command class
...
also refactor its `run()` method to allow more customizing ability
2023-11-22 09:11:36 -06:00
Lance Edgar
13472a5ab5
Add wutta make-appdir
subcommand
2023-11-22 00:10:40 -06:00
Lance Edgar
5e971e4b0c
Update changelog
2023-11-21 22:28:14 -06:00
Lance Edgar
1431555605
Allow factory override in make_config()
...
also add `winsvc` param for `get_config_paths()` to support
RattailFileMonitor service on windows
2023-11-21 22:25:45 -06:00
Lance Edgar
ed6a5db452
Add Subcommand.make_arg_parser()
method
...
split that out for clarity
2023-11-21 20:48:44 -06:00
Lance Edgar
4641e24afd
Add narrative docs for app configuration
2023-11-21 18:27:29 -06:00
Lance Edgar
f9a7b41f94
Update changelog
2023-11-21 14:43:08 -06:00
Lance Edgar
4ff83162e1
Must use "safe" top-level name for subcommand entry points
2023-11-21 14:16:36 -06:00
Lance Edgar
ea9a9ade57
Change entry point group naming for subcommands
...
and use fallback to find subcommands registered via legacy naming
2023-11-21 14:08:26 -06:00
Lance Edgar
d8252f029d
Allow specifying config object for Command constructor
...
might as well re-use config if available..not sure how often this will
happen in practice
2023-11-20 23:13:59 -06:00
Lance Edgar
34836b006d
Fix typo in docs
2023-11-20 22:02:20 -06:00
Lance Edgar
1545269ae4
Add flag to skip tests when pushing a release
...
hopefully this doesn't get used much, but currently am having a major
headache when running python 3.7 tests via tox. probably should just
drop support for that one ASAP..
2023-11-20 21:44:00 -06:00
Lance Edgar
38e0eca4bc
Update changelog
2023-11-20 21:40:08 -06:00
Lance Edgar
be251f04d3
Add get_config_paths()
function, split off from make_config()
...
break the latter into steps so we can swap them out more easily
2023-11-20 18:16:23 -06:00
Lance Edgar
a0186b346e
Add common FileConfigTestCase
class, in new testing
module
...
hoping i do not regret this decision.. since the tests do not live in
a "real" package i think the only way to share code is to add some
things to the main package
2023-11-20 16:19:22 -06:00
Lance Edgar
427afc27fc
Add test to ensure we get correct app handler by default
2023-11-20 09:57:38 -06:00
Lance Edgar
b4e9fb8ea7
Restrict coverage even more, for tox py3.7 runs
2023-11-19 20:46:54 -06:00
Lance Edgar
db70b0d550
Update changelog
2023-11-19 20:41:22 -06:00
Lance Edgar
b458272207
Add make_engine_from_config()
method for AppHandler
...
and other misc. tweaks needed to get this incorporated into Rattail
2023-11-19 20:36:51 -06:00
Lance Edgar
afd2d005a3
Fix how invoke script reads pkg version
2023-11-19 15:40:40 -06:00
Lance Edgar
d71c79ea4a
Update changelog
2023-11-19 15:39:20 -06:00
Lance Edgar
068d8f29b5
Fix errors for tox runs
2023-11-19 15:21:17 -06:00
Lance Edgar
005f43d14e
Add basic command line framework
...
`wutta setup` is the only real sub/command yet, and it does nothing
2023-11-19 14:22:25 -06:00
Lance Edgar
417f7e5c38
Run tests when doing a release
2023-11-19 00:53:35 -06:00
Lance Edgar
4350704996
Remove make_config()
from root namespace
...
i forget why..but this was causing some sort of problem. should have
noted it at the time.. :(
2023-11-19 00:52:50 -06:00
Lance Edgar
658fbe3646
Revert "Mock code to hopefully trigger test coverage failure"
...
This reverts commit df3c4914b3
.
2023-10-30 18:31:08 -05:00
Lance Edgar
df3c4914b3
Mock code to hopefully trigger test coverage failure
2023-10-30 00:51:52 -05:00
Lance Edgar
8f52d85f1a
Static folder must exist for docs to build
2023-10-30 00:26:09 -05:00
Lance Edgar
2a86f78b3e
Fix entry point loading for python 3.8, 3.9
2023-10-30 00:08:57 -05:00
Lance Edgar
85aea9738c
Include 'db' extra for tox tests
2023-10-29 23:44:58 -05:00
Lance Edgar
c45aea71df
Fix tox tests for python3.6
2023-10-29 23:32:11 -05:00
Lance Edgar
cd2d16e6ac
Log warning if ambiguous config key detected
2023-10-29 22:41:33 -05:00
Lance Edgar
26b78adb56
Add tox config
2023-10-29 10:26:02 -05:00
Lance Edgar
5c3c42d6b3
First commit, basic config (with db) and app handler
...
this has 100% test coverage and i intend to keep it that way. api
docs have a good start but still need narrative. several more things
must be added before i can seriously consider incorporating into
rattail but this seemed a good save point
2023-10-28 17:50:13 -05:00