Next | Query returned 141 messages, browsing 31 to 40 | Previous

History of commit frequency

CVS Commit History:


   2022-07-02 11:10:39 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-hypothesis: updated to 6.48.2

6.48.2

This patch tidies up some internal introspection logic, which will improve \ 
support for positional-only arguments in a future release (issue 2706).

6.48.1

This release automatically rewrites some simple filters, such as \ 
floats().filter(lambda x: x >= 10) to the more efficient \ 
floats(min_value=10), based on the AST of the predicate.

We continue to recommend using the efficient form directly wherever possible, \ 
but this should be useful for e.g. pandera “Checks” where you already have a \ 
simple predicate and translating manually is really annoying.

6.48.0

This release raises SkipTest for which never executed any examples, for example \ 
because the phases setting excluded the explicit, reuse, and generate phases. \ 
This helps to avoid cases where broken tests appear to pass, because they \ 
didn’t actually execute (issue 3328).

6.47.5

This patch fixes type annotations that had caused the signature of @given to be \ 
partially-unknown to type-checkers for Python versions before 3.10.

6.47.4

This patch fixes from_type() on Python 3.11, following python/cpython-93754.

6.47.3

This patch makes the too_slow health check more consistent with long deadline \ 
tests (issue 3367) and fixes an install issue under pipenv which was introduced \ 
in Hypothesis 6.47.2 (issue 3374).

6.47.2

We now use the PEP 654 ExceptionGroup type - provided by the exceptiongroup \ 
backport on older Pythons - to ensure that if multiple errors are raised in \ 
teardown, they will all propagate.

6.47.1

Our pretty-printer no longer sorts dictionary keys, since iteration order is \ 
stable in Python 3.7+ and this can affect reproducing examples (issue 3370). \ 
This PR was kindly supported by Ordina Pythoneers.

6.47.0

The Ghostwritter can now write tests for @classmethod or @staticmethod methods, \ 
in addition to the existing support for functions and other callables (issue \ 
3318). Thanks to Cheuk Ting Ho for the patch.
   2022-01-31 12:43:31 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
py310-hypothesis: update to 6.36.1.

6.36.1 - 2022-01-31

This patch fixes some deprecation warnings from pytest 7.0, along with
some code formatting and docs updates.

6.36.0 - 2022-01-19

This release disallows using typing.Final with from_type() and
register_type_strategy().

Why? Because Final can only be used during class definition. We don’t
generate class attributes.

It also does not make sense as a runtime type on its own.

6.35.1 - 2022-01-17

This patch fixes hypothesis write output highlighting with rich
version 12.0 and later.

6.35.0 - 2022-01-08

This release disallows using typing.ClassVar with from_type() and
register_type_strategy().

Why? Because ClassVar can only be used during class definition. We
don’t generate class attributes.

It also does not make sense as a runtime type on its own.

6.34.2 - 2022-01-05

This patch updates our vendored list of top-level domains, which is
used by the provisional domains() strategy.

6.34.1 - 2021-12-31

This patch fixes issue #3169, an extremely rare bug which would
trigger if an internal least-recently-reused cache dropped a newly
added entry immediately after it was added.

6.34.0 - 2021-12-31

This release fixes issue #3133 and issue #3144, where attempting to
generate Pandas series of lists or sets would fail with confusing
errors if you did not specify dtype=object.

6.33.0 - 2021-12-30

This release disallows using typing.TypeAlias with from_type() and
register_type_strategy().

Why? Because TypeAlias is not really a type, it is a tag for type
checkers that some expression is a type alias, not something else.

It does not make sense for Hypothesis to resolve it as a
strategy. References issue #2978.

6.32.1 - 2021-12-23

This patch updates our autoformatting tools, improving our code style
without any API changes.

6.32.0 - 2021-12-23

This release drops support for Python 3.6, which reached end of life
upstream on 2021-12-23.

6.31.6 - 2021-12-15

This patch adds a temporary hook for a downstream tool, which is not
part of the public API.

6.31.5 - 2021-12-14

This release updates our copyright headers to use a general authorship
statement and omit the year.

6.31.4 - 2021-12-11

This patch makes the .example() method more representative of
test-time data generation, albeit often at a substantial cost to
readability (issue #3182).

6.31.3 - 2021-12-10

This patch improves annotations on some of Hypothesis’ internal
functions, in order to deobfuscate the signatures of some
strategies. In particular, strategies shared between
hypothesis.extra.numpy and the hypothesis.extra.array_api extra will
benefit from this patch.

6.31.2 - 2021-12-10

This patch fix invariants display in stateful falsifying examples
(issue #3185).

6.31.1 - 2021-12-10

This patch updates xps.indices() so no flat indices are generated,
i.e. generated indices will now always explicitly cover each axes of
an array if no ellipsis is present. This is to be consistent with a
specification change that dropped support for flat indexing (#272).

6.31.0 - 2021-12-09

This release makes us compatible with Django 4.0, in particular by
adding support for use of zoneinfo timezones (though we respect the
new USE_DEPRECATED_PYTZ setting if you need it).

6.30.1 - 2021-12-05

This patch updates our vendored list of top-level domains, which is
used by the provisional domains() strategy.

6.30.0 - 2021-12-03

This release adds an allow_subnormal argument to the floats()
strategy, which can explicitly toggle the generation of subnormal
floats (issue #3155). Disabling such generation is useful when testing
flush-to-zero builds of libraries.

nps.from_dtype() and xps.from_dtype() can also accept the
allow_subnormal argument, and xps.from_dtype() or xps.arrays() will
disable subnormals by default if the array module xp is detected to
flush-to-zero (like is typical with CuPy).
   2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289)
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-12-02 12:15:26 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-hypothesis: updated to 6.29.3

6.29.3

This patch fixes a bug in mutually_broadcastable_shapes(), which restricted the \ 
patterns of singleton dimensions that could be generated for dimensions that \ 
extended beyond base_shape.

6.29.2

This patch clarifies our pretty-printing of DataFrames.

6.29.1

This patch documents timezones() Windows-only requirement for the tzdata \ 
package, and ensures that pip install hypothesis[zoneinfo] will install the \ 
latest version.

6.29.0

This release teaches builds() to use deferred() when resolving unrecognised type \ 
hints, so that you can conveniently register strategies for recursive types with \ 
constraints on some arguments:

class RecursiveClass:
    def __init__(self, value: int, next_node: \ 
typing.Optional["SomeClass"]):
        assert value > 0
        self.value = value
        self.next_node = next_node

st.register_type_strategy(
    RecursiveClass, st.builds(RecursiveClass, value=st.integers(min_value=1))
)
6.28.1

This release fixes some internal calculations related to collection sizes.

6.28.0

This release modifies our pytest plugin, to avoid importing Hypothesis and \ 
therefore triggering Hypothesis’ entry points for test suites where Hypothesis \ 
is installed but not actually used.

6.27.3

This release fixes issue 3080, where from_type() failed on unions containing PEP \ 
585 builtin generic types (like list[int]) in Python 3.9 and later.

6.27.2

This patch makes the hypothesis codemod command somewhat faster.
   2021-11-25 21:01:56 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-hypothesis: updated to 6.27.1

6.27.1

This patch changes the backing datastructures of register_random() and a few \ 
internal caches to use weakref.WeakKeyDictionary. This reduces memory usage and \ 
may improve performance when registered Random instances are only used for a \ 
subset of your tests.

6.27.0

This release teaches Hypothesis’ multiple-error reporting to format tracebacks \ 
using pytest or better-exceptions, if they are installed and enabled.

6.26.0

Did you know that of the 264 possible floating-point numbers, 253 of them are nan

While nans usually have all zeros in the sign bit and mantissa, this isn’t \ 
always true, and ‘signaling’ nans might trap or error. To help distinguish \ 
such errors in e.g. CI logs, Hypothesis now prints -nan for negative nans, and \ 
adds a comment like # Saw 3 signaling NaNs if applicable.

6.25.0

This release adds special filtering logic to make a few special cases like \ 
s.map(lambda x: x) and lists().filter(len) more efficient.

6.24.6

This patch makes floats() generate “subnormal” floating point numbers more \ 
often, as these rare values can have strange interactions with unsafe compiler \ 
optimisations like -ffast-math.

6.24.5

This patch fixes a rare internal error in the datetimes() strategy, where the \ 
implementation of allow_imaginary=False crashed when checking a time during the \ 
skipped hour of a DST transition if the DST offset is negative

6.24.4

This patch gives Hypothesis it’s own internal Random instance, ensuring that \ 
test suites which reset the global random state don’t induce weird \ 
correlations between property-based tests.

6.24.3

This patch updates documentation of note()
   2021-11-06 09:49:22 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-hypothesis: updated to 6.24.2

6.24.2

This patch updates internal testing for the Array API extra to be consistent \ 
with new specification changes: sum() not accepting boolean arrays (234), \ 
unique() split into separate functions (275), and treating NaNs as distinct \ 
(310). It has no user visible impact.

6.24.1

This patch updates our vendored list of top-level domains, which is used by the \ 
provisional domains() strategy.

6.24.0

This patch updates our vendored list of top-level domains, which is used by the \ 
provisional domains() strategy.

(did you know that gTLDs can be both added and removed?)

6.23.4

This patch adds an error for when shapes in xps.arrays() is not passed as either \ 
a valid shape or strategy.

6.23.3

This patch updates our formatting with shed.

6.23.2

This patch replaces external links to NumPy API docs with sphinx.ext.intersphinx \ 
cross-references. It is purely a documentation improvement.

6.23.1

This patch cleans up internal logic for xps.arrays(). There is no user-visible \ 
change.

6.23.0

This release follows pytest in considering SystemExit and GeneratorExit \ 
exceptions to be test failures, meaning that we will shink to minimal examples \ 
and check for flakiness even though they subclass BaseException directly (issue \ 
2223).

KeyboardInterrupt continues to interrupt everything, and will be re-raised \ 
immediately.

6.22.0

This release adds LiveServerTestCase and StaticLiveServerTestCase for django \ 
test. Thanks to Ivan Tham for this feature!

6.21.6

This patch fixes some new linter warnings such as flake8-bugbear’s B904 for \ 
explicit exception chaining, so tracebacks might be a bit nicer.

6.21.5

This release fixes None being inferred as the float64 dtype in from_dtype() and \ 
arrays() from the Array API extra.

6.21.4

This release fixes the type hint for the @given() decorator when decorating an \ 
async function (issue 3099).

6.21.3

This release improves Ghostwritten tests for builtins (issue 2977).

6.21.2

This release deprecates use of both min_dims > len(shape) and max_dims > \ 
len(shape) when allow_newaxis == False in basic_indices() (issue 3091).

6.21.1

This release improves the behaviour of builds() and from_type() in certain \ 
situations involving decorators (issue 2495 and issue 3029).
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-09-12 11:53:54 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-hypothesis: updated to 6.21.0

6.21.0 - 2021-09-11

This release introduces strategies for array/tensor libraries adopting the Array \ 
API standard. They are available in the hypothesis.extra.array_api extra, and \ 
work much like the existing strategies for NumPy.

6.20.1 - 2021-09-10

This patch fixes issue 961, where calling given() inline on a bound method would \ 
fail to handle the self argument correctly.

6.20.0 - 2021-09-09

This release allows slices() to generate step=None, and fixes an off-by-one \ 
error where the start index could be equal to size. This works fine for all \ 
Python sequences and Numpy arrays, but is undefined behaviour in the Array API \ 
standard.

6.19.0 - 2021-09-08

This release makes stateful testing more likely to tell you if you do something \ 
unexpected and unsupported:

The return_value health check now applies to rule() and initialize() rules, if \ 
they don’t have target bundles, as well as invariant().
Using a consumes() bundle as a target is deprecated, and will be an error in a \ 
future version.
If existing code triggers these new checks, check for related bugs and \ 
misunderstandings - these patterns never had any effect.

6.18.0 - 2021-09-06

This release teaches from_type() a neat trick: when resolving an \ 
typing.Annotated type, if one of the annotations is a strategy object we use \ 
that as the inferred strategy. For example:

PositiveInt = Annotated[int, st.integers(min_value=1)]
If there are multiple strategies, we use the last outer-most annotation. See \ 
issue 2978 and pull request 3082 for discussion.

Requires Python 3.9 or later for get_type_hints(..., include_extras=False).

6.17.4 - 2021-08-31

This patch makes unique arrays() much more efficient, especially when there are \ 
only a few valid elements - such as for eight-bit integers.

6.17.3 - 2021-08-30

This patch fixes the repr of array_shapes().

6.17.2 - 2021-08-30

This patch wraps some internal helper code in our proxies decorator to prevent \ 
mutations of method docstrings carrying over to other instances of the \ 
respective methods.

6.17.1 - 2021-08-29

This patch moves some internal helper code in preparation for issue 3065. There \ 
is no user-visible change, unless you depended on undocumented internals.

6.17.0 - 2021-08-27

This release adds type annotations to the stateful testing API.

Thanks to Ruben Opdebeeck for this contribution!

6.16.0 - 2021-08-27

This release adds the DrawFn type as a reusable type hint for the draw argument \ 
of @composite functions.

Thanks to Ruben Opdebeeck for this contribution!

6.15.0 - 2021-08-22

This release emits a more useful error message when @given() is applied to a \ 
coroutine function, i.e. one defined using async def.

This was previously only handled by the generic return_value health check, which \ 
doesn’t direct you to use either a custom executor or a library such as \ 
pytest-trio or pytest-asyncio to handle it for you.

6.14.9 - 2021-08-20

This patch fixes a regression in Hypothesis 6.14.8, where from_type() failed to \ 
resolve types which inherit from multiple parametrised generic types, affecting \ 
the returns package.

6.14.8 - 2021-08-16

This patch ensures that registering a strategy for a subclass of a a \ 
parametrised generic type such as class Lines(Sequence[str]): will not \ 
“leak” into unrelated strategies such as st.from_type(Sequence[int]). \ 
Unfortunately this fix requires PEP 560, meaning Python 3.7 or later.

6.14.7 - 2021-08-14

This patch fixes issue 3050, where attrs classes could cause an internal error \ 
in the ghostwriter.

6.14.6 - 2021-08-07

This patch improves the error message for issue 3016, where PEP 585 builtin \ 
generics with self-referential forward-reference strings cannot be resolved to a \ 
strategy by from_type().

6.14.5 - 2021-07-27

This patch fixes hypothesis.strategies._internal.types.is_a_new_type. It was \ 
failing on Python 3.10.0b4, where NewType is a function.

6.14.4 - 2021-07-26

This patch fixes from_type() and register_type_strategy() for typing.NewType on \ 
Python 3.10, which changed the underlying implementation (see bpo-44353 for \ 
details).

6.14.3 - 2021-07-18

This patch updates our autoformatting tools, improving our code style without \ 
any API changes.

6.14.2 - 2021-07-12

This patch ensures that we shorten tracebacks for tests which fail due to \ 
inconsistent data generation between runs (i.e. raise Flaky).

6.14.1 - 2021-07-02

This patch updates some internal type annotations. There is no user-visible change.

Next | Query returned 141 messages, browsing 31 to 40 | Previous