cook-build 0.6.0__tar.gz → 0.6.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.
Files changed (28) hide show
  1. {cook_build-0.6.0/src/cook_build.egg-info → cook_build-0.6.2}/PKG-INFO +20 -1
  2. cook_build-0.6.2/pyproject.toml +50 -0
  3. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/__main__.py +11 -1
  4. {cook_build-0.6.0 → cook_build-0.6.2/src/cook_build.egg-info}/PKG-INFO +20 -1
  5. cook_build-0.6.0/pyproject.toml +0 -29
  6. {cook_build-0.6.0 → cook_build-0.6.2}/LICENSE +0 -0
  7. {cook_build-0.6.0 → cook_build-0.6.2}/README.md +0 -0
  8. {cook_build-0.6.0 → cook_build-0.6.2}/README.rst +0 -0
  9. {cook_build-0.6.0 → cook_build-0.6.2}/setup.cfg +0 -0
  10. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/__init__.py +0 -0
  11. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/actions.py +0 -0
  12. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/contexts.py +0 -0
  13. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/controller.py +0 -0
  14. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/manager.py +0 -0
  15. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/task.py +0 -0
  16. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook/util.py +0 -0
  17. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook_build.egg-info/SOURCES.txt +0 -0
  18. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook_build.egg-info/dependency_links.txt +0 -0
  19. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook_build.egg-info/entry_points.txt +0 -0
  20. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook_build.egg-info/requires.txt +0 -0
  21. {cook_build-0.6.0 → cook_build-0.6.2}/src/cook_build.egg-info/top_level.txt +0 -0
  22. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_actions.py +0 -0
  23. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_contexts.py +0 -0
  24. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_controller.py +0 -0
  25. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_examples.py +0 -0
  26. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_main.py +0 -0
  27. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_manager.py +0 -0
  28. {cook_build-0.6.0 → cook_build-0.6.2}/tests/test_util.py +0 -0
@@ -1,6 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cook-build
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
+ Summary: A task-centric build system with simple declarative recipes specified in Python
5
+ Author: Till Hoffmann
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/tillahoffmann/cook-build
8
+ Project-URL: Documentation, https://github.com/tillahoffmann/cook-build
9
+ Project-URL: Repository, https://github.com/tillahoffmann/cook-build
10
+ Project-URL: Issues, https://github.com/tillahoffmann/cook-build/issues
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: BSD License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Build Tools
21
+ Classifier: Topic :: System :: Software Distribution
22
+ Classifier: Typing :: Typed
4
23
  Requires-Python: >=3.10
5
24
  Description-Content-Type: text/markdown
6
25
  License-File: LICENSE
@@ -0,0 +1,50 @@
1
+ [project]
2
+ name = "cook-build"
3
+ version = "0.6.2"
4
+ description = "A task-centric build system with simple declarative recipes specified in Python"
5
+ readme = "README.md"
6
+ license = {text = "BSD-3-Clause"}
7
+ authors = [
8
+ {name = "Till Hoffmann"}
9
+ ]
10
+ classifiers = [
11
+ "Development Status :: 4 - Beta",
12
+ "Intended Audience :: Developers",
13
+ "License :: OSI Approved :: BSD License",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.10",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Topic :: Software Development :: Build Tools",
21
+ "Topic :: System :: Software Distribution",
22
+ "Typing :: Typed",
23
+ ]
24
+ dependencies = [
25
+ "colorama>=0.4.6",
26
+ "networkx>=3.2.1",
27
+ ]
28
+ requires-python = ">=3.10"
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/tillahoffmann/cook-build"
32
+ Documentation = "https://github.com/tillahoffmann/cook-build"
33
+ Repository = "https://github.com/tillahoffmann/cook-build"
34
+ Issues = "https://github.com/tillahoffmann/cook-build/issues"
35
+
36
+ [dependency-groups]
37
+ dev = [
38
+ "build>=1.3.0",
39
+ "furo>=2025.9.25",
40
+ "pyright>=1.1.406",
41
+ "pytest>=8.4.2",
42
+ "pytest-cov>=7.0.0",
43
+ "ruff>=0.13.3",
44
+ "sphinx>=7.4.7",
45
+ "sphinxcontrib-shtest>=0.5.0",
46
+ "twine>=6.2.0",
47
+ ]
48
+
49
+ [project.scripts]
50
+ cook = "cook.__main__:__main__"
@@ -356,7 +356,7 @@ def __main__(cli_args: list[str] | None = None) -> None:
356
356
  with closing(
357
357
  sqlite3.connect(args.db, detect_types=sqlite3.PARSE_DECLTYPES)
358
358
  ) as connection:
359
- connection.executescript(QUERIES["schema"])
359
+ _setup_schema(connection)
360
360
  controller = Controller(manager.resolve_dependencies(), connection)
361
361
  command: Command = args.command
362
362
  try:
@@ -370,5 +370,15 @@ def __main__(cli_args: list[str] | None = None) -> None:
370
370
  sys.exit(1)
371
371
 
372
372
 
373
+ def _setup_schema(connection: sqlite3.Connection) -> None:
374
+ connection.executescript(QUERIES["schema"])
375
+ # Attempt to add the column which may not be present for cook versions <0.6.
376
+ try:
377
+ connection.execute("ALTER TABLE tasks ADD COLUMN last_started TIMESTAMP")
378
+ except sqlite3.OperationalError as ex:
379
+ if "duplicate column name" not in ex.args[0]:
380
+ raise # pragma: no cover
381
+
382
+
373
383
  if __name__ == "__main__":
374
384
  __main__()
@@ -1,6 +1,25 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cook-build
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
+ Summary: A task-centric build system with simple declarative recipes specified in Python
5
+ Author: Till Hoffmann
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/tillahoffmann/cook-build
8
+ Project-URL: Documentation, https://github.com/tillahoffmann/cook-build
9
+ Project-URL: Repository, https://github.com/tillahoffmann/cook-build
10
+ Project-URL: Issues, https://github.com/tillahoffmann/cook-build/issues
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: BSD License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Build Tools
21
+ Classifier: Topic :: System :: Software Distribution
22
+ Classifier: Typing :: Typed
4
23
  Requires-Python: >=3.10
5
24
  Description-Content-Type: text/markdown
6
25
  License-File: LICENSE
@@ -1,29 +0,0 @@
1
- [project]
2
- name = "cook-build"
3
- version = "0.6.0"
4
- readme = "README.md"
5
- dependencies = [
6
- "colorama>=0.4.6",
7
- "networkx>=3.2.1",
8
- ]
9
- requires-python = ">=3.10"
10
-
11
- [dependency-groups]
12
- dev = [
13
- "build>=1.3.0",
14
- "furo>=2025.9.25",
15
- "pyright>=1.1.406",
16
- "pytest>=8.4.2",
17
- "pytest-cov>=7.0.0",
18
- "ruff>=0.13.3",
19
- "sphinx>=7.4.7",
20
- "sphinxcontrib-shtest>=0.5.0",
21
- "twine>=6.2.0",
22
- ]
23
-
24
- [build-system]
25
- requires = ["setuptools>=61.0"]
26
- build-backend = "setuptools.build_meta"
27
-
28
- [project.scripts]
29
- cook = "cook.__main__:__main__"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes