surfmesh 0.2.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 (38) hide show
  1. surfmesh-0.2.0/.github/workflows/python-package.yml +45 -0
  2. surfmesh-0.2.0/.github/workflows/python-publish.yml +70 -0
  3. surfmesh-0.2.0/.gitignore +142 -0
  4. surfmesh-0.2.0/LICENSE.txt +21 -0
  5. surfmesh-0.2.0/PKG-INFO +492 -0
  6. surfmesh-0.2.0/README.md +474 -0
  7. surfmesh-0.2.0/README_files/README_11_1.png +0 -0
  8. surfmesh-0.2.0/README_files/README_13_0.png +0 -0
  9. surfmesh-0.2.0/README_files/README_15_0.png +0 -0
  10. surfmesh-0.2.0/README_files/README_17_1.png +0 -0
  11. surfmesh-0.2.0/README_files/README_19_1.png +0 -0
  12. surfmesh-0.2.0/README_files/README_21_1.png +0 -0
  13. surfmesh-0.2.0/README_files/README_23_1.png +0 -0
  14. surfmesh-0.2.0/README_files/README_3_1.png +0 -0
  15. surfmesh-0.2.0/README_files/README_5_1.png +0 -0
  16. surfmesh-0.2.0/README_files/README_7_1.png +0 -0
  17. surfmesh-0.2.0/README_files/README_9_1.png +0 -0
  18. surfmesh-0.2.0/examples/README.ipynb +732 -0
  19. surfmesh-0.2.0/examples/cuboid.ipynb +257 -0
  20. surfmesh-0.2.0/examples/disk.ipynb +238 -0
  21. surfmesh-0.2.0/examples/edge.ipynb +311 -0
  22. surfmesh-0.2.0/pyproject.toml +67 -0
  23. surfmesh-0.2.0/pytest.ini +7 -0
  24. surfmesh-0.2.0/requirements.txt +1 -0
  25. surfmesh-0.2.0/src/surfmesh/__init__.py +24 -0
  26. surfmesh-0.2.0/src/surfmesh/cuboid.py +139 -0
  27. surfmesh-0.2.0/src/surfmesh/cylinder.py +152 -0
  28. surfmesh-0.2.0/src/surfmesh/disk.py +163 -0
  29. surfmesh-0.2.0/src/surfmesh/edge.py +186 -0
  30. surfmesh-0.2.0/src/surfmesh/revolve.py +127 -0
  31. surfmesh-0.2.0/src/surfmesh/sphere.py +97 -0
  32. surfmesh-0.2.0/tests/test_cuboid.py +95 -0
  33. surfmesh-0.2.0/tests/test_cylinder.py +125 -0
  34. surfmesh-0.2.0/tests/test_disk.py +105 -0
  35. surfmesh-0.2.0/tests/test_edge.py +101 -0
  36. surfmesh-0.2.0/tests/test_revolve.py +90 -0
  37. surfmesh-0.2.0/tests/test_sphere.py +106 -0
  38. surfmesh-0.2.0/uv.lock +2155 -0
@@ -0,0 +1,45 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Python package
5
+
6
+ on:
7
+ push:
8
+ branches: [ "master" ]
9
+ pull_request:
10
+ branches: [ "master" ]
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v3
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ python -m pip install "coverage<7.0" flake8 pytest pytest-cov coveralls
31
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32
+ - name: Lint with flake8
33
+ run: |
34
+ # stop the build if there are Python syntax errors or undefined names
35
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
38
+ - name: Test with pytest
39
+ run: |
40
+ pytest
41
+ coverage xml
42
+ - name: Upload coverage to Coveralls
43
+ run: coveralls
44
+ env:
45
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,70 @@
1
+ # This workflow will upload a Python Package to PyPI when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3
+
4
+ # This workflow uses actions that are not certified by GitHub.
5
+ # They are provided by a third-party and are governed by
6
+ # separate terms of service, privacy policy, and support
7
+ # documentation.
8
+
9
+ name: Upload Python Package
10
+
11
+ on:
12
+ release:
13
+ types: [published]
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ release-build:
20
+ runs-on: ubuntu-latest
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - uses: actions/setup-python@v5
26
+ with:
27
+ python-version: "3.x"
28
+
29
+ - name: Build release distributions
30
+ run: |
31
+ # NOTE: put your own distribution build steps here.
32
+ python -m pip install build
33
+ python -m build
34
+
35
+ - name: Upload distributions
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: release-dists
39
+ path: dist/
40
+
41
+ pypi-publish:
42
+ runs-on: ubuntu-latest
43
+ needs:
44
+ - release-build
45
+ permissions:
46
+ # IMPORTANT: this permission is mandatory for trusted publishing
47
+ id-token: write
48
+
49
+ # Dedicated environments with protections for publishing are strongly recommended.
50
+ # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
+ environment:
52
+ name: pypi
53
+ # OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
+ url: https://pypi.org/p/surfmesh
55
+ #
56
+ # ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
+ # ALTERNATIVE: exactly, uncomment the following line instead:
58
+ # url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59
+
60
+ steps:
61
+ - name: Retrieve release distributions
62
+ uses: actions/download-artifact@v4
63
+ with:
64
+ name: release-dists
65
+ path: dist/
66
+
67
+ - name: Publish release distributions to PyPI
68
+ uses: pypa/gh-action-pypi-publish@release/v1
69
+ with:
70
+ packages-dir: dist/
@@ -0,0 +1,142 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+
5
+ # Virtual environments
6
+ .venv
7
+ env/
8
+ venv/
9
+ ENV/
10
+ env.bak/
11
+ venv.bak/
12
+
13
+ # Byte-compiled / optimized / DLL files
14
+ *.py[cod]
15
+ *$py.class
16
+
17
+ # C extensions
18
+ *.so
19
+
20
+ # Distribution / packaging
21
+ .Python
22
+ build/
23
+ dist/
24
+ wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .nox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ *.py,cover
49
+ .hypothesis/
50
+ .pytest_cache/
51
+ cover/
52
+
53
+ # Translations
54
+ *.mo
55
+ *.pot
56
+
57
+ # Django stuff:
58
+ *.log
59
+ local_settings.py
60
+ db.sqlite3
61
+ db.sqlite3-journal
62
+
63
+ # Flask stuff:
64
+ instance/
65
+ .webassets-cache
66
+
67
+ # Scrapy stuff:
68
+ .scrapy
69
+
70
+ # Sphinx documentation
71
+ docs/_build/
72
+
73
+ # PyBuilder
74
+ .pybuilder/
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ #Pipfile.lock
89
+
90
+ # UV
91
+ #uv.lock
92
+
93
+ # poetry
94
+ #poetry.lock
95
+
96
+ # pdm
97
+ .pdm.toml
98
+ .pdm-python
99
+ .pdm-build/
100
+
101
+ # PEP 582
102
+ __pypackages__/
103
+
104
+ # Celery stuff
105
+ celerybeat-schedule
106
+ celerybeat.pid
107
+
108
+ # SageMath parsed files
109
+ *.sage.py
110
+
111
+ # Spyder project settings
112
+ .spyderproject
113
+ .spyproject
114
+
115
+ # Rope project settings
116
+ .ropeproject
117
+
118
+ # mkdocs documentation
119
+ /site
120
+
121
+ # mypy
122
+ .mypy_cache/
123
+ .dmypy.json
124
+ dmypy.json
125
+
126
+ # Pyre type checker
127
+ .pyre/
128
+
129
+ # pytype static type analyzer
130
+ .pytype/
131
+
132
+ # Cython debug symbols
133
+ cython_debug/
134
+
135
+ # PyPI configuration file
136
+ .pypirc
137
+
138
+ # Custom extensions
139
+ *.gdf
140
+
141
+ # VSCode settings
142
+ .vscode/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaitanya Kesanapalli
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.