Compare commits
No commits in common. "0.6.2rc2" and "main" have entirely different histories.
5 changed files with 7 additions and 35 deletions
20
CHANGELOG.md
20
CHANGELOG.md
|
|
@ -1,23 +1,3 @@
|
||||||
## 0.6.2rc2 (2025-04-09)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- version
|
|
||||||
|
|
||||||
## 0.6.2rc1 (2025-03-19)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- better leader support
|
|
||||||
|
|
||||||
## 0.6.2rc0 (2025-01-03)
|
|
||||||
|
|
||||||
### Fix
|
|
||||||
|
|
||||||
- python 2.12 support
|
|
||||||
|
|
||||||
## 0.6.1 (2024-11-06)
|
|
||||||
|
|
||||||
## 0.6.1rc0 (2024-11-06)
|
## 0.6.1rc0 (2024-11-06)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "tiramisu_cmdline_parser"
|
name = "tiramisu_cmdline_parser"
|
||||||
version = "0.6.2rc2"
|
version = "0.6.1"
|
||||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
description = "command-line parser using Tiramisu"
|
description = "command-line parser using Tiramisu"
|
||||||
|
|
@ -18,8 +18,6 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: 3.13",
|
|
||||||
"Programming Language :: Python :: 3.14",
|
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Natural Language :: English",
|
"Natural Language :: English",
|
||||||
|
|
@ -39,9 +37,5 @@ name = "cz_conventional_commits"
|
||||||
tag_format = "$version"
|
tag_format = "$version"
|
||||||
version_scheme = "pep440"
|
version_scheme = "pep440"
|
||||||
version_provider = "pep621"
|
version_provider = "pep621"
|
||||||
version_files = [
|
#update_changelog_on_bump = true
|
||||||
"tiramisu_cmdline_parser/__version__.py",
|
|
||||||
"pyproject.toml:version"
|
|
||||||
]
|
|
||||||
update_changelog_on_bump = true
|
|
||||||
changelog_merge_prerelease = true
|
changelog_merge_prerelease = true
|
||||||
|
|
|
||||||
|
|
@ -22,5 +22,5 @@ except ImportError as err:
|
||||||
warnings.warn("cannot not import TiramisuCmdlineParser {err}", ImportWarning)
|
warnings.warn("cannot not import TiramisuCmdlineParser {err}", ImportWarning)
|
||||||
TiramisuCmdlineParser = None
|
TiramisuCmdlineParser = None
|
||||||
|
|
||||||
from .__version__ import __version__
|
__version__ = "0.5"
|
||||||
__all__ = ("TiramisuCmdlineParser",)
|
__all__ = ("TiramisuCmdlineParser",)
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
__version__ = "0.6.2rc2"
|
|
||||||
|
|
||||||
|
|
@ -374,9 +374,9 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||||
return self.prefix_chars + name
|
return self.prefix_chars + name
|
||||||
return self.prefix_chars * 2 + name
|
return self.prefix_chars * 2 + name
|
||||||
|
|
||||||
def _parse_known_args(self, args, namespace, *others):
|
def _parse_known_args(self, args=None, namespace=None):
|
||||||
try:
|
try:
|
||||||
namespace_, args_ = super()._parse_known_args(args, namespace, *others)
|
namespace_, args_ = super()._parse_known_args(args, namespace)
|
||||||
except (ValueError, LeadershipError, AttributeError) as err:
|
except (ValueError, LeadershipError, AttributeError) as err:
|
||||||
self.error(err)
|
self.error(err)
|
||||||
if args != args_ and args_ and args_[0].startswith(self.prefix_chars):
|
if args != args_ and args_ and args_[0].startswith(self.prefix_chars):
|
||||||
|
|
@ -397,7 +397,7 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||||
fullpath=self.fullpath,
|
fullpath=self.fullpath,
|
||||||
)
|
)
|
||||||
namespace_, args_ = new_parser._parse_known_args(
|
namespace_, args_ = new_parser._parse_known_args(
|
||||||
args_, new_parser.namespace, *others
|
args_, new_parser.namespace
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if self._registries["action"]["help"].needs:
|
if self._registries["action"]["help"].needs:
|
||||||
|
|
@ -488,7 +488,7 @@ class TiramisuCmdlineParser(ArgumentParser):
|
||||||
# no follower found, search if there is a symlink
|
# no follower found, search if there is a symlink
|
||||||
for sobj in config.list(uncalculated=True):
|
for sobj in config.list(uncalculated=True):
|
||||||
try:
|
try:
|
||||||
if sobj.issymlinkoption() and sobj.index is None and sobj.option().isleader():
|
if sobj.issymlinkoption() and sobj.option().isleader():
|
||||||
yield sobj, None, None
|
yield sobj, None, None
|
||||||
except ConfigError:
|
except ConfigError:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue