- Use
uvinstead ofpip-tools - Move
devextras todevdependency group - Drop support for Python 3.8, 3.9, 3.10 and 3.11
- Check for listener's existence before attempting to remove it
- Update pytest configuration to support pytest 9
- Type checking improvements
- Introduce overloads for
ee.on - Add
Nonereturn type for functions as appropriate - Type
selfasAnyin all methods - Local and CI tasks for type checking with
mypy mypytype checking passespyrighttype checking passes
- Introduce overloads for
- Addition of
mypyto development dependencies - Removed conditional import of
iscoroutine- This was implemented to support Python 3.3, which was dropped long ago
- Removed type stub for
twisted.python.Failure- This was to address a typing issue in unsupported versions of Twisted
- Export
Handlertype inpyee/__init__.py
- Fixed ReadTheDocs build
build.osis now a required parameterpython.versionis replaced bybuild.tools
- New features in
pyee.asyncio.AsyncIOEventEmitter:wait_for_completemethod to wait for all running handlers to complete executioncancelmethod to cancel execution of all running handlerscompleteproperty that'sTruewhen no handlers are currently running
- Updated changelog for v12 release to describe where to find alternatives to deprecated and removed imports
- Add support for Python 3.13
- Upgrade GitHub Actions
- Upgrade
actions/setup-pythonto v5 - Upgrade
actions/setup-nodeto v4 - Upgrade
actions/upload-artifactto v4 - Updated
CONTRIBUTORS.mdto include missing contributors
- Remove deprecated imports:
pyee.BaseEventEmitter- Use
pyee.base.EventEmitterorpyee.EventEmitterinstead
- Use
pyee.AsyncIOEventEmitter- Use
pyee.asyncio.AsyncIOEventEmitterinstead
- Use
pyee.TwistedEventEmitter- Use
pyee.twisted.TwistedEventEmitterinstead
- Use
pyee.ExecutorEventEmitter- Use
pyee.executor.ExecutorEventEmitterinstead
- Use
pyee.TrioEventEmitter- Use
pyee.trio.TrioEventEmitterinstead
- Use
- Add
PyeeErrorwhich inherits fromPyeeException, and use throughout - Deprecate direct use of
PyeeException- Use
PyeeErrorinstead
- Use
- Add project URLs to pyproject.toml and PyPI
- Use ActionLint v2
- Fix GitHub release action
- Generate a man page with Sphinx (in addition to mkdocs HTML)
- Use GitHub Actions to cut releases
- Bump development dependencies, thanks to dependabot
- Support Python 3.12
- Use node.js LTS in GitHub Actions
- Read support Python versions from
pyproject.tomlin GitHub Actions
- Require Python >= 3.8
- Remove mention of Python 3.5 from documentation
- Update classifiers in
pyproject.toml - Add just task to tag releases in git
- Update RTD badge in README.md
- Copy fixes to changelog
- Remove package.json/package-lock.json
- Use Python 3.8 on Read the Docs
- Various bugfixes for
.readthedocs.yml
Development Environment Updates:
- Switch from
maketojust - Switch from vanilla
piptopip-tools environment.ymlupdatedenvironment.ymlnot currently supported
Packaging Updates:
- Switch from
setup.pytopyproject.toml(still using setuptools)
Documentation updates:
- Switch documentation generator from Sphinx to mkdocs (including on ReadTheDocs)
- Use Python 3.10 on ReadTheDocs
- Change documentation them to
readthedocs(old theme not available in mkdocs) - Switch documentation format from RST to markdown (Including in docstrings)
Testing and Linting Updates:
- use
npxto run pyright pyproject.tomllinting withvalidate-pyproject
API Updates:
- Minor type annotation bugfixes
- Store AsyncIO Futures in a set
EventEmittersupports pickling- Development dependencies updated to latest
- Dependency on mock removed in favor of unittest.mock
- Additional type hints so pyright check passes on latest
- Drop 3.7 support
- Add
py.typedfile toMANIFEST.in(ensures mypy actually respects the type annotations)
- Improve type safety of
EventEmitter#on,EventEmitter#add_listenerandEventEmitter#listens_toby parameterizing theHandler - Minor fixes to documentation
- Add
tests_requireto setup.py, fixing COPR build - Install as an editable package in
environment.ymlandrequirements_docs.txt, fixing Conda workflows and ReadTheDocs respectively
- Fix regression where
EventEmitter#listenersbegan crashing when called with uninitialized listeners
Compatibility:
- Drop 3.6 support
New features:
- New
EventEmitter.event_names()method (see PR #96) - Type annotations and type checking with
pyright - Exprimental
pyee.clsmodule exposing an@eventedclass decorator and a@onmethod decorator (see PR #84)
Moved/deprecated interfaces:
pyee.TwistedEventEmitter->pyee.twisted.TwistedEventEmitterpyee.AsyncIOEventEmitter->pyee.asyncio.AsyncIOEventEmitterpyee.ExecutorEventEmitter->pyee.executor.ExecutorEventEmitterpyee.TrioEventEmitter->pyee.trio.TrioEventEmitter
Removed interfaces:
pyee.CompatEventEmitter
Documentation fixes:
- Add docstring to
BaseEventEmitter - Update docstrings to reference
EventEmitterinstead ofBaseEventEmitterthroughout
Developer Setup & CI:
- Migrated builds from Travis to GitHub Actions
- Refactor developer setup to use a local virtualenv
- Correct version in docs
- Add .readthedocs.yaml file
- Remove vcversioner dependency from docs build
- Remove test_requires and setup_requires directives from setup.py (closing #82)
- Remove vcversioner from dependencies
- Streamline requirements.txt and environment.yml files
- Update and extend CONTRIBUTING.rst
- CI with GitHub Actions instead of Travis (closing #56)
- Format all code with black
- Switch default branch to
main - Add the CHANGELOG to Sphinx docs (closing #51)
- Updated copyright information
- Improve thread safety in base EventEmitter
- Documentation fix in ExecutorEventEmitter
- Update README to reflect new API
- Drop support for Python 2.7
- Remove CompatEventEmitter and rename BaseEventEmitter to EventEmitter
- Create an alias for BaseEventEmitter with a deprecation warning
- setup_requires vs tests_require now correct
- tests_require updated to pass in tox
- 3.7 testing removed from tox
- 2.7 testing removed from Travis
- Tag license as MIT in setup.py
- Update requirements and environment to pip -e the package
- Support Python 3.8 by attempting to import TimeoutError from
asyncio.exceptions - Add LICENSE to package manifest
- Add trio testing to tox
- Add Python 3.8 to tox
- Fix Python 2.7 in tox
- Some tweaks to the docs
- Added a
TrioEventEmitterclass for intended use with trio AsyncIOEventEmitternow correctly handles cancellations- Add a new experimental
pyee.upliftAPI for adding new functionality to existing event emitters
- Added a
BaseEventEmitterclass which is entirely synchronous and intended for simple use and for subclassing - Added an
AsyncIOEventEmitterclass for intended use with asyncio - Added a
TwistedEventEmitterclass for intended use with twisted - Added an
ExecutorEventEmitterclass which runs events in an executor - Deprecated
EventEmitter(use one of the new classes)
- CHANGELOG.md reformatted to CHANGELOG.rst
- Added CONTRIBUTORS.rst
- The
listenersmethod no longer returns the raw list of listeners, and instead returns a list of unwrapped listeners; This means that mutating listeners on the EventEmitter by mutating the list returned by this method isn't possible anymore, and that for once handlers this method returns the unwrapped handler rather than the wrapped handler onceAPI now returns the unwrapped handler in both decorator and non-decorator cases- Possible to remove once handlers with unwrapped handlers
- Internally, listeners are now stored on a OrderedDict rather than a list
- Minor stylistic tweaks to make code more pythonic
- Fix bug in setup.py; Now publishable
- Coroutines now work with .once
- Wrapped listener is removed prior to hook execution rather than after for synchronous .once handlers
- Add universal wheel
- EventEmitter now inherits from object
- Fixes/Updates to pyee docs
- Uses vcversioner for managing version information
- Errors resulting from async functions are now proxied to the "error" event, rather than being lost into the aether.
- Fix setup.py broken in python 2.7
- Add link to CHANGELOG in README
- Fix RST render warnings in README
- Add README contents as long_description inside setup.py
- Drop support for pythons 3.2, 3.3 and 3.4 (support 2.7 and 3.5)
- Use pytest instead of nose
- Removed Event_emitter alias
- Code passes flake8
- Use setuptools (no support for users without setuptools)
- Reogranized docs, hosted on readthedocs.org
- Support for scheduling coroutine functions passed to
@ee.on
- Make copy of event handlers array before iterating on emit
- Change URLs to reference jfhbrook
- Decorators return original function for
onandonce - Explicit python 3 support
- Addition of legit license file
- Addition of CHANGELOG.md
- Now properly using semver