infrablocks.invoke_factory 0.0.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright © 2025 InfraBlocks Maintainers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.1
2
+ Name: infrablocks.invoke_factory
3
+ Version: 0.0.2
4
+ Summary: Base classes and modules to aid in creating custom invoke tasks.
5
+ License: MIT
6
+ Author: Toby Clemson
7
+ Author-email: tobyclemson@gmail.com
8
+ Requires-Python: >=3.13,<4.0
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Description-Content-Type: text/markdown
12
+
13
+ # Invoke Factory
14
+
15
+ Base classes and modules to aid in creating custom invoke tasks.
16
+
17
+ ## Development
18
+
19
+ For the best developer experience make sure you have `direnv` and `asdf` installed.
20
+
21
+ Contributing
22
+ Bug reports and pull requests are welcome on GitHub at https://github.com/infrablocks/infoke_factory.
23
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
24
+ Contributor Covenant code of conduct.
25
+
26
+ License
27
+ Copyright © 2025 InfraBlocks Maintainers
28
+
29
+ Distributed under the terms of the MIT License.
@@ -0,0 +1,17 @@
1
+ # Invoke Factory
2
+
3
+ Base classes and modules to aid in creating custom invoke tasks.
4
+
5
+ ## Development
6
+
7
+ For the best developer experience make sure you have `direnv` and `asdf` installed.
8
+
9
+ Contributing
10
+ Bug reports and pull requests are welcome on GitHub at https://github.com/infrablocks/infoke_factory.
11
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
12
+ Contributor Covenant code of conduct.
13
+
14
+ License
15
+ Copyright © 2025 InfraBlocks Maintainers
16
+
17
+ Distributed under the terms of the MIT License.
@@ -0,0 +1,128 @@
1
+ [project]
2
+ requires-python = ">=3.13,<4.0"
3
+
4
+ [tool.poetry]
5
+ name = "infrablocks.invoke_factory"
6
+ version = "0.0.2"
7
+ description = "Base classes and modules to aid in creating custom invoke tasks."
8
+ authors = [
9
+ "Toby Clemson <tobyclemson@gmail.com>",
10
+ "Jakob Durstberger<jakob@durstberger.me>",
11
+ ]
12
+ license = "MIT"
13
+ readme = "README.md"
14
+ packages = [
15
+ { include = "infrablocks", from = "src" },
16
+ ]
17
+
18
+ [tool.poetry.dependencies]
19
+ python = ">=3.13,<4.0"
20
+
21
+ [tool.poetry.group.dev.dependencies]
22
+ coverage = "^7.6.10"
23
+ junitparser = "^3.2.0"
24
+ poethepoet = "^0.33.1"
25
+ pyright = { extras = ["nodejs"], version = "^1.1.391" }
26
+ pytest = "^8.3.4"
27
+ pytest-asyncio = "^0.25.1"
28
+ pytest-cov = "^6.0.0"
29
+ pytest-diff = "^0.1.14"
30
+ pytest-pretty = "^1.2.0"
31
+ pytest-repeat = "^0.9.3"
32
+ pytest-unordered = "^0.6.1"
33
+ ruff = "^0.11.0"
34
+
35
+ [tool.poetry.group.changelog.dependencies]
36
+ scriv = "^1.5.1"
37
+
38
+ [tool.poetry.group.docs.dependencies]
39
+ mkdocs-material = "^9.5.47"
40
+ mkdocstrings = { extras = ["python"], version = "^0.29.0" }
41
+ black = "^25.1.0"
42
+
43
+ [tool.poe.tasks]
44
+ lint-check = "ruff check src tests"
45
+ lint-fix = "ruff check --fix src tests"
46
+ format-check = "ruff format --diff src tests"
47
+ format-fix = "ruff format src tests"
48
+ type-check = "pyright src tests"
49
+ docs-serve = "mkdocs serve"
50
+ docs-build = "mkdocs build"
51
+ changelog-fragment-create = "scriv create"
52
+ changelog-assemble = "scriv collect"
53
+
54
+ [tool.poe.tasks.test-unit]
55
+ args = [{ name = "filter", options = ["--filter"], default = "" }]
56
+ shell = """
57
+ mkdir -p reports/coverage/unit
58
+ pytest -vv tests/unit \
59
+ --junitxml=./reports/unit.junit.xml \
60
+ --cov-report=xml:./reports/coverage/unit/coverage.xml \
61
+ --cov-report=html:./reports/coverage/unit \
62
+ ${filter:+-k ${filter}}
63
+ """
64
+
65
+ [tool.poe.tasks.test-unit.env]
66
+ COVERAGE_FILE = "./reports/coverage/unit/.coverage"
67
+ PYTHONDEVMODE = "1"
68
+
69
+ [tool.poe.tasks.test-report]
70
+ shell = """
71
+ junitparser merge \
72
+ reports/*.junit.xml \
73
+ reports/all.junit.xml
74
+ coverage combine \
75
+ --keep \
76
+ --data-file=./reports/coverage/.coverage \
77
+ reports/coverage/unit/.coverage
78
+ coverage html \
79
+ --data-file=./reports/coverage/.coverage \
80
+ --directory=./reports/coverage/all
81
+ coverage xml \
82
+ --data-file=./reports/coverage/.coverage \
83
+ -o ./reports/coverage/all/coverage.xml
84
+ coverage report \
85
+ --data-file=./reports/coverage/.coverage
86
+ """
87
+
88
+ [tool.pytest.ini_options]
89
+ pythonpath = ["src"]
90
+ asyncio_mode = "auto"
91
+ asyncio_default_fixture_loop_scope = "function"
92
+ addopts = [
93
+ "--import-mode=importlib",
94
+ "--strict-markers",
95
+ "--capture=no",
96
+ "--cov=./src"
97
+ ]
98
+
99
+ [tool.coverage.run]
100
+ branch = true
101
+
102
+ [tool.coverage.report]
103
+ show_missing = true
104
+ exclude_also = ["@abstract"]
105
+
106
+ [tool.ruff]
107
+ line-length = 79
108
+
109
+ [tool.ruff.lint]
110
+ select = ["E4", "E7", "E9", "F", "I"]
111
+
112
+ [tool.ruff.lint.pylint]
113
+ max-args = 7
114
+ allow-magic-value-types = ["str", "bytes", "int"]
115
+
116
+ [tool.pyright]
117
+ include = ["src", "tests/unit"]
118
+ extraPaths = ["src"]
119
+ strict = ["src"]
120
+ reportMissingTypeStubs = "error"
121
+
122
+ [tool.scriv]
123
+ version = "literal: pyproject.toml: tool.poetry.version"
124
+ format = "md"
125
+
126
+ [build-system]
127
+ requires = ["poetry-core"]
128
+ build-backend = "poetry.core.masonry.api"
@@ -0,0 +1,3 @@
1
+ class DynamicTask:
2
+ def some_method(self):
3
+ print("I am an example method")