atheneum-forge 1.0.0__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.
- atheneum_forge-1.0.0/.gitignore +27 -0
- atheneum_forge-1.0.0/LICENSE.txt +11 -0
- atheneum_forge-1.0.0/PKG-INFO +100 -0
- atheneum_forge-1.0.0/README.md +84 -0
- atheneum_forge-1.0.0/atheneum_forge/__init__.py +2 -0
- atheneum_forge-1.0.0/atheneum_forge/_version.py +24 -0
- atheneum_forge-1.0.0/atheneum_forge/copyright.j2 +2 -0
- atheneum_forge-1.0.0/atheneum_forge/core.py +510 -0
- atheneum_forge-1.0.0/atheneum_forge/forge.py +149 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.clang-format +235 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.clang-tidy.j2 +24 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.codecov.yml +6 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.github/pull_request_template.md +45 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.github/workflows/build-and-test.yml +76 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.github/workflows/clang-format-check.yml.j2 +27 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.github/workflows/clang-tidy-check.yml +17 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.github/workflows/doxygen-completeness-check.yml +15 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.gitignore +4 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/.gitmodules +6 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/CMakePresets.json +17 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/Dockerfile.format.j2 +12 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/LICENSE.txt +10 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/README.md.j2 +79 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/Taskfile.yml.j2 +44 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/app/app_CMakeLists.txt.j2 +38 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/FindGcov.cmake +158 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/FindLcov.cmake +357 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/Findcodecov.cmake +258 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/build-options-interface.cmake +105 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/get-git-hash.cmake +8 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/git-versioning.cmake +127 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/initialize-submodules.cmake +67 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/llvm-cov-wrapper +56 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/cmake/toolchain-windows.cmake +18 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/doc/guidelines.md +191 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/include/atheneum/atheneum.h +37 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/main_CMakeLists.txt.j2 +102 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/manifest.toml +87 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/src/atheneum-private.h +16 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/src/atheneum.cpp +29 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/src/src_CMakeLists.txt.j2 +51 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/test/atheneum_tests.cpp +18 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/test/test_CMakeLists.txt.j2 +30 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/cpp/vendor/vendor_CMakeLists.txt.j2 +22 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.github/workflows/build-and-test.yaml +35 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.github/workflows/check-formatting.yaml +31 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.gitignore +21 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.pre-commit-config.yaml +18 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.pylintrc +585 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/.python-version +1 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/LICENSE.txt +10 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/README.md +6 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/dodo.py +21 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/manifest.toml +41 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/pyproject.toml +60 -0
- atheneum_forge-1.0.0/atheneum_forge/languages/python/uv.lock.toml +383 -0
- atheneum_forge-1.0.0/atheneum_forge/logging_setup.py +83 -0
- atheneum_forge-1.0.0/atheneum_forge/main.py +182 -0
- atheneum_forge-1.0.0/atheneum_forge/main.tcss +35 -0
- atheneum_forge-1.0.0/atheneum_forge/main_cli.py +122 -0
- atheneum_forge-1.0.0/atheneum_forge/project_factory.py +513 -0
- atheneum_forge-1.0.0/atheneum_forge/update.py +176 -0
- atheneum_forge-1.0.0/pyproject.toml +74 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
build/
|
|
2
|
+
dist/
|
|
3
|
+
*.egg*/
|
|
4
|
+
atheneum_forge/_version.py
|
|
5
|
+
|
|
6
|
+
.doit.*
|
|
7
|
+
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.mypy_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
__pycache__/
|
|
12
|
+
|
|
13
|
+
.vscode/
|
|
14
|
+
|
|
15
|
+
.venv/
|
|
16
|
+
venv/
|
|
17
|
+
|
|
18
|
+
*.bak
|
|
19
|
+
*.bak/
|
|
20
|
+
|
|
21
|
+
*.log
|
|
22
|
+
*.theirs
|
|
23
|
+
*.ours
|
|
24
|
+
|
|
25
|
+
todo.md
|
|
26
|
+
# TODO: mkdocs build files
|
|
27
|
+
# TODO: sphinx build files
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright (c) 2025 Big Ladder Software, LLC
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: atheneum-forge
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Project boilerplate and build system scaffolding generation and maintenance.
|
|
5
|
+
Author-email: Big Ladder Software <info@bigladdersoftware.com>
|
|
6
|
+
License-File: LICENSE.txt
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Requires-Dist: click<8.2.0
|
|
9
|
+
Requires-Dist: jinja2<4,>=3.1.4
|
|
10
|
+
Requires-Dist: pyyaml>=6.0.0
|
|
11
|
+
Requires-Dist: textual
|
|
12
|
+
Requires-Dist: tomli-w<2,>=1.1.0
|
|
13
|
+
Requires-Dist: typer<0.13,>=0.12.5
|
|
14
|
+
Requires-Dist: yamlcore
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# Atheneum Forge
|
|
18
|
+
|
|
19
|
+
This project is a boiler-plate generator.
|
|
20
|
+
In contrast to a static template, the main ideas of the project are to:
|
|
21
|
+
|
|
22
|
+
- not only be able to generate a "scaffolding" for a new (or existing) project
|
|
23
|
+
- but **ALSO** be able to keep that "scaffolding" up-to-date based on an authoratative source
|
|
24
|
+
- and also automate several project-level tasks such as:
|
|
25
|
+
- version updating
|
|
26
|
+
- checking submodules (fmt, google test, courier) to see if there are newer versions and automating their update
|
|
27
|
+
- adding copyright headers
|
|
28
|
+
- automating the addition of "include guards" (for C++)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
### From Github
|
|
34
|
+
Atheneum-forge can be run as an executable directly from Github, with the [uv dependency manager](https://docs.astral.sh/uv/getting-started/installation/):
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
> uvx --from git+https://github.com/bigladder/atheneum-forge.git forge-cli init . <project_name> --type <cpp | python>
|
|
38
|
+
```
|
|
39
|
+
or
|
|
40
|
+
```
|
|
41
|
+
> uvx --from git+https://github.com/bigladder/atheneum-forge.git forge
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### From a clone
|
|
45
|
+
The atheneum-forge tool can be used directly from the repository directory, or built into a package.The project is managed with the uv depenency manager; to build, simply use command "uv build" from the atheneum-forge top directory.
|
|
46
|
+
|
|
47
|
+
Installing the atheneum-forge package will provide two command-line tools: a TUI (text user interface) and a command-line-app.
|
|
48
|
+
|
|
49
|
+
* _forge-cli_ allows the user to view all project-generation functionality at a glance;
|
|
50
|
+
|
|
51
|
+
* _forge_ can be called with arguments to implement one piece of functionality at a time (_forge --help_).
|
|
52
|
+
|
|
53
|
+
Project generation consists of two steps, which may be combined. First, a configuration file is generated (forge.toml), which contains default settings such as the project name and type. If more detailed defaults are desired, the _forge.toml_ file contains project-relevant settings that can be activated by removing the comment character. The project-generation step will automatically import these settings to populate project files (primarily support and build files).
|
|
54
|
+
|
|
55
|
+
>**Note**
|
|
56
|
+
>
|
|
57
|
+
>On some Windows PCs, the forge TUI may render with unexpected characters. For a cleaner experience, download and [install](https://support.microsoft.com/en-us/office/add-a-font-b7c5f17c-4426-4b53-967f-455339c564c1) a [Nerd Font](https://www.nerdfonts.com/font-downloads) (such as FiraCode).
|
|
58
|
+
|
|
59
|
+
### As a Python package
|
|
60
|
+
|
|
61
|
+
_atheneum-forge_ may be imported as a package dependency directly from git. Include atheneum-forge in your pyproject.toml dependencies list, and set the source as below:
|
|
62
|
+
```
|
|
63
|
+
[tool.uv.sources]
|
|
64
|
+
atheneum-forge = { git = "https://github.com/bigladder/atheneum-forge" }
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
In your code,
|
|
68
|
+
|
|
69
|
+
from atheneum_forge import forge, project_factory
|
|
70
|
+
|
|
71
|
+
to use the public interface.
|
|
72
|
+
|
|
73
|
+
## For developers
|
|
74
|
+
|
|
75
|
+
For each language to be supported by a project template, the _languages_ directory contains a <language_name> entry. Currently C++ and Python are supported. Each language pack consists of three conceptual pieces:
|
|
76
|
+
|
|
77
|
+
**Project directory tree**
|
|
78
|
+
|
|
79
|
+
The canonical folder structure for open-source projects, with any standard, non-customizable files that are simply copied into a new project.
|
|
80
|
+
|
|
81
|
+
**Templates**:
|
|
82
|
+
|
|
83
|
+
Files within the folder structure that must be customized (e.g. with the project name) are stored as Jinja templates with a .j2 extension. These are rendered using default parameter values before being copied into a new project.
|
|
84
|
+
|
|
85
|
+
**manifest.toml**: provides parameters and indications of how files in the template repository should be used
|
|
86
|
+
|
|
87
|
+
The manifest is a complete description of every file that comprises a project scaffold. Its sections are:
|
|
88
|
+
* _static_: a list of files or directories to be copied directly
|
|
89
|
+
* _template_: a list of files that will be modified before copying
|
|
90
|
+
* _template-parameters_: a list of substitution parameters for the templates
|
|
91
|
+
* _deps_: a set of dictionaries describing submodule dependencies
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
TODO: Format of manifest, to/from options, extra keywords
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## Reference
|
|
98
|
+
|
|
99
|
+
Poetry and Helix -- how to bring the Helix editor into context with a Python app being developed
|
|
100
|
+
https://blog.jorisl.nl/helix_python_lsp/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Atheneum Forge
|
|
2
|
+
|
|
3
|
+
This project is a boiler-plate generator.
|
|
4
|
+
In contrast to a static template, the main ideas of the project are to:
|
|
5
|
+
|
|
6
|
+
- not only be able to generate a "scaffolding" for a new (or existing) project
|
|
7
|
+
- but **ALSO** be able to keep that "scaffolding" up-to-date based on an authoratative source
|
|
8
|
+
- and also automate several project-level tasks such as:
|
|
9
|
+
- version updating
|
|
10
|
+
- checking submodules (fmt, google test, courier) to see if there are newer versions and automating their update
|
|
11
|
+
- adding copyright headers
|
|
12
|
+
- automating the addition of "include guards" (for C++)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
### From Github
|
|
18
|
+
Atheneum-forge can be run as an executable directly from Github, with the [uv dependency manager](https://docs.astral.sh/uv/getting-started/installation/):
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
> uvx --from git+https://github.com/bigladder/atheneum-forge.git forge-cli init . <project_name> --type <cpp | python>
|
|
22
|
+
```
|
|
23
|
+
or
|
|
24
|
+
```
|
|
25
|
+
> uvx --from git+https://github.com/bigladder/atheneum-forge.git forge
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### From a clone
|
|
29
|
+
The atheneum-forge tool can be used directly from the repository directory, or built into a package.The project is managed with the uv depenency manager; to build, simply use command "uv build" from the atheneum-forge top directory.
|
|
30
|
+
|
|
31
|
+
Installing the atheneum-forge package will provide two command-line tools: a TUI (text user interface) and a command-line-app.
|
|
32
|
+
|
|
33
|
+
* _forge-cli_ allows the user to view all project-generation functionality at a glance;
|
|
34
|
+
|
|
35
|
+
* _forge_ can be called with arguments to implement one piece of functionality at a time (_forge --help_).
|
|
36
|
+
|
|
37
|
+
Project generation consists of two steps, which may be combined. First, a configuration file is generated (forge.toml), which contains default settings such as the project name and type. If more detailed defaults are desired, the _forge.toml_ file contains project-relevant settings that can be activated by removing the comment character. The project-generation step will automatically import these settings to populate project files (primarily support and build files).
|
|
38
|
+
|
|
39
|
+
>**Note**
|
|
40
|
+
>
|
|
41
|
+
>On some Windows PCs, the forge TUI may render with unexpected characters. For a cleaner experience, download and [install](https://support.microsoft.com/en-us/office/add-a-font-b7c5f17c-4426-4b53-967f-455339c564c1) a [Nerd Font](https://www.nerdfonts.com/font-downloads) (such as FiraCode).
|
|
42
|
+
|
|
43
|
+
### As a Python package
|
|
44
|
+
|
|
45
|
+
_atheneum-forge_ may be imported as a package dependency directly from git. Include atheneum-forge in your pyproject.toml dependencies list, and set the source as below:
|
|
46
|
+
```
|
|
47
|
+
[tool.uv.sources]
|
|
48
|
+
atheneum-forge = { git = "https://github.com/bigladder/atheneum-forge" }
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
In your code,
|
|
52
|
+
|
|
53
|
+
from atheneum_forge import forge, project_factory
|
|
54
|
+
|
|
55
|
+
to use the public interface.
|
|
56
|
+
|
|
57
|
+
## For developers
|
|
58
|
+
|
|
59
|
+
For each language to be supported by a project template, the _languages_ directory contains a <language_name> entry. Currently C++ and Python are supported. Each language pack consists of three conceptual pieces:
|
|
60
|
+
|
|
61
|
+
**Project directory tree**
|
|
62
|
+
|
|
63
|
+
The canonical folder structure for open-source projects, with any standard, non-customizable files that are simply copied into a new project.
|
|
64
|
+
|
|
65
|
+
**Templates**:
|
|
66
|
+
|
|
67
|
+
Files within the folder structure that must be customized (e.g. with the project name) are stored as Jinja templates with a .j2 extension. These are rendered using default parameter values before being copied into a new project.
|
|
68
|
+
|
|
69
|
+
**manifest.toml**: provides parameters and indications of how files in the template repository should be used
|
|
70
|
+
|
|
71
|
+
The manifest is a complete description of every file that comprises a project scaffold. Its sections are:
|
|
72
|
+
* _static_: a list of files or directories to be copied directly
|
|
73
|
+
* _template_: a list of files that will be modified before copying
|
|
74
|
+
* _template-parameters_: a list of substitution parameters for the templates
|
|
75
|
+
* _deps_: a set of dictionaries describing submodule dependencies
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
TODO: Format of manifest, to/from options, extra keywords
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## Reference
|
|
82
|
+
|
|
83
|
+
Poetry and Helix -- how to bring the Helix editor into context with a Python app being developed
|
|
84
|
+
https://blog.jorisl.nl/helix_python_lsp/
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '1.0.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 0, 0)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|