geometry-generator 0.5.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.
Files changed (43) hide show
  1. geometry_generator-0.5.0/.github/workflows/docs.yml +52 -0
  2. geometry_generator-0.5.0/.github/workflows/package.yml +41 -0
  3. geometry_generator-0.5.0/.github/workflows/publish.yml +86 -0
  4. geometry_generator-0.5.0/.github/workflows/test.yml +45 -0
  5. geometry_generator-0.5.0/.gitignore +220 -0
  6. geometry_generator-0.5.0/LICENSE +674 -0
  7. geometry_generator-0.5.0/PKG-INFO +143 -0
  8. geometry_generator-0.5.0/README.md +111 -0
  9. geometry_generator-0.5.0/docs/index.md +22 -0
  10. geometry_generator-0.5.0/docs/installation.md +31 -0
  11. geometry_generator-0.5.0/mkdocs.yml +95 -0
  12. geometry_generator-0.5.0/pyproject.toml +66 -0
  13. geometry_generator-0.5.0/setup.cfg +4 -0
  14. geometry_generator-0.5.0/src/geometry_generator/__init__.py +34 -0
  15. geometry_generator-0.5.0/src/geometry_generator/blunted_tangent_ogive.py +362 -0
  16. geometry_generator-0.5.0/src/geometry_generator/blunted_wedge.py +291 -0
  17. geometry_generator-0.5.0/src/geometry_generator/cli/__init__.py +5 -0
  18. geometry_generator-0.5.0/src/geometry_generator/cli/app.py +58 -0
  19. geometry_generator-0.5.0/src/geometry_generator/cli/callbacks.py +39 -0
  20. geometry_generator-0.5.0/src/geometry_generator/cli/cmd_geometry.py +115 -0
  21. geometry_generator-0.5.0/src/geometry_generator/config/__init__.py +31 -0
  22. geometry_generator-0.5.0/src/geometry_generator/config/geometry.py +113 -0
  23. geometry_generator-0.5.0/src/geometry_generator/config/moldline.py +179 -0
  24. geometry_generator-0.5.0/src/geometry_generator/config/templates.py +159 -0
  25. geometry_generator-0.5.0/src/geometry_generator/moldline.py +103 -0
  26. geometry_generator-0.5.0/src/geometry_generator/profile.py +114 -0
  27. geometry_generator-0.5.0/src/geometry_generator/writers/__init__.py +74 -0
  28. geometry_generator-0.5.0/src/geometry_generator/writers/columns.py +57 -0
  29. geometry_generator-0.5.0/src/geometry_generator/writers/csv.py +46 -0
  30. geometry_generator-0.5.0/src/geometry_generator/writers/tecplot_ascii.py +59 -0
  31. geometry_generator-0.5.0/src/geometry_generator.egg-info/PKG-INFO +143 -0
  32. geometry_generator-0.5.0/src/geometry_generator.egg-info/SOURCES.txt +41 -0
  33. geometry_generator-0.5.0/src/geometry_generator.egg-info/dependency_links.txt +1 -0
  34. geometry_generator-0.5.0/src/geometry_generator.egg-info/entry_points.txt +2 -0
  35. geometry_generator-0.5.0/src/geometry_generator.egg-info/requires.txt +12 -0
  36. geometry_generator-0.5.0/src/geometry_generator.egg-info/scm_file_list.json +37 -0
  37. geometry_generator-0.5.0/src/geometry_generator.egg-info/scm_version.json +8 -0
  38. geometry_generator-0.5.0/src/geometry_generator.egg-info/top_level.txt +1 -0
  39. geometry_generator-0.5.0/tests/test_blunted_tangent_ogive.py +302 -0
  40. geometry_generator-0.5.0/tests/test_blunted_wedge.py +342 -0
  41. geometry_generator-0.5.0/tests/test_cli.py +343 -0
  42. geometry_generator-0.5.0/tests/test_moldline.py +85 -0
  43. geometry_generator-0.5.0/tests/test_writers.py +129 -0
@@ -0,0 +1,52 @@
1
+ # GPL-3.0-or-later - see LICENSE
2
+ name: Documentation
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+ pages: write
14
+ id-token: write
15
+
16
+ concurrency:
17
+ group: "pages"
18
+ cancel-in-progress: false
19
+
20
+ jobs:
21
+ build:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v6
28
+ with:
29
+ python-version: "3.11"
30
+
31
+ - name: Install dependencies
32
+ run: pip install -e ".[docs]"
33
+
34
+ - name: Build documentation
35
+ run: zensical build --strict
36
+
37
+ - name: Upload artifact
38
+ uses: actions/upload-pages-artifact@v5
39
+ with:
40
+ path: site
41
+
42
+ deploy:
43
+ if: github.ref == 'refs/heads/main'
44
+ needs: build
45
+ runs-on: ubuntu-latest
46
+ environment:
47
+ name: github-pages
48
+ url: ${{ steps.deployment.outputs.page_url }}
49
+ steps:
50
+ - name: Deploy to GitHub Pages
51
+ id: deployment
52
+ uses: actions/deploy-pages@v5
@@ -0,0 +1,41 @@
1
+ # GPL-3.0-or-later - see LICENSE
2
+ name: Package
3
+
4
+ on:
5
+ push:
6
+ branches: [main]
7
+ pull_request:
8
+ branches: [main]
9
+ workflow_dispatch:
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v6
16
+ with:
17
+ fetch-depth: 0
18
+
19
+ - uses: actions/setup-python@v6
20
+ with:
21
+ python-version: "3.11"
22
+
23
+ - name: Build distributions
24
+ run: |
25
+ python -m pip install build twine
26
+ python -m build
27
+ python -m twine check dist/*
28
+
29
+ - name: Smoke-test wheel
30
+ run: |
31
+ python -m venv "${RUNNER_TEMP}/wheel-test"
32
+ "${RUNNER_TEMP}/wheel-test/bin/python" -m pip install dist/*.whl
33
+ cd "${RUNNER_TEMP}"
34
+ "${RUNNER_TEMP}/wheel-test/bin/python" -c "import geometry_generator"
35
+ "${RUNNER_TEMP}/wheel-test/bin/geometry" --help
36
+
37
+ - name: Upload distributions
38
+ uses: actions/upload-artifact@v7
39
+ with:
40
+ name: distributions
41
+ path: dist/
@@ -0,0 +1,86 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
14
+ steps:
15
+ - uses: actions/checkout@v6
16
+
17
+ - name: Set up Python ${{ matrix.python-version }}
18
+ uses: actions/setup-python@v6
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+
22
+ - name: Install package
23
+ run: pip install -e ".[dev]"
24
+
25
+ - name: Lint with ruff
26
+ run: ruff check src/
27
+
28
+ - name: Run tests
29
+ run: pytest tests/
30
+
31
+ build:
32
+ needs: test
33
+ runs-on: ubuntu-latest
34
+ steps:
35
+ - uses: actions/checkout@v6
36
+
37
+ - name: Set up Python
38
+ uses: actions/setup-python@v6
39
+ with:
40
+ python-version: "3.11"
41
+
42
+ - name: Install build tools
43
+ run: pip install build
44
+
45
+ - name: Build package
46
+ run: python -m build
47
+
48
+ - name: Upload dist artifacts
49
+ uses: actions/upload-artifact@v7
50
+ with:
51
+ name: dist
52
+ path: dist/
53
+
54
+ publish:
55
+ needs: build
56
+ runs-on: ubuntu-latest
57
+ environment: pypi
58
+ permissions:
59
+ id-token: write # Required for Trusted Publishing
60
+
61
+ steps:
62
+ - name: Download dist artifacts
63
+ uses: actions/download-artifact@v8
64
+ with:
65
+ name: dist
66
+ path: dist/
67
+
68
+ - name: Publish to PyPI
69
+ uses: pypa/gh-action-pypi-publish@release/v1
70
+
71
+ release:
72
+ needs: publish
73
+ runs-on: ubuntu-latest
74
+ permissions:
75
+ contents: write
76
+ steps:
77
+ - uses: actions/checkout@v6
78
+ - name: Create GitHub Release (skip if it already exists)
79
+ run: |
80
+ if gh release view "${{ github.ref_name }}" >/dev/null 2>&1; then
81
+ echo "Release ${{ github.ref_name }} already exists; skipping."
82
+ else
83
+ gh release create "${{ github.ref_name }}" --generate-notes
84
+ fi
85
+ env:
86
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,45 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ python-version: ["3.11", "3.12", "3.13", "3.14"]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v6
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v6
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Install package
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ python -m pip install -e ".[dev]"
30
+
31
+ - name: Lint with ruff
32
+ if: matrix.python-version == '3.11'
33
+ run: ruff check src/
34
+
35
+ - name: Run tests with coverage
36
+ run: pytest --cov=geometry_generator --cov-report=xml -q
37
+
38
+ - name: Upload coverage to Codecov
39
+ if: matrix.python-version == '3.13'
40
+ uses: codecov/codecov-action@v6
41
+ with:
42
+ files: coverage.xml
43
+ token: "${{ secrets.CODECOV_TOKEN }}"
44
+ slug: hypersonic-aero/geometry-generator
45
+ fail_ci_if_error: false
@@ -0,0 +1,220 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
219
+
220
+ sandbox/