asyncer 0.0.6.dev1__tar.gz → 0.0.7.dev1__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.
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/PKG-INFO +1 -1
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/asyncer/__init__.py +1 -1
- asyncer-0.0.7.dev1/pdm_build.py +39 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/pyproject.toml +8 -1
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/scripts/format.sh +1 -1
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/scripts/lint.sh +1 -1
- asyncer-0.0.6.dev1/scripts/publish.sh +0 -5
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/LICENSE +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/README.md +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/asyncer/_main.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/asyncer/py.typed +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/asyncify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/asyncify/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/asyncify/tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/first_steps/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/first_steps/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/runnify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/runnify/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify/tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify_return/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify_return/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify_return/tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/soonify_return/tutorial003.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/syncify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/syncify/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/syncify_no_raise/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/docs_src/tutorial/syncify_no_raise/tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/requirements-docs.txt +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/requirements-tests.txt +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/requirements.txt +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/scripts/docs-live.sh +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/scripts/test-files.sh +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/scripts/test.sh +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/conftest.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_others.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_syncify_no_raise.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_asyncify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_asyncify/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_asyncify/test_tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_first_steps/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_first_steps/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_runnify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_runnify/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify/test_tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify_return/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify_return/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify_return/test_tutorial002.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify_return/test_tutorial003.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify/test_tutorial001.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify_no_raise/__init__.py +0 -0
- {asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify_no_raise/test_tutorial001.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: asyncer
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7.dev1
|
|
4
4
|
Summary: Asyncer, async and await, focused on developer experience.
|
|
5
5
|
Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <tiangolo@gmail.com>
|
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from typing import Any, Dict, List
|
|
3
|
+
|
|
4
|
+
from pdm.backend.hooks import Context
|
|
5
|
+
|
|
6
|
+
TIANGOLO_BUILD_PACKAGE = os.getenv("TIANGOLO_BUILD_PACKAGE", "asyncer")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def pdm_build_initialize(context: Context) -> None:
|
|
10
|
+
metadata = context.config.metadata
|
|
11
|
+
# Get custom config for the current package, from the env var
|
|
12
|
+
config: Dict[str, Any] = context.config.data["tool"]["tiangolo"][
|
|
13
|
+
"_internal-slim-build"
|
|
14
|
+
]["packages"][TIANGOLO_BUILD_PACKAGE]
|
|
15
|
+
project_config: Dict[str, Any] = config["project"]
|
|
16
|
+
# Get main optional dependencies, extras
|
|
17
|
+
optional_dependencies: Dict[str, List[str]] = metadata.get(
|
|
18
|
+
"optional-dependencies", {}
|
|
19
|
+
)
|
|
20
|
+
# Get custom optional dependencies name to always include in this (non-slim) package
|
|
21
|
+
include_optional_dependencies: List[str] = config.get(
|
|
22
|
+
"include-optional-dependencies", []
|
|
23
|
+
)
|
|
24
|
+
# Override main [project] configs with custom configs for this package
|
|
25
|
+
for key, value in project_config.items():
|
|
26
|
+
metadata[key] = value
|
|
27
|
+
# Get custom build config for the current package
|
|
28
|
+
build_config: Dict[str, Any] = (
|
|
29
|
+
config.get("tool", {}).get("pdm", {}).get("build", {})
|
|
30
|
+
)
|
|
31
|
+
# Override PDM build config with custom build config for this package
|
|
32
|
+
for key, value in build_config.items():
|
|
33
|
+
context.config.build_config[key] = value
|
|
34
|
+
# Get main dependencies
|
|
35
|
+
dependencies: List[str] = metadata.get("dependencies", [])
|
|
36
|
+
# Add optional dependencies to the default dependencies for this (non-slim) package
|
|
37
|
+
for include_optional in include_optional_dependencies:
|
|
38
|
+
optional_dependencies_group = optional_dependencies.get(include_optional, [])
|
|
39
|
+
dependencies.extend(optional_dependencies_group)
|
|
@@ -36,13 +36,15 @@ dependencies = [
|
|
|
36
36
|
"anyio >=3.4.0,<5.0",
|
|
37
37
|
"typing_extensions >=4.8.0; python_version < '3.10'",
|
|
38
38
|
]
|
|
39
|
-
version = "0.0.
|
|
39
|
+
version = "0.0.7.dev1"
|
|
40
40
|
|
|
41
41
|
[project.urls]
|
|
42
42
|
Homepage = "https://github.com/tiangolo/asyncer"
|
|
43
43
|
Documentation = "https://asyncer.tiangolo.com"
|
|
44
44
|
Repository = "https://github.com/tiangolo/asyncer"
|
|
45
45
|
|
|
46
|
+
[project.optional-dependencies]
|
|
47
|
+
|
|
46
48
|
[tool.pdm]
|
|
47
49
|
distribution = true
|
|
48
50
|
|
|
@@ -58,6 +60,11 @@ source-includes = [
|
|
|
58
60
|
"scripts/",
|
|
59
61
|
]
|
|
60
62
|
|
|
63
|
+
[tool.tiangolo._internal-slim-build.packages.asyncer-slim.project]
|
|
64
|
+
name = "asyncer-slim"
|
|
65
|
+
|
|
66
|
+
[tool.tiangolo._internal-slim-build.packages.asyncer.project.optional-dependencies]
|
|
67
|
+
|
|
61
68
|
[tool.coverage.run]
|
|
62
69
|
parallel = true
|
|
63
70
|
source = [
|
|
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
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_asyncify/test_tutorial001.py
RENAMED
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_asyncify/test_tutorial002.py
RENAMED
|
File without changes
|
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_first_steps/test_tutorial001.py
RENAMED
|
File without changes
|
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_runnify/test_tutorial001.py
RENAMED
|
File without changes
|
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify/test_tutorial001.py
RENAMED
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify/test_tutorial002.py
RENAMED
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_soonify_return/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify/test_tutorial001.py
RENAMED
|
File without changes
|
{asyncer-0.0.6.dev1 → asyncer-0.0.7.dev1}/tests/test_tutorial/test_syncify_no_raise/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|