Releases: Erotemic/xdoctest
Releases · Erotemic/xdoctest
Version 1.2.0
Version 1.2.0 - Released 2024-08-20
Added
- Support for top level awaits in async code examples.
Removed
- Dropped 3.6 and 3.7 support. Now supporting 3.8+ Use xdoctest<=1.1.6 for 3.6 or 3.7 support.
What's Changed
- Start branch for 1.2.0 by @Erotemic in #160
- Drop support for Python 3.6 and 3.7 by @Erotemic in #161
- Support top level await by @sdb9696 in #158
Full Changelog: v1.1.6...refs/heads/release
Version 1.1.6
Version 1.1.6 - Released 2024-08-01
Fixed
- Fixed passing of
flags
as keyword argument tore.sub
for python 3.13 compliance.
What's Changed
- Fix python3.13 deprecation warning by @sdb9696 in #157
- Start branch for dev/1.1.6
by @Erotemic in #156 - Update docs by @Erotemic in #159
New Contributors
Full Changelog: v1.1.5...refs/heads/release
Version 1.1.5
This patch release fixes the modname_to_modpath
issue that 1.1.4 mitigated. It should be once again be possible to invoke xdoctest using module names of packages that installed in editable mode (a feature that was broken whenever type annotations were added into the editable finder files installed to site-packages).
Version 1.1.5 - Released 2024-06-07
Changed
- Minor modification to
xdoctest --version-info
and exposed it in CLI help.
Fixed
modname_to_modpath
fixed in cases where editable installs use type annotations in their MAPPING definition.
What's Changed
Full Changelog: v1.1.4...refs/heads/release
Version 1.1.4
Fixed
- Working around a
modname_to_modpath
issue.
What's Changed
Full Changelog: v1.1.3...refs/heads/release
Version 1.1.3
Version 1.1.3 - Released 2024-01-30
Fixed
modname_to_modpath
now handles cases where editable packages have modules where the name is different than the package.- Update
xdoctest.plugin
to support pytest 8.0 - Fixed deprecated usage of
ast.Num
What's Changed
Full Changelog: v1.1.2...v1.1.3
Version 1.1.2
Version 1.1.2 - Released 2023-010-25
Added
- Partial support for 3.12. New f-string syntax is not supported yet.
Changed
- Removed dependency on six and got rid of old Python 2 logic
Version 1.1.1
Version 1.1.1 - Released 2023-01-29
Changed
- Binary tests are now only run on "full" installs to reduce minimal dependencies.
- Support for Python 3.11
- Minor typing fixes
Version 1.1.0
Fixed
- Can now handle basic versions of the new
__editable__
package finder mechanism. - Parsing bug where directives were incorrectly flagged as inline if they were
directly followed by a function with a decorator.
Removed
- Dropped 2.7 and 3.5 support. Now supporting 3.6+ Use xdoctest<=1.0.2 for 2.7
or 3.5 support.
Changed
- Improved the "dump" functionality of converting doctests to unit tests.
Version 1.0.2
Added
- Environs as options:
XDOCTEST_VERBOSE
,XDOCTEST_OPTIONS
,XDOCTEST_GLOBAL_EXEC
,XDOCTEST_REPORT
,
XDOCTEST_STYLE
, andXDOCTEST_ANALYSIS
environment variables can now be used
to specify configuration defaults.
Changed
- Added experimental hidden feature
--insert-skip-directive-above-failures
that can be used to modify your code such that failing doctests are marked as
skip. - Disabled traceback suppression on module import errors (this is is
configurable via the "supress_import_errors" option). - Xdoctest will no longer try to pre-import the module if none of its doctests
have any enabled lines. This also means global-exec statements will NOT run
for those tests, which means you can no longer use global-exec to
force enabling tests.
Version 1.0.1
Added
- Add type stubs
- Basic support for pyproject.toml under
tool.xdoctest
. Currently only
supports options in the native runner.
Fixed
- Corner case bug in error reporting
- Doctests that never run any code are now correctly marked as skipped
- Issue where the "dumps" command was undocumented and has an error.
Changed
- Moved some globals into a new module called
global_state
and allowed
environs to enable debug print statements. - Added
util_deprecation
module to robustly mark features as deprecated. - Modified the google style return type parser to return a type if the
only content is some parsable python code. - Modified docscrape google to allow for parsing of
*args
and**kwargs
in
args blocks. This has also moved to the standalone packagegoogledoc
- Overhaul of repo structure in an effort to modernize and to agree with
templates defined by xcookie - Module code now lives in the "src" directory to remove install vs develop
ambiguity.