Skip to content

Tags: Techcable/orderedset.py

Tags

v0.1.8

Toggle v0.1.8's commit message

Verified

This commit was signed with the committer’s verified signature.
hatch: Actually include sourcefiles in wheel

After I published v0.1.7, I noticed the source files were missing from the wheel.
This makes that version of the library impossible to use.

I have yanked v0.1.7 and will publish this commit as v0.1.8.
The only change is the fixed wheel.

This was caused by the transition from setuptools -> hatch
and it should not happen again.

v0.1.7

Toggle v0.1.7's commit message

Verified

This commit was signed with the committer’s verified signature.
Implement bulk remove via __isub__ operator

Reference in OrderedSet.remove docs as a way
to avoid quadratic behavior.

v0.1.6

Toggle v0.1.6's commit message

Verified

This commit was signed with the committer’s verified signature.
Improve documentation

Enable `pydocstyle` lints

v0.1.5

Toggle v0.1.5's commit message

Verified

This commit was signed with the committer’s verified signature.
More efficient pickling

Because pickling preserves object identity,
the behavior was still correct before,
it was just less efficient.

The new version is fully backwards compatible,
and is still able to deserialize data from v0.1.4.
There is a test to make sure this is true.

Fixes #5

v0.1.4

Toggle v0.1.4's commit message

Verified

This tag was signed with the committer’s verified signature.
Add OrderedSet.dedup method

An iterator comabinator that removes duplicate elements while preserving ordering.
Because it is implemented as a generator, it does not need to wait
for the entire input before yielding values.

Add OrderedSet.dedup_async which does the same thing for AsyncIterator

v0.1.3

Toggle v0.1.3's commit message

Verified

This tag was signed with the committer’s verified signature.
Support pydantic validation & serialization

Pydantic is an optional dependency.
The library still works fine without it.

- Change `__repr__` to use list literal notation:
    - Now is `OrderedSet([1, 2, 3])` instead of `OrderedSet((1, 2, 3))`
    - The __str__ representation is still `{1, 2, 3}`
- Use PEP 639 license metadata
- Improve README, fixing bug and documenting pydantic support

v0.1.2

Toggle v0.1.2's commit message

Verified

This tag was signed with the committer’s verified signature.
Drop cython build dependency

Not used

v0.1.1

Toggle v0.1.1's commit message

Verified

This tag was signed with the committer’s verified signature.
Use 'techcable' as a namespace, not a package

Avoids conflicts with my other libraries that use 'techcable'.
Namespace packages are described in PEP 420.

v0.1.0

Toggle v0.1.0's commit message

Verified

This tag was signed with the committer’s verified signature.
Initial release