Skip to content

rolling release

Latest
Compare
Choose a tag to compare
@karlicoss karlicoss released this 24 Aug 11:28
· 30 commits to master since this release

What's Changed

Mostly big cleanup & deprecations for core.common module #380 #382

New core dependency: typing-extensions

Lots of cleanup/deprecations in core. This mostly shouldn't break any runtime code, but mypy might complain -- so best to migrate the imports appropriately

  • core.common: deprecate outdated LazyLogger alias

  • core.common: move Json, datetime_aware, datetime_naive, is_namedtuple, asdict to my.core.types

  • my.core: deprecate Path/dataclass imports from my.core during type checking

    runtime still works for backwards compatibility

  • core.common: move assert_subpackage to my.core.internal

  • core.common: move mime-related stuff to my.core.mime

    no backward compat, unlikely it was used by anyone else

  • core.common: move stats-related stuff to my.core.stats and add more thorough tests/docs

    deprecate core.common.stat and core.common.Stats with backwards compatibility

  • core: cleanup my.core.common.unique_everseen

    • move to my.core.utils.itertools
    • more robust check for hashable types -- now checks in runtime (since the one based on types purely isn't necessarily sound)
    • add more testing
  • my.core.common: move warn_if_empty to my.core.utils.itertools, cleanup and add more tests

  • core.common: move away import related stuff to my.core.utils.imports

    moving without backward compatibility, since it's extremely unlikely they are used for any external modules

    in fact, unclear if these methods still have much value at all, but keeping for now just in case

  • core.common: move listify to core.utils.itertools, use better typing annotations for it

    also some minor refactoring of my.rss

  • core: cleanup itertool style helpers

    • deprecate group_by_key, should use itertool.bucket instead
    • move make_dict and ensure_unique to my.core.utils.itertools
  • core: cleanup deprecations, exclude from type checking and show runtime warnings

    among affected things:

    • core.common.assert_never
    • core.common.cproperty
    • core.common.isoparse
    • core.common.mcachew
    • core.common.the
    • core.common.tzdatetime
    • core.compat.sqlite_backup
  • core: cleanup deprecations, exclude from type checking and show runtime warnings

    among affected things:

    • core.common.assert_never
    • core.common.cproperty
    • core.common.isoparse
    • core.common.mcachew
    • core.common.the
    • core.common.tzdatetime
    • core.compat.sqlite_backup

Full Changelog: v0.4.20240810...v0.5.20240824