modern-di 0.4.1__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of modern-di might be problematic. Click here for more details.
- modern_di-0.4.2/.github/workflows/publish.yml +26 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/Justfile +2 -2
- {modern_di-0.4.1 → modern_di-0.4.2}/PKG-INFO +1 -1
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/pyproject.toml +3 -0
- modern_di-0.4.1/.github/workflows/publish.yml +0 -41
- modern_di-0.4.1/integrations/fastapi/Justfile +0 -23
- {modern_di-0.4.1 → modern_di-0.4.2}/.github/workflows/core-ci.yml +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/.github/workflows/fastapi-ci.yml +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/.gitignore +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/.readthedocs.yaml +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/LICENSE +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/README.md +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/docs/conf.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/docs/dev/contributing.md +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/docs/dev/development-notes.md +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/docs/index.md +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/docs/requirements.txt +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/README.md +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/depends.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/middleware.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/py.typed +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/tests/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/tests/test_fastapi_di.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/container.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/graph.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/provider_state.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/abstract.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/context_adapter.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/dict.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/factory.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/list.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/resource.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/selector.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/singleton.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/py.typed +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/scope.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/pyproject.toml +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/creators.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/__init__.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_context_adapter.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_dict.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_factory.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_list.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_resource.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_selector.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_singleton.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/test_container.py +0 -0
- {modern_di-0.4.1 → modern_di-0.4.2}/tests/test_graph.py +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: Publish Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types:
|
|
6
|
+
- published
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: extractions/setup-just@v2
|
|
14
|
+
- uses: astral-sh/setup-uv@v3
|
|
15
|
+
with:
|
|
16
|
+
enable-cache: true
|
|
17
|
+
cache-dependency-glob: "pyproject.toml"
|
|
18
|
+
- run: just publish modern-di
|
|
19
|
+
if: startsWith(github.ref_name, 'core')
|
|
20
|
+
env:
|
|
21
|
+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
22
|
+
|
|
23
|
+
- run: just publish modern-di-fastapi
|
|
24
|
+
if: startsWith(github.ref_name, 'fastapi')
|
|
25
|
+
env:
|
|
26
|
+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: modern-di
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Dependency Injection framework with IOC-container and scopes
|
|
5
5
|
Project-URL: repository, https://github.com/modern-python/modern-di
|
|
6
6
|
Project-URL: docs, https://modern-di.readthedocs.io
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
name: Publish Package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types:
|
|
6
|
-
- published
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish-core:
|
|
10
|
-
if: startsWith(github.ref_name, 'core')
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
- uses: extractions/setup-just@v2
|
|
15
|
-
- uses: astral-sh/setup-uv@v3
|
|
16
|
-
with:
|
|
17
|
-
enable-cache: true
|
|
18
|
-
cache-dependency-glob: "pyproject.toml"
|
|
19
|
-
- run: just publish
|
|
20
|
-
env:
|
|
21
|
-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
22
|
-
|
|
23
|
-
publish-fastapi:
|
|
24
|
-
if: startsWith(github.ref_name, 'fastapi')
|
|
25
|
-
runs-on: ubuntu-latest
|
|
26
|
-
defaults:
|
|
27
|
-
run:
|
|
28
|
-
working-directory: integrations/fastapi
|
|
29
|
-
steps:
|
|
30
|
-
- uses: actions/checkout@v4
|
|
31
|
-
- uses: extractions/setup-just@v2
|
|
32
|
-
- uses: astral-sh/setup-uv@v3
|
|
33
|
-
with:
|
|
34
|
-
enable-cache: true
|
|
35
|
-
cache-dependency-glob: "pyproject.toml"
|
|
36
|
-
- run: |
|
|
37
|
-
export SETUPTOOLS_SCM_PRETEND_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^fastapi-//; s/-.*$//')
|
|
38
|
-
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$SETUPTOOLS_SCM_PRETEND_VERSION"
|
|
39
|
-
just publish
|
|
40
|
-
env:
|
|
41
|
-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
default: install lint test
|
|
2
|
-
|
|
3
|
-
install:
|
|
4
|
-
uv lock --upgrade
|
|
5
|
-
uv sync --all-extras --frozen
|
|
6
|
-
|
|
7
|
-
lint:
|
|
8
|
-
uv run ruff format .
|
|
9
|
-
uv run ruff check . --fix
|
|
10
|
-
uv run mypy .
|
|
11
|
-
|
|
12
|
-
lint-ci:
|
|
13
|
-
uv run ruff format . --check
|
|
14
|
-
uv run ruff check . --no-fix
|
|
15
|
-
uv run mypy .
|
|
16
|
-
|
|
17
|
-
test *args:
|
|
18
|
-
uv run pytest {{ args }}
|
|
19
|
-
|
|
20
|
-
publish:
|
|
21
|
-
rm -rf dist
|
|
22
|
-
uv build
|
|
23
|
-
uv publish --token $PYPI_TOKEN
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|