-
Notifications
You must be signed in to change notification settings - Fork 10
Remove deprecated distutils
#360
base: master
Are you sure you want to change the base?
Changes from all commits
a4c9d2f
751c205
6bb7044
f0f416e
c8f3f31
f3a89a3
84d21ae
1d7c31e
f3e0d4a
64a0482
f4b211a
962fc09
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,13 @@ | ||
| { | ||
| "params": { | ||
| "docker": { | ||
| "docker_tag": "python:3.11-slim-buster" | ||
| }, | ||
| "name": "microcosm-flask", | ||
| "pypi": { | ||
| "repository": "pypi" | ||
| } | ||
| }, | ||
| "type": "python-library", | ||
| "version": "2024.52.0" | ||
| "version": "2024.54.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| from collections.abc import Mapping | ||
| from functools import lru_cache | ||
| from pkg_resources import iter_entry_points | ||
| from importlib.metadata import entry_points | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now using |
||
| from typing import Any | ||
|
|
||
| from marshmallow.fields import Field | ||
|
|
@@ -54,7 +54,7 @@ def builder_types(cls) -> list[type[ParameterBuilder]]: | |
| Define the available builder types. | ||
|
|
||
| """ | ||
| return [entry_point.load() for entry_point in iter_entry_points(ENTRY_POINT)] | ||
| return [entry_point.load() for entry_point in entry_points(group=ENTRY_POINT)] | ||
|
|
||
| @classmethod | ||
| def default_builder_type(cls) -> type[ParameterBuilder]: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,6 @@ force_grid_wrap = 4 | |
| float_to_top = True | ||
| include_trailing_comma = True | ||
| known_first_party = microcosm_flask | ||
| extra_standard_library = pkg_resources | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no longer needed now that we switched to |
||
| line_length = 99 | ||
| lines_after_imports = 2 | ||
| multi_line_output = 3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ | |
| "jsonschema>=3.2.0", | ||
| "marshmallow>=3.0.0", | ||
| "microcosm>=4.0.0", | ||
| "microcosm-logging>=2.0.0", | ||
| "microcosm-logging>=2.1.0", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. once this is merged and released this version will be available - should fix remaining test-failures in CI for this PR cc/ @salmanmashayekh @lfmoisa-globality |
||
| "openapi>=2.0.0", | ||
| "python-dateutil>=2.7.3", | ||
| "PyYAML>=3.13", | ||
|
|
@@ -53,9 +53,9 @@ | |
| "lint": [ | ||
| "mypy", | ||
| "flake8", | ||
| "flake8-print", | ||
| "flake8-logging-format>=1.0.0", | ||
| "flake8-isort", | ||
| "flake8-logging-format>=1.0.0", | ||
| "flake8-print", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just sorting deps |
||
| "types-python-dateutil", | ||
| "types-setuptools", | ||
| ], | ||
|
|
||
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.
Nice @salmanmashayekh looks like almost 1-to-1 replacement