Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport aiomonitor-ng #334

Merged
merged 50 commits into from
Apr 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
4f4a34b
Update development dependencies
achimnol Aug 25, 2022
74d13bf
Update gitignore
achimnol Aug 25, 2022
b2799d1
Add optional task creation stack chains to 'where' command (#1)
achimnol Aug 26, 2022
ca57fca
Rename the package to aiomonitor-ng
achimnol Aug 26, 2022
ed07cf3
Fix typo in README
achimnol Aug 26, 2022
0c5b461
feat: Rewrite ps command to provide more concise view (#2)
achimnol Aug 26, 2022
83b0faf
Update README and screenshot
achimnol Aug 26, 2022
9626697
Update README and screenshot
achimnol Aug 26, 2022
1681b25
Fix the task creation location in the 'ps' command output
achimnol Aug 28, 2022
114f838
Release v0.5.1
achimnol Aug 28, 2022
6cd7773
style: Apply black and isort
achimnol Sep 15, 2022
c614157
ci: Migrate to GitHub Actions
achimnol Sep 15, 2022
c3d9c94
ci: Fix workflow syntax and mistakes
achimnol Sep 15, 2022
256bbaa
ci: Fix actions/setup-python cache key and job names
achimnol Sep 15, 2022
10566e1
ci: Fix yaml syntax
achimnol Sep 15, 2022
868f58c
fix: lint errors
achimnol Sep 15, 2022
d8abd31
fix: typecheck errors
achimnol Sep 15, 2022
690cd56
fix: lint/typecheck errors
achimnol Sep 15, 2022
8701db8
ci: Apply pip cache to all workflows
achimnol Sep 15, 2022
6d396e8
feature: print numbers of total tasks when executing `ps` (#3)
kyujin-cho Sep 19, 2022
ee8c0fe
Adopt `prompt_toolkit` and support concurrent clients (#4)
achimnol Sep 21, 2022
0692f16
repo: Update gitignore
achimnol Sep 21, 2022
03cb42c
fix: Handle `future.__annotations__` better
achimnol Sep 21, 2022
727abf0
feat: Migrate to Click-based command line interface (#5)
achimnol Sep 21, 2022
445eb0f
refactor: Make noop as the default lastcmd and remove prog_name in helps
achimnol Sep 22, 2022
04b7c1f
refactor: Remove unused codes
achimnol Sep 23, 2022
3fe3f20
fix: Reimplement console command (#6)
achimnol Sep 25, 2022
372acec
refactor: Promote console_locals as public attr
achimnol Sep 25, 2022
5a0df72
Release v0.6.0
achimnol Sep 25, 2022
5845df1
Add missing explicit dependency to Click
achimnol Sep 26, 2022
04a13c6
Remove no longer used `mypy_types` module
achimnol Sep 26, 2022
57760d2
Update README and add extension examples
achimnol Sep 26, 2022
aab9bd9
Update simple_loop example
achimnol Sep 26, 2022
3e5bc6d
Fix isort error
achimnol Sep 26, 2022
0f7c8e2
refactor: Rename print helper functions and make them public
achimnol Sep 26, 2022
cb46129
Support auto-completion of commands and arguments (#7)
achimnol Oct 3, 2022
83d591a
fix: Trigger auto-completion only when Tab is pressed
achimnol Oct 3, 2022
ed025c7
Implement cancellation chain tracker (#8)
achimnol Oct 18, 2022
18acda2
Selective persistent termination logs (#9)
achimnol Oct 19, 2022
58d8a10
release: 0.7.0
achimnol Oct 19, 2022
689fa03
docs: Update README and explicitly set CHANGES to use ReStructuredText
achimnol Oct 19, 2022
d1ad507
setup: Update dev dependencies
achimnol Oct 19, 2022
96bacf8
Update type annotations for latest mypy and typeshed
achimnol Oct 19, 2022
75eb96a
Fix lint error
achimnol Oct 19, 2022
88bc66f
fix: Support passing `name` and `context` kwarg to `create_task()` (#10)
achimnol Apr 16, 2023
b8297f4
release: 0.7.1
achimnol Apr 16, 2023
d6f2ea2
fix: Regression in Python 3.10 due to #10 (#11)
achimnol Apr 19, 2023
45bd74c
release: 0.7.2
achimnol Apr 19, 2023
cc94583
Merge remote-tracking branch 'upstream/master'
achimnol Apr 24, 2023
37c4bf6
Reorganize the changelog
achimnol Apr 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
root = true

[*]
end_of_line = lf
charset = utf-8

[*.sh]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.{py,md}]
max_line_length = 88
indent_style = space
indent_size = 4
insert_final_newline = true

[*.py]
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.rst]
max_line_length = 0
indent_style = space
indent_size = 3
11 changes: 11 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
# ref: http://pep8.readthedocs.io/en/latest/intro.html#error-codes
ignore = E203,E731,W503,W504,Q000
# allow exeeding max-line-length because black sometimes fails to fit the code in the limit
# when there are long string constants composed of paths and URLs
extend-ignore = E501
max-line-length = 88
builtins = _
exclude = .git,.cache,.idea,.egg,__pycache__,venv,dist,build,docs

# vim: ft=dosini
102 changes: 102 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: default

on: [push, pull_request]

jobs:
lint-flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
cache: pip
cache-dependency-path: |
setup.py
requirements-dev.txt
requirements-doc.txt
- name: Install
run: |
pip install -U pip setuptools wheel
pip install -U -r requirements-dev.txt
- name: Lint with flake8
run: |
echo "::add-matcher::.github/workflows/flake8-matcher.json"
python -m flake8 aiomonitor/ examples/ tests/ setup.py

lint-isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
cache: pip
cache-dependency-path: |
setup.py
requirements-dev.txt
requirements-doc.txt
- name: Install
run: |
pip install -U pip setuptools wheel
pip install -U -r requirements-dev.txt
- name: Lint with isort
run: |
python -m isort --check aiomonitor/ examples/ tests/ setup.py

lint-black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
cache: pip
cache-dependency-path: |
setup.py
requirements-dev.txt
requirements-doc.txt
- name: Install
run: |
pip install -U pip setuptools wheel
pip install -U -r requirements-dev.txt
- name: Lint with black
run: |
python -m black --check aiomonitor/ examples/ tests/ setup.py

typecheck-mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
check-latest: true
cache: pip
cache-dependency-path: |
setup.py
requirements-dev.txt
requirements-doc.txt
- name: Install
run: |
pip install -U pip setuptools wheel
pip install -U -r requirements-dev.txt
- name: Typecheck with mypy
run: |
echo "::add-matcher::.github/workflows/mypy-matcher.json"
python -m mypy aiomonitor/ examples/ tests/ setup.py
16 changes: 16 additions & 0 deletions .github/workflows/flake8-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "flake8",
"pattern": [
{
"regexp": "^([^:]*):(\\d+):(\\d+): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
}
]
}
16 changes: 16 additions & 0 deletions .github/workflows/mypy-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "mypy",
"pattern": [
{
"regexp": "^([^:]*):(\\d+): ([^:]+): (.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
]
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ Pipfile.lock
.tags

.pytest_cache
.python-version

.DS_Store
.vim/
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

41 changes: 38 additions & 3 deletions CHANGES.txt → CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,45 @@
CHANGES
=======

0.4.6 (undefined)
------------------
0.5.0 (undefined)
-----------------

* Fix a regression in Python 3.10 due to #10 (#11)

* Support Python 3.11 properly by allowing the optional `name` and `context` kwargs passed to `asyncio.create_task()` in the hooked task factory function (#10)

* Update development dependencies

* Selective persistent termination logs (#9)

* Implement cancellation chain tracker (#8)

* Trigger auto-completion only when Tab is pressed

* Support auto-completion of commands and arguments (#7)

* Add missing explicit dependency to Click

* Promote `console_locals` as public attr

* Reimplement console command (#6)

* Migrate to Click-based command line interface (#5)

* Adopt `prompt_toolkit` and support concurrent clients (#4)

* Show the total number of tasks when executing `ps` (#3)

* Apply black, isort, mypy, flake8 and automate CI workflows using GitHub Actions

* Fix the task creation location in the 'ps' command output

* Remove loop=loop from all asynchronous calls to support newer Python versions (#329)

* Added the task creation stack chain display to the 'where' command by setting a custom task factory (#1)

* Remove loop=loop from all asynchronous calls to support newer Python versions #329
These are the backported changes from [aiomonitor-ng](https://github.com/achimnol/aiomonitor-ng).
As the version bumps have gone far away in the fork, all those extra releases are squashed into the v0.5.0 release.


0.4.5 (2019-11-03)
Expand Down
Loading