hex_renderer_py 0.1.10__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 (58) hide show
  1. hex_renderer_py-0.1.10/.github/workflows/CI.yml +187 -0
  2. hex_renderer_py-0.1.10/.github/workflows/page_docs.yml +59 -0
  3. hex_renderer_py-0.1.10/.gitignore +82 -0
  4. hex_renderer_py-0.1.10/.ipynb_checkpoints/Another_Test-checkpoint.ipynb +6 -0
  5. hex_renderer_py-0.1.10/.ipynb_checkpoints/Test-checkpoint.ipynb +198 -0
  6. hex_renderer_py-0.1.10/.ipynb_checkpoints/Untitled-checkpoint.ipynb +201 -0
  7. hex_renderer_py-0.1.10/Cargo.lock +347 -0
  8. hex_renderer_py-0.1.10/Cargo.toml +18 -0
  9. hex_renderer_py-0.1.10/LICENSE +21 -0
  10. hex_renderer_py-0.1.10/PKG-INFO +15 -0
  11. hex_renderer_py-0.1.10/README.md +23 -0
  12. hex_renderer_py-0.1.10/docs/Makefile +20 -0
  13. hex_renderer_py-0.1.10/docs/conf.py +30 -0
  14. hex_renderer_py-0.1.10/docs/index.rst +25 -0
  15. hex_renderer_py-0.1.10/docs/make.bat +35 -0
  16. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/Grid-checkpoint.ipynb +536 -0
  17. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/GridOptions-checkpoint.ipynb +290 -0
  18. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/Imports-checkpoint.ipynb +78 -0
  19. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/Palettes-checkpoint.ipynb +212 -0
  20. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/PatternVariant-checkpoint.ipynb +249 -0
  21. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/Test-checkpoint.ipynb +148 -0
  22. hex_renderer_py-0.1.10/docs/notebooks/.ipynb_checkpoints/Test2-checkpoint.ipynb +142 -0
  23. hex_renderer_py-0.1.10/docs/notebooks/Grid.ipynb +536 -0
  24. hex_renderer_py-0.1.10/docs/notebooks/GridOptions.ipynb +291 -0
  25. hex_renderer_py-0.1.10/docs/notebooks/Palettes.ipynb +212 -0
  26. hex_renderer_py-0.1.10/docs/notebooks/PatternVariant.ipynb +249 -0
  27. hex_renderer_py-0.1.10/flake.lock +27 -0
  28. hex_renderer_py-0.1.10/flake.nix +26 -0
  29. hex_renderer_py-0.1.10/hex_renderer_py/__init__.py +15 -0
  30. hex_renderer_py-0.1.10/hex_renderer_py/__init__.pyi +795 -0
  31. hex_renderer_py-0.1.10/hex_renderer_py/py.typed +0 -0
  32. hex_renderer_py-0.1.10/interface_macros/Cargo.lock +149 -0
  33. hex_renderer_py-0.1.10/interface_macros/Cargo.toml +11 -0
  34. hex_renderer_py-0.1.10/interface_macros/impl/Cargo.lock +47 -0
  35. hex_renderer_py-0.1.10/interface_macros/impl/Cargo.toml +13 -0
  36. hex_renderer_py-0.1.10/interface_macros/impl/src/lib.rs +155 -0
  37. hex_renderer_py-0.1.10/interface_macros/impl/src/py_gen.rs +870 -0
  38. hex_renderer_py-0.1.10/interface_macros/impl/src/py_type_gen.rs +580 -0
  39. hex_renderer_py-0.1.10/interface_macros/src/lib.rs +947 -0
  40. hex_renderer_py-0.1.10/pyproject.toml +29 -0
  41. hex_renderer_py-0.1.10/src/classes/angle_sig.rs +53 -0
  42. hex_renderer_py-0.1.10/src/classes/collision_option.rs +46 -0
  43. hex_renderer_py-0.1.10/src/classes/color.rs +27 -0
  44. hex_renderer_py-0.1.10/src/classes/end_point.rs +40 -0
  45. hex_renderer_py-0.1.10/src/classes/grid_options.rs +30 -0
  46. hex_renderer_py-0.1.10/src/classes/grid_pattern_options.rs +44 -0
  47. hex_renderer_py-0.1.10/src/classes/grids.rs +176 -0
  48. hex_renderer_py-0.1.10/src/classes/intersections.rs +41 -0
  49. hex_renderer_py-0.1.10/src/classes/lines.rs +59 -0
  50. hex_renderer_py-0.1.10/src/classes/marker.rs +22 -0
  51. hex_renderer_py-0.1.10/src/classes/mod.rs +27 -0
  52. hex_renderer_py-0.1.10/src/classes/overload_options.rs +41 -0
  53. hex_renderer_py-0.1.10/src/classes/pattern_variant.rs +97 -0
  54. hex_renderer_py-0.1.10/src/classes/point.rs +42 -0
  55. hex_renderer_py-0.1.10/src/classes/triangle.rs +50 -0
  56. hex_renderer_py-0.1.10/src/lib.rs +101 -0
  57. hex_renderer_py-0.1.10/test.py +87 -0
  58. hex_renderer_py-0.1.10/testing.py +27 -0
@@ -0,0 +1,187 @@
1
+ # This file is autogenerated by maturin v1.14.1
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ matrix:
26
+ platform:
27
+ - runner: ubuntu-22.04
28
+ target: x86_64
29
+ - runner: ubuntu-22.04
30
+ target: x86
31
+ - runner: ubuntu-22.04
32
+ target: aarch64
33
+ - runner: ubuntu-22.04
34
+ target: armv7
35
+ - runner: ubuntu-22.04
36
+ target: s390x
37
+ - runner: ubuntu-22.04
38
+ target: ppc64le
39
+ steps:
40
+ - uses: actions/checkout@v6
41
+ - uses: actions/setup-python@v6
42
+ with:
43
+ python-version: "3.10"
44
+ - name: Build wheels
45
+ uses: PyO3/maturin-action@v1
46
+ with:
47
+ target: ${{ matrix.platform.target }}
48
+ args: --release --out dist --find-interpreter
49
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
50
+ manylinux: auto
51
+ - name: Upload wheels
52
+ uses: actions/upload-artifact@v6
53
+ with:
54
+ name: wheels-linux-${{ matrix.platform.target }}
55
+ path: dist
56
+
57
+ musllinux:
58
+ runs-on: ${{ matrix.platform.runner }}
59
+ strategy:
60
+ matrix:
61
+ platform:
62
+ - runner: ubuntu-22.04
63
+ target: x86_64
64
+ - runner: ubuntu-22.04
65
+ target: x86
66
+ - runner: ubuntu-22.04
67
+ target: aarch64
68
+ - runner: ubuntu-22.04
69
+ target: armv7
70
+ steps:
71
+ - uses: actions/checkout@v6
72
+ - uses: actions/setup-python@v6
73
+ with:
74
+ python-version: "3.10"
75
+ - name: Build wheels
76
+ uses: PyO3/maturin-action@v1
77
+ with:
78
+ target: ${{ matrix.platform.target }}
79
+ args: --release --out dist --find-interpreter
80
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
81
+ manylinux: musllinux_1_2
82
+ - name: Upload wheels
83
+ uses: actions/upload-artifact@v6
84
+ with:
85
+ name: wheels-musllinux-${{ matrix.platform.target }}
86
+ path: dist
87
+
88
+ windows:
89
+ runs-on: ${{ matrix.platform.runner }}
90
+ strategy:
91
+ matrix:
92
+ platform:
93
+ - runner: windows-latest
94
+ target: x64
95
+ python_arch: x64
96
+ - runner: windows-latest
97
+ target: x86
98
+ python_arch: x86
99
+ - runner: windows-11-arm
100
+ target: aarch64
101
+ python_arch: arm64
102
+ steps:
103
+ - uses: actions/checkout@v6
104
+ - uses: actions/setup-python@v6
105
+ with:
106
+ python-version: "3.13"
107
+ architecture: ${{ matrix.platform.python_arch }}
108
+ - name: Build wheels
109
+ uses: PyO3/maturin-action@v1
110
+ with:
111
+ target: ${{ matrix.platform.target }}
112
+ args: --release --out dist --find-interpreter
113
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
114
+ - name: Upload wheels
115
+ uses: actions/upload-artifact@v6
116
+ with:
117
+ name: wheels-windows-${{ matrix.platform.target }}
118
+ path: dist
119
+
120
+ macos:
121
+ runs-on: ${{ matrix.platform.runner }}
122
+ strategy:
123
+ matrix:
124
+ platform:
125
+ - runner: macos-15-intel
126
+ target: x86_64
127
+ - runner: macos-latest
128
+ target: aarch64
129
+ steps:
130
+ - uses: actions/checkout@v6
131
+ - uses: actions/setup-python@v6
132
+ with:
133
+ python-version: "3.10"
134
+ - name: Build wheels
135
+ uses: PyO3/maturin-action@v1
136
+ with:
137
+ target: ${{ matrix.platform.target }}
138
+ args: --release --out dist --find-interpreter
139
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
140
+ - name: Upload wheels
141
+ uses: actions/upload-artifact@v6
142
+ with:
143
+ name: wheels-macos-${{ matrix.platform.target }}
144
+ path: dist
145
+
146
+ sdist:
147
+ runs-on: ubuntu-latest
148
+ steps:
149
+ - uses: actions/checkout@v6
150
+ - name: Build sdist
151
+ uses: PyO3/maturin-action@v1
152
+ with:
153
+ command: sdist
154
+ args: --out dist
155
+ - name: Upload sdist
156
+ uses: actions/upload-artifact@v6
157
+ with:
158
+ name: wheels-sdist
159
+ path: dist
160
+
161
+ release:
162
+ name: Release
163
+ environment: CI
164
+ runs-on: ubuntu-latest
165
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
166
+ needs: [linux, musllinux, windows, macos, sdist]
167
+ permissions:
168
+ # Use to sign the release artifacts
169
+ id-token: write
170
+ # Used to upload release artifacts
171
+ contents: write
172
+ # Used to generate artifact attestation
173
+ attestations: write
174
+ steps:
175
+ - uses: actions/download-artifact@v7
176
+ - name: Generate artifact attestation
177
+ uses: actions/attest@v4
178
+ with:
179
+ subject-path: 'wheels-*/*'
180
+ - name: Install uv
181
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
182
+ uses: astral-sh/setup-uv@v7
183
+ - name: Publish to PyPI
184
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
185
+ run: uv publish 'wheels-*/*'
186
+ env:
187
+ UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,59 @@
1
+ name: Deploy docs
2
+
3
+ on:
4
+ push:
5
+ branches: main
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-python@v4
16
+ with:
17
+ python-version: '3.11'
18
+
19
+ - name: Setup VirtualEnv
20
+ run: python -m venv venv
21
+
22
+ - name: Install Dependencies
23
+ run: |
24
+ source venv/bin/activate
25
+ pip install -e '.[dev]'
26
+
27
+ - name: Generate API Docs
28
+ run: cargo test
29
+
30
+ - name: Compile Renderer
31
+ run: |
32
+ source venv/bin/activate
33
+ pip install maturin
34
+ maturin develop --release
35
+
36
+ - name: Build Website
37
+ run: |
38
+ source venv/bin/activate
39
+ cd docs
40
+ make clean
41
+ make html
42
+
43
+ - name: Upload Pages artifact
44
+ uses: actions/upload-pages-artifact@v3
45
+ with:
46
+ path: docs/_build/html
47
+
48
+ deploy:
49
+ needs: build
50
+ runs-on: ubuntu-latest
51
+ permissions:
52
+ pages: write
53
+ id-token: write
54
+ environment:
55
+ name: github-pages
56
+ url: ${{ steps.deploy-pages.outputs.page_url }}
57
+ steps:
58
+ - id: deploy-pages
59
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,82 @@
1
+ /target
2
+ /**/target/
3
+
4
+ # Byte-compiled / optimized / DLL files
5
+ __pycache__/
6
+ .pytest_cache/
7
+ *.py[cod]
8
+
9
+ # C extensions
10
+ *.so
11
+
12
+ # Distribution / packaging
13
+ .Python
14
+ .venv/
15
+ env/
16
+ bin/
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ include/
27
+ man/
28
+ venv/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+ pip-selfcheck.json
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+
46
+ # Translations
47
+ *.mo
48
+
49
+ # Mr Developer
50
+ .mr.developer.cfg
51
+ .project
52
+ .pydevproject
53
+
54
+ # Rope
55
+ .ropeproject
56
+
57
+ # Django stuff:
58
+ *.log
59
+ *.pot
60
+
61
+ .DS_Store
62
+
63
+ # Sphinx documentation
64
+ docs/_build/
65
+
66
+ # PyCharm
67
+ .idea/
68
+
69
+ # VSCode
70
+ .vscode/
71
+
72
+ # Pyenv
73
+ .python-version
74
+
75
+ #custom
76
+ testing/
77
+ docs/autodoc
78
+ key
79
+ .env
80
+
81
+ .envrc
82
+ .direnv
@@ -0,0 +1,6 @@
1
+ {
2
+ "cells": [],
3
+ "metadata": {},
4
+ "nbformat": 4,
5
+ "nbformat_minor": 5
6
+ }