Change Log¶
v0.7.0 (2021-03-24)¶
Compatible changes and features
In constraint errors, the way the parameter list is formatted has changed. Instead of printing a comma-separated list of single labels:
each parameter is printed on a 2-space indented line and
both the short and long name of options are printed.
See the relevant commit.
Minor improvements to code and docs.
v0.6.1 (2021-03-01)¶
This patch release fixes some problems in the management and releasing of the package.
Add a
py.typedfile to ship the package with type hints (PEP 561).Use
setuptools-scmto automatically manage the version of the package and the content of the source distribution based on the git repository:the source distribution now matches the git repository, with the only exception of
_version.py, which is not tracked by git; it’s generated bysetuptools-scmand included in the package;tox.ini and Makefile were updated to account for the fact that
_version.pydoesn’t exist in the repository before installing the package.
The new attribute
cloup.__version_tuple__stores the version as a tuple (of at least 3 elements).
v0.6.0 (2021-02-28)¶
Incompatible changes
Removed the deprecated
GroupSectionas previously announced. Use the new name instead:Section.In
Group.group()andGroup.command, the argumentsectionwas moved after theclsargument so that the signatures are now fully compatible with those of the parent class (the Liskov substitution principle is now satisfied). If you (wisely) passedsectionandclsas keyword arguments in your code, you don’t need to change anything.
Compatible changes
Slightly improved return type (hint) of command decorators.
Minor refactoring of ConstraintMixin.
Improved the documentation.
v0.5.0 (2021-02-10)¶
Requirements
Drop support to Python 3.5.
Deprecated
GroupSectionwas renamed asSection.
Compatible changes and features
Added a subpackage for defining constraints on parameters groups (including
OptionGroup’s).The code for adding support to option groups was extracted to
OptionGroupMixin.Most of the code for adding support to subcommand sections was extracted to
SectionMixin.
Project changes
Migrated from TravisCI to GitHub Actions.
v0.4.0 (2021-01-10)¶
Requirements
This is the last release officially supporting Python 3.5.
Compatible changes and features
Changed the internal (non-public) structure of the package.
Minor code improvements.
Repository-wise:
New documentation (hosted by ReadTheDocs)
Tox, TravisCI, Makefile completely rewritten.
v0.3.0 (2020-03-26)¶
Backward incompatible API changes¶
option_groupsdecorator now takes options as positional arguments*options;Group.sectiondecorator now takes sections as positional arguments*sections;align_sections_helpwas renamed toalign_sections;GroupSection.__init__() sorted_argument was renamed tosorted.
Other changes¶
Additional signature for
option_group: you can pass thehelpargument as 2nd positional argument.Aligned option groups (option
align_option_groupswith defaultTrue).More refactoring and testing.
v0.2.0 (2020-03-11)¶
[Feature] Add possibility of organizing subcommands of a cloup.Group in multiple help sections.
Various code improvements.
- Backward incompatible change:
rename
CloupCommandandCloupGroupresp. to justCommandandGroup.
v0.1.0 (2020-02-25)¶
First release on PyPI.