[+] improve module_switch feature

1. remove a release *+28;
  2. add new .whl;
This commit is contained in:
Siarhei Siniak 2025-05-07 11:01:40 +03:00
parent 3d023ceba3
commit ffdd17270e
5 changed files with 22 additions and 11 deletions

@ -565,10 +565,10 @@ class CLI(abc.ABC):
parser.add_argument( parser.add_argument(
'-m', '-m',
dest='module', dest='module',
choices=[ # choices=[
o.name # o.name
for o in project.modules # for o in project.modules
], # ],
required=True, required=True,
# type=pathlib.Path, # type=pathlib.Path,
type=str, type=str,
@ -577,8 +577,7 @@ class CLI(abc.ABC):
parser.add_argument( parser.add_argument(
'-f', '-f',
dest='file', dest='file',
default='pyproject.common.toml', default=pathlib.Path('pyproject.common.toml'),
default=[],
# type=pathlib.Path, # type=pathlib.Path,
type=pathlib.Path, type=pathlib.Path,
) )
@ -588,7 +587,16 @@ class CLI(abc.ABC):
argv, argv,
) )
if not options.file.is_abs(): if not options.file.is_absolute():
options.file = project.source_dir / options.file options.file = project.source_dir / options.file
pyproject = cli_bootstrap.pyproject_load(
options.file,
)
assert options.module in [
o.name
for o in pyproject.modules
]
raise NotImplementedError raise NotImplementedError

@ -1,6 +1,6 @@
[project] [project]
name = 'online.fxreader.pr34' name = 'online.fxreader.pr34'
version = '0.1.5.16+28' version = '0.1.5.16+27.2'
dependencies = [ dependencies = [
#"-r requirements.txt", #"-r requirements.txt",

Binary file not shown.

Binary file not shown.

Binary file not shown.