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.

Files changed (52) hide show
  1. modern_di-0.4.2/.github/workflows/publish.yml +26 -0
  2. {modern_di-0.4.1 → modern_di-0.4.2}/Justfile +2 -2
  3. {modern_di-0.4.1 → modern_di-0.4.2}/PKG-INFO +1 -1
  4. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/pyproject.toml +3 -0
  5. modern_di-0.4.1/.github/workflows/publish.yml +0 -41
  6. modern_di-0.4.1/integrations/fastapi/Justfile +0 -23
  7. {modern_di-0.4.1 → modern_di-0.4.2}/.github/workflows/core-ci.yml +0 -0
  8. {modern_di-0.4.1 → modern_di-0.4.2}/.github/workflows/fastapi-ci.yml +0 -0
  9. {modern_di-0.4.1 → modern_di-0.4.2}/.gitignore +0 -0
  10. {modern_di-0.4.1 → modern_di-0.4.2}/.readthedocs.yaml +0 -0
  11. {modern_di-0.4.1 → modern_di-0.4.2}/LICENSE +0 -0
  12. {modern_di-0.4.1 → modern_di-0.4.2}/README.md +0 -0
  13. {modern_di-0.4.1 → modern_di-0.4.2}/docs/conf.py +0 -0
  14. {modern_di-0.4.1 → modern_di-0.4.2}/docs/dev/contributing.md +0 -0
  15. {modern_di-0.4.1 → modern_di-0.4.2}/docs/dev/development-notes.md +0 -0
  16. {modern_di-0.4.1 → modern_di-0.4.2}/docs/index.md +0 -0
  17. {modern_di-0.4.1 → modern_di-0.4.2}/docs/requirements.txt +0 -0
  18. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/README.md +0 -0
  19. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/__init__.py +0 -0
  20. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/depends.py +0 -0
  21. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/middleware.py +0 -0
  22. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/modern_di_fastapi/py.typed +0 -0
  23. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/tests/__init__.py +0 -0
  24. {modern_di-0.4.1 → modern_di-0.4.2}/integrations/fastapi/tests/test_fastapi_di.py +0 -0
  25. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/__init__.py +0 -0
  26. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/container.py +0 -0
  27. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/graph.py +0 -0
  28. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/provider_state.py +0 -0
  29. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/__init__.py +0 -0
  30. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/abstract.py +0 -0
  31. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/context_adapter.py +0 -0
  32. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/dict.py +0 -0
  33. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/factory.py +0 -0
  34. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/list.py +0 -0
  35. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/resource.py +0 -0
  36. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/selector.py +0 -0
  37. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/providers/singleton.py +0 -0
  38. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/py.typed +0 -0
  39. {modern_di-0.4.1 → modern_di-0.4.2}/modern_di/scope.py +0 -0
  40. {modern_di-0.4.1 → modern_di-0.4.2}/pyproject.toml +0 -0
  41. {modern_di-0.4.1 → modern_di-0.4.2}/tests/__init__.py +0 -0
  42. {modern_di-0.4.1 → modern_di-0.4.2}/tests/creators.py +0 -0
  43. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/__init__.py +0 -0
  44. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_context_adapter.py +0 -0
  45. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_dict.py +0 -0
  46. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_factory.py +0 -0
  47. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_list.py +0 -0
  48. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_resource.py +0 -0
  49. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_selector.py +0 -0
  50. {modern_di-0.4.1 → modern_di-0.4.2}/tests/providers/test_singleton.py +0 -0
  51. {modern_di-0.4.1 → modern_di-0.4.2}/tests/test_container.py +0 -0
  52. {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 }}
@@ -17,7 +17,7 @@ lint-ci:
17
17
  test *args:
18
18
  uv run pytest tests {{ args }}
19
19
 
20
- publish:
20
+ publish package:
21
21
  rm -rf dist
22
- uv build
22
+ uv build --package {{package}}
23
23
  uv publish --token $PYPI_TOKEN
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: modern-di
3
- Version: 0.4.1
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
@@ -49,6 +49,9 @@ build-backend = "hatchling.build"
49
49
  source = "vcs"
50
50
  fallback-version = "0"
51
51
 
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["integrations/fastapi"]
54
+
52
55
  [tool.mypy]
53
56
  python_version = "3.10"
54
57
  strict = true
@@ -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