-
Notifications
You must be signed in to change notification settings - Fork 1
chore: bump version to 0.2.12 and update python-socketio dependencies #11
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
Open
Msameim181
wants to merge
29
commits into
main
Choose a base branch
from
develop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0c67cff
chore: bump version to 0.2.12 and update python-socketio dependencies
Msameim181 3e602f6
Merge pull request #10 from Msameim181/fix/package_management
Msameim181 3f89cf7
fix: enhance the main logger __init__ and remove fastapi, django, and…
Msameim181 57b65f5
test: fix the imports
Msameim181 2f12558
fix: resolve issue in importing
Msameim181 2f5348c
fix: resolve issue in importing
Msameim181 8dc2bc4
Merge branch 'develop' into fix/package_management
Msameim181 02f2700
fix: resolve issue in importing
Msameim181 4b06b6c
Merge pull request #12 from Msameim181/fix/package_management
Msameim181 b37c196
chore: change the license
Msameim181 4afa26b
fix: change the explicit version contorl for packages
Msameim181 e356dfb
fix: change the explicit version contorl for packages
Msameim181 a37a8e3
Update pyproject.toml
Msameim181 6124fc6
chore: update license
Msameim181 c6390e1
chore: remove asyncio from dep
Msameim181 0e9616f
chore: update the setup
Msameim181 8c0cf8e
Update pyproject.toml
Msameim181 023d1d7
chore: update setup
Msameim181 675f34f
chore: update dependencies and configuration
Msameim181 7097063
chore: refactor imports and clean up code
Msameim181 614f1f6
chore: fix asyncio_default_fixture_loop_scope value
Msameim181 5be4b55
Merge pull request #13 from Msameim181/fix/package_management
Msameim181 eae2f2d
chore: update version to `0.2.14`
Msameim181 af8d12a
Merge pull request #14 from Msameim181/fix/package_management
Msameim181 7e85fe7
chore: update license from GNU AGPL to MIT License
Msameim181 d536f17
Merge pull request #15 from Msameim181/fix/package_management
Msameim181 a163efd
feat(logging): add support for custom logging handlers
Msameim181 a827c1d
chore: update version to `0.2.16`
Msameim181 b95cec4
Merge pull request #16 from Msameim181/feat/custome_handler
Msameim181 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| [pytest] | ||
| asyncio_mode=auto | ||
| asyncio_default_fixture_loop_scope="function" | ||
| asyncio_default_fixture_loop_scope=function | ||
| python_files = tests.py test_*.py *_tests.py *_test.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,19 @@ | ||
| asyncio==3.4.3 | ||
| django==5.1.1 | ||
| lagom==2.6.0 | ||
| pydantic==2.9.2 | ||
| fastapi==0.100.0 | ||
| socketio==0.2.1 | ||
| python-socketio==5.11.4 | ||
| python-socketio[client]==5.11.4 | ||
| pytest==8.3.3 | ||
| pytest-asyncio==0.24.0 | ||
| pytest-cov==6.0.0 | ||
| uvicorn[standard]==0.30.6 | ||
| uvicorn-worker==0.2.0 | ||
| python-multipart==0.0.10 | ||
| httpx==0.27.2 | ||
| # Core dependencies | ||
| lagom>=2.6.0 | ||
| pydantic>=2.9.2 | ||
| fastapi>=0.100.0 | ||
| python-socketio>=5.12.1 | ||
| python-socketio[client]>=5.12.1 | ||
| uvicorn[standard]>=0.30.6 | ||
| uvicorn-worker>=0.2.0 | ||
| python-multipart>=0.0.10 | ||
| httpx>=0.27.2 | ||
|
|
||
| # Optional: Django integration | ||
| django>=5.1.1 | ||
|
|
||
| # Development dependencies | ||
| pytest>=8.3.3 | ||
| pytest-asyncio>=0.24.0 | ||
| pytest-cov>=6.0.0 | ||
| ruff>=0.1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,4 @@ | ||
| [metadata] | ||
| license_files = LICENSE | ||
|
|
||
| [tool.ruff] | ||
| line-length = 100 | ||
| target-version = "py37" | ||
| select = [ | ||
| "E", # pycodestyle errors | ||
| "W", # pycodestyle warnings | ||
| "F", # pyflakes | ||
| "I", # isort | ||
| "C", # flake8-comprehensions | ||
| "B", # flake8-bugbear | ||
| ] | ||
| ignore = ["E501"] # line length | ||
|
|
||
| [tool.ruff.per-file-ignores] | ||
| "__init__.py" = ["F401"] | ||
|
|
||
| [mypy] | ||
| python_version = 3.10 | ||
| warn_return_any = True | ||
| warn_unused_configs = True | ||
| disallow_untyped_defs = True | ||
| name = chromatrace | ||
| description = Advanced logging for Python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,17 @@ | ||
| from .django import RequestIdMiddleware as DjangoRequestIdMiddleware # noqa | ||
| from .fastapi import RequestIdMiddleware as FastAPIRequestIdMiddleware # noqa | ||
| from .logging_config import LoggingConfig # noqa | ||
| from .logging_settings import LoggingSettings # noqa | ||
| from .socketio import SocketRequestIdMiddleware # noqa | ||
| from .tracer import ( # noqa | ||
| from .logging_config import LoggingConfig | ||
| from .logging_settings import LoggingSettings | ||
| from .tracer import ( | ||
| RequestIdContext, | ||
| get_trace_id, | ||
| trace_id_ctx, | ||
| tracer, | ||
| ) | ||
| from .uvicorn import GetLoggingConfig, UvicornLoggingSettings # noqa: F401 | ||
|
|
||
| __all__ = [ | ||
| "LoggingConfig", | ||
| "LoggingSettings", | ||
| "RequestIdContext", | ||
| "get_trace_id", | ||
| "trace_id_ctx", | ||
| "tracer", | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change in the public API. The middleware classes (
FastAPIRequestIdMiddleware,DjangoRequestIdMiddleware,SocketRequestIdMiddleware) and uvicorn utilities (GetLoggingConfig,UvicornLoggingSettings) are no longer exported from the mainchromatracemodule. Users will need to update their imports to usechromatrace.fastapi,chromatrace.django,chromatrace.socketio, andchromatrace.uvicorninstead. This should be clearly documented in the release notes as a breaking change, and the version bump should ideally be a major version change (e.g., 0.3.0 instead of 0.2.13) to follow semantic versioning.