pyroid 0.6.0__tar.gz → 0.7.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 (206) hide show
  1. {pyroid-0.6.0 → pyroid-0.7.0}/.github/workflows/publish.yml +43 -2
  2. pyroid-0.7.0/.github/workflows/tests.yml +72 -0
  3. {pyroid-0.6.0 → pyroid-0.7.0}/Cargo.lock +1 -1
  4. {pyroid-0.6.0 → pyroid-0.7.0}/Cargo.toml +1 -1
  5. {pyroid-0.6.0 → pyroid-0.7.0}/PKG-INFO +1 -1
  6. pyroid-0.7.0/ci-requirements.txt +4 -0
  7. pyroid-0.7.0/docs/github_actions_workflow.md +65 -0
  8. {pyroid-0.6.0 → pyroid-0.7.0}/docs/rust_tests.md +11 -0
  9. pyroid-0.7.0/pyproject.toml +42 -0
  10. {pyroid-0.6.0 → pyroid-0.7.0}/setup.py +1 -1
  11. pyroid-0.6.0/.github/workflows/semantic-release.yml +0 -121
  12. pyroid-0.6.0/.github/workflows/tests.yml +0 -49
  13. pyroid-0.6.0/pyproject.toml +0 -81
  14. {pyroid-0.6.0 → pyroid-0.7.0}/.gitignore +0 -0
  15. {pyroid-0.6.0 → pyroid-0.7.0}/README.md +0 -0
  16. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/README.md +0 -0
  17. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/__init__.py +0 -0
  18. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/core/__init__.py +0 -0
  19. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/core/benchmark.py +0 -0
  20. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/core/reporter.py +0 -0
  21. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/core/visualizer.py +0 -0
  22. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/dashboard.html +0 -0
  23. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/implementation_comparison_linear.html +0 -0
  24. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/implementation_comparison_linear.png +0 -0
  25. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/implementation_comparison_log.html +0 -0
  26. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/implementation_comparison_log.png +0 -0
  27. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/performance_metrics.html +0 -0
  28. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/performance_metrics.png +0 -0
  29. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/real_world_scenarios.html +0 -0
  30. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/real_world_scenarios.png +0 -0
  31. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_base.html +0 -0
  32. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_base.png +0 -0
  33. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_filter.html +0 -0
  34. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_filter.png +0 -0
  35. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_map.html +0 -0
  36. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_map.png +0 -0
  37. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_matrix_multiply.html +0 -0
  38. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_matrix_multiply.png +0 -0
  39. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_mean.html +0 -0
  40. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_mean.png +0 -0
  41. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_reduce.html +0 -0
  42. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_reduce.png +0 -0
  43. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_regex_replace.html +0 -0
  44. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_regex_replace.png +0 -0
  45. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_sort.html +0 -0
  46. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_sort.png +0 -0
  47. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_std.html +0 -0
  48. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_std.png +0 -0
  49. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_sum.html +0 -0
  50. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_sum.png +0 -0
  51. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_text_cleanup.html +0 -0
  52. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/scaling_text_cleanup.png +0 -0
  53. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/speedup_comparison.html +0 -0
  54. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/dashboard/images/speedup_comparison.png +0 -0
  55. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/demo.py +0 -0
  56. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/results/results.json +0 -0
  57. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/results/results.md +0 -0
  58. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/run_benchmarks.py +0 -0
  59. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/__init__.py +0 -0
  60. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/async_benchmarks.py +0 -0
  61. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/data_benchmarks.py +0 -0
  62. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/math_benchmarks.py +0 -0
  63. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/__init__.py +0 -0
  64. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/data_pipeline.py +0 -0
  65. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/high_throughput.py +0 -0
  66. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/scientific_computing.py +0 -0
  67. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/text_processing.py +0 -0
  68. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/scenarios/web_scraping.py +0 -0
  69. {pyroid-0.6.0 → pyroid-0.7.0}/benchmarks/suites/string_benchmarks.py +0 -0
  70. {pyroid-0.6.0 → pyroid-0.7.0}/build.rs +0 -0
  71. {pyroid-0.6.0 → pyroid-0.7.0}/build_and_install.py +0 -0
  72. {pyroid-0.6.0 → pyroid-0.7.0}/dev-requirements.txt +0 -0
  73. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/dataframe_ops.md +0 -0
  74. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/image_ops.md +0 -0
  75. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/index.md +0 -0
  76. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/io_ops.md +0 -0
  77. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/ml_ops.md +0 -0
  78. {pyroid-0.6.0 → pyroid-0.7.0}/docs/api/text_nlp_ops.md +0 -0
  79. {pyroid-0.6.0 → pyroid-0.7.0}/docs/guides/getting_started.md +0 -0
  80. {pyroid-0.6.0 → pyroid-0.7.0}/docs/guides/index.md +0 -0
  81. {pyroid-0.6.0 → pyroid-0.7.0}/docs/guides/performance.md +0 -0
  82. {pyroid-0.6.0 → pyroid-0.7.0}/docs/index.md +0 -0
  83. {pyroid-0.6.0 → pyroid-0.7.0}/docs/performance_comparison.md +0 -0
  84. {pyroid-0.6.0 → pyroid-0.7.0}/examples/async_examples.py +0 -0
  85. {pyroid-0.6.0 → pyroid-0.7.0}/examples/data_examples.py +0 -0
  86. {pyroid-0.6.0 → pyroid-0.7.0}/examples/dataframe_examples.py +0 -0
  87. {pyroid-0.6.0 → pyroid-0.7.0}/examples/image_examples.py +0 -0
  88. {pyroid-0.6.0 → pyroid-0.7.0}/examples/io_examples.py +0 -0
  89. {pyroid-0.6.0 → pyroid-0.7.0}/examples/math_examples.py +0 -0
  90. {pyroid-0.6.0 → pyroid-0.7.0}/examples/ml_examples.py +0 -0
  91. {pyroid-0.6.0 → pyroid-0.7.0}/examples/optimized_async_example.py +0 -0
  92. {pyroid-0.6.0 → pyroid-0.7.0}/examples/requirements.txt +0 -0
  93. {pyroid-0.6.0 → pyroid-0.7.0}/examples/string_examples.py +0 -0
  94. {pyroid-0.6.0 → pyroid-0.7.0}/examples/test_async_file.txt +0 -0
  95. {pyroid-0.6.0 → pyroid-0.7.0}/examples/text_nlp_examples.py +0 -0
  96. {pyroid-0.6.0 → pyroid-0.7.0}/python/__init__.py +0 -0
  97. {pyroid-0.6.0 → pyroid-0.7.0}/python/benchmark_dataframe.py +0 -0
  98. {pyroid-0.6.0 → pyroid-0.7.0}/python/benchmark_rust_vs_python.py +0 -0
  99. {pyroid-0.6.0 → pyroid-0.7.0}/python/check_implementation.py +0 -0
  100. {pyroid-0.6.0 → pyroid-0.7.0}/python/example.py +0 -0
  101. {pyroid-0.6.0 → pyroid-0.7.0}/python/expected_rust_performance.py +0 -0
  102. {pyroid-0.6.0 → pyroid-0.7.0}/python/inspect_module.py +0 -0
  103. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/__init__.py +0 -0
  104. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/async_bridge.py +0 -0
  105. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/async_helpers.py +0 -0
  106. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/async_impl.py +0 -0
  107. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/async_ops.py +0 -0
  108. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core/__init__.py +0 -0
  109. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core/buffer.py +0 -0
  110. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core/parallel.py +0 -0
  111. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core/runtime.py +0 -0
  112. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core.py +0 -0
  113. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/core_impl.py +0 -0
  114. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/data/__init__.py +0 -0
  115. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/data.py +0 -0
  116. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/data_impl.py +0 -0
  117. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/image/__init__.py +0 -0
  118. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/image/basic/__init__.py +0 -0
  119. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/image.py +0 -0
  120. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/image_impl.py +0 -0
  121. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/io/__init__.py +0 -0
  122. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/io.py +0 -0
  123. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/io_impl.py +0 -0
  124. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/math/__init__.py +0 -0
  125. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/math/stats.py +0 -0
  126. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/math.py +0 -0
  127. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/math_impl.py +0 -0
  128. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/ml/__init__.py +0 -0
  129. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/ml/basic/__init__.py +0 -0
  130. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/ml.py +0 -0
  131. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/ml_impl.py +0 -0
  132. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/string/__init__.py +0 -0
  133. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/text/__init__.py +0 -0
  134. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/text.py +0 -0
  135. {pyroid-0.6.0 → pyroid-0.7.0}/python/pyroid/text_impl.py +0 -0
  136. {pyroid-0.6.0 → pyroid-0.7.0}/python/run_tests.py +0 -0
  137. {pyroid-0.6.0 → pyroid-0.7.0}/python/test_import.py +0 -0
  138. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/__init__.py +0 -0
  139. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_async.py +0 -0
  140. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_async_impl.py +0 -0
  141. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_basic.py +0 -0
  142. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_core.py +0 -0
  143. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_data.py +0 -0
  144. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_data_impl.py +0 -0
  145. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_image.py +0 -0
  146. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_image_impl.py +0 -0
  147. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_io.py +0 -0
  148. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_io_impl.py +0 -0
  149. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_math.py +0 -0
  150. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_math_impl.py +0 -0
  151. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_ml.py +0 -0
  152. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_ml_impl.py +0 -0
  153. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_python_impl.py +0 -0
  154. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_text.py +0 -0
  155. {pyroid-0.6.0 → pyroid-0.7.0}/python/tests/test_text_impl.py +0 -0
  156. {pyroid-0.6.0 → pyroid-0.7.0}/src/async_ops.rs +0 -0
  157. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/buffer.rs +0 -0
  158. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/config.rs +0 -0
  159. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/conversion.rs +0 -0
  160. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/error.rs +0 -0
  161. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/mod.rs +0 -0
  162. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/parallel.rs +0 -0
  163. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/runtime.rs +0 -0
  164. {pyroid-0.6.0 → pyroid-0.7.0}/src/core/types.rs +0 -0
  165. {pyroid-0.6.0 → pyroid-0.7.0}/src/data/collections.rs +0 -0
  166. {pyroid-0.6.0 → pyroid-0.7.0}/src/data/dataframe.rs +0 -0
  167. {pyroid-0.6.0 → pyroid-0.7.0}/src/data/mod.rs +0 -0
  168. {pyroid-0.6.0 → pyroid-0.7.0}/src/data_ops.rs +0 -0
  169. {pyroid-0.6.0 → pyroid-0.7.0}/src/dataframe_ops.rs +0 -0
  170. {pyroid-0.6.0 → pyroid-0.7.0}/src/image/basic.rs +0 -0
  171. {pyroid-0.6.0 → pyroid-0.7.0}/src/image/mod.rs +0 -0
  172. {pyroid-0.6.0 → pyroid-0.7.0}/src/image_ops.rs +0 -0
  173. {pyroid-0.6.0 → pyroid-0.7.0}/src/io/async_io.rs +0 -0
  174. {pyroid-0.6.0 → pyroid-0.7.0}/src/io/file.rs +0 -0
  175. {pyroid-0.6.0 → pyroid-0.7.0}/src/io/mod.rs +0 -0
  176. {pyroid-0.6.0 → pyroid-0.7.0}/src/io/network.rs +0 -0
  177. {pyroid-0.6.0 → pyroid-0.7.0}/src/io_ops.rs +0 -0
  178. {pyroid-0.6.0 → pyroid-0.7.0}/src/lib.rs +0 -0
  179. {pyroid-0.6.0 → pyroid-0.7.0}/src/math/matrix.rs +0 -0
  180. {pyroid-0.6.0 → pyroid-0.7.0}/src/math/mod.rs +0 -0
  181. {pyroid-0.6.0 → pyroid-0.7.0}/src/math/stats.rs +0 -0
  182. {pyroid-0.6.0 → pyroid-0.7.0}/src/math/vector.rs +0 -0
  183. {pyroid-0.6.0 → pyroid-0.7.0}/src/math_ops.rs +0 -0
  184. {pyroid-0.6.0 → pyroid-0.7.0}/src/ml/basic.rs +0 -0
  185. {pyroid-0.6.0 → pyroid-0.7.0}/src/ml/mod.rs +0 -0
  186. {pyroid-0.6.0 → pyroid-0.7.0}/src/ml_ops.rs +0 -0
  187. {pyroid-0.6.0 → pyroid-0.7.0}/src/string_ops.rs +0 -0
  188. {pyroid-0.6.0 → pyroid-0.7.0}/src/text/mod.rs +0 -0
  189. {pyroid-0.6.0 → pyroid-0.7.0}/src/text_nlp_ops.rs +0 -0
  190. {pyroid-0.6.0 → pyroid-0.7.0}/src/utils/conversions.rs +0 -0
  191. {pyroid-0.6.0 → pyroid-0.7.0}/src/utils/mod.rs +0 -0
  192. {pyroid-0.6.0 → pyroid-0.7.0}/test_async_file.txt +0 -0
  193. {pyroid-0.6.0 → pyroid-0.7.0}/test_pyroid.py +0 -0
  194. {pyroid-0.6.0 → pyroid-0.7.0}/tests/common/mod.rs +0 -0
  195. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_core.rs +0 -0
  196. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_data.rs +0 -0
  197. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_math.rs +0 -0
  198. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_ml.rs +0 -0
  199. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_core.rs +0 -0
  200. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_data.rs +0 -0
  201. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_image.rs +0 -0
  202. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_impl.rs +0 -0
  203. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_io.rs +0 -0
  204. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_math.rs +0 -0
  205. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_rust_text.rs +0 -0
  206. {pyroid-0.6.0 → pyroid-0.7.0}/tests/test_text.rs +0 -0
@@ -4,8 +4,6 @@ on:
4
4
  push:
5
5
  tags:
6
6
  - "v*"
7
- repository_dispatch:
8
- types: [publish-pypi]
9
7
  workflow_dispatch:
10
8
  inputs:
11
9
  version:
@@ -119,6 +117,49 @@ jobs:
119
117
  runs-on: ubuntu-latest
120
118
  needs: [linux, windows, macos, sdist]
121
119
  steps:
120
+ - uses: actions/checkout@v4
121
+
122
+ - name: Extract version from tag
123
+ id: get_version
124
+ run: |
125
+ # Extract version from tag (remove 'v' prefix)
126
+ if [[ $GITHUB_REF == refs/tags/v* ]]; then
127
+ VERSION=${GITHUB_REF#refs/tags/v}
128
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
129
+ echo "Extracted version: $VERSION from tag"
130
+ elif [[ -n "${{ github.event.inputs.version }}" ]]; then
131
+ VERSION=${{ github.event.inputs.version }}
132
+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
133
+ echo "Using manually provided version: $VERSION"
134
+ else
135
+ echo "No version found in tag or inputs"
136
+ exit 1
137
+ fi
138
+
139
+ - name: Update version in files
140
+ run: |
141
+ VERSION="${{ steps.get_version.outputs.VERSION }}"
142
+ echo "Updating version to $VERSION in all files"
143
+
144
+ # Update pyproject.toml
145
+ sed -i "s/^version = \"[0-9]*\.[0-9]*\.[0-9]*\"/version = \"$VERSION\"/" pyproject.toml
146
+
147
+ # Update Cargo.toml
148
+ sed -i "s/^version = \"[0-9]*\.[0-9]*\.[0-9]*\"/version = \"$VERSION\"/" Cargo.toml
149
+
150
+ # Update python/pyroid/__init__.py
151
+ sed -i "s/__version__ = \"[0-9]*\.[0-9]*\.[0-9]*\"/__version__ = \"$VERSION\"/" python/pyroid/__init__.py
152
+
153
+ # Update setup.py
154
+ sed -i "s/version=\"[0-9]*\.[0-9]*\.[0-9]*\"/version=\"$VERSION\"/" setup.py
155
+
156
+ # Verify updates
157
+ echo "Updated versions:"
158
+ echo "pyproject.toml: $(grep -m 1 "version" pyproject.toml)"
159
+ echo "Cargo.toml: $(grep -m 1 "version" Cargo.toml)"
160
+ echo "python/pyroid/__init__.py: $(grep -m 1 "__version__" python/pyroid/__init__.py)"
161
+ echo "setup.py: $(grep -m 1 "version" setup.py)"
162
+
122
163
  - uses: actions/download-artifact@v4
123
164
  with:
124
165
  merge-multiple: true
@@ -0,0 +1,72 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ branches: [ main ]
7
+
8
+ jobs:
9
+ rust-tests:
10
+ name: Rust Tests on ${{ matrix.os }}
11
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest, macos-latest]
15
+
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+
19
+ - name: Set up Rust
20
+ uses: actions-rs/toolchain@v1
21
+ with:
22
+ toolchain: stable
23
+ profile: minimal
24
+ override: true
25
+
26
+ - name: Install Rust dependencies
27
+ run: |
28
+ cargo --version
29
+
30
+ # Install additional dependencies if needed
31
+ if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
32
+ sudo apt-get update
33
+ sudo apt-get install -y libssl-dev
34
+ fi
35
+
36
+ - name: Run Rust tests
37
+ run: |
38
+ # Run all Rust tests with verbose output
39
+ cargo test --test test_rust_* -- --nocapture
40
+
41
+ # If any test fails, print more detailed information
42
+ if [ $? -ne 0 ]; then
43
+ echo "Rust tests failed. Running with backtrace enabled..."
44
+ RUST_BACKTRACE=1 cargo test --test test_rust_*
45
+ exit 1
46
+ fi
47
+
48
+ python-tests:
49
+ name: Python Tests on ${{ matrix.os }}
50
+ runs-on: ${{ matrix.os }}
51
+ strategy:
52
+ matrix:
53
+ os: [ubuntu-latest]
54
+ python-version: ['3.11']
55
+
56
+ steps:
57
+ - uses: actions/checkout@v3
58
+
59
+ - name: Set up Python ${{ matrix.python-version }}
60
+ uses: actions/setup-python@v4
61
+ with:
62
+ python-version: ${{ matrix.python-version }}
63
+
64
+ - name: Install dependencies
65
+ run: |
66
+ python -m pip install --upgrade pip
67
+ pip install pytest numpy
68
+
69
+ - name: Run Python implementation tests
70
+ run: |
71
+ # Run only the implementation tests that don't require the Rust extension
72
+ pytest python/tests/test_*_impl.py -v
@@ -1139,7 +1139,7 @@ dependencies = [
1139
1139
 
1140
1140
  [[package]]
1141
1141
  name = "pyroid"
1142
- version = "0.6.0"
1142
+ version = "0.7.0"
1143
1143
  dependencies = [
1144
1144
  "base64",
1145
1145
  "criterion",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "pyroid"
3
- version = "0.6.0"
3
+ version = "0.7.0"
4
4
  edition = "2021"
5
5
  authors = ["Andrew O", "Pyroid Team"]
6
6
  description = "High-performance Rust functions for Python"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyroid
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: 3.8
6
6
  Classifier: Programming Language :: Python :: 3.9
@@ -0,0 +1,4 @@
1
+ # Minimal requirements for CI testing
2
+ pytest>=7.0.0
3
+ numpy>=1.20.0
4
+ maturin>=1.0.0 # For building Rust extensions
@@ -0,0 +1,65 @@
1
+ # GitHub Actions Workflow Documentation
2
+
3
+ ## Overview
4
+
5
+ This document describes the GitHub Actions workflow for the Pyroid project. The workflow is designed to automate testing and publishing of the package.
6
+
7
+ ## Workflow Components
8
+
9
+ ### 1. Tests Workflow (tests.yml)
10
+
11
+ The tests workflow runs automated tests to ensure code quality and functionality.
12
+
13
+ **Triggers:**
14
+ - Push to any branch
15
+ - Pull requests to main branch
16
+
17
+ **Jobs:**
18
+ - **rust-tests**: Runs Rust tests on Ubuntu, Windows, and macOS
19
+ - **python-tests**: Runs Python implementation tests on Ubuntu
20
+
21
+ ### 2. Publish Workflow (publish.yml)
22
+
23
+ The publish workflow builds and publishes the package to PyPI when a new version is tagged.
24
+
25
+ **Triggers:**
26
+ - Push of tags matching the pattern "v*" (e.g., v0.1.0, v1.2.3)
27
+ - Manual workflow dispatch with version input
28
+
29
+ **Jobs:**
30
+ - **linux**: Builds wheels for Linux
31
+ - **windows**: Builds wheels for Windows
32
+ - **macos**: Builds wheels for macOS (x86_64 and aarch64)
33
+ - **sdist**: Builds source distribution
34
+ - **release**: Collects all artifacts and publishes to PyPI
35
+
36
+ **Version Management:**
37
+ - The version is extracted from the tag name (removing the 'v' prefix)
38
+ - The extracted version is used to update version strings in:
39
+ - pyproject.toml
40
+ - Cargo.toml
41
+ - python/pyroid/__init__.py
42
+ - setup.py
43
+
44
+ ## Release Process
45
+
46
+ To release a new version:
47
+
48
+ 1. Ensure all changes are committed and pushed to the main branch
49
+ 2. Create and push a new tag with the desired version:
50
+ ```
51
+ git tag v1.2.3
52
+ git push origin v1.2.3
53
+ ```
54
+ 3. The publish workflow will automatically:
55
+ - Extract the version from the tag (1.2.3)
56
+ - Update version strings in all relevant files
57
+ - Build wheels for all supported platforms
58
+ - Publish the package to PyPI
59
+
60
+ ## Benefits of This Approach
61
+
62
+ 1. **Simplicity**: The release process is straightforward and easy to understand
63
+ 2. **Manual Control**: Releases are explicitly triggered by creating tags
64
+ 3. **Consistency**: The version is always derived from the tag name
65
+ 4. **Quality Assurance**: Tests run on every push to ensure code quality
@@ -64,6 +64,17 @@ To see more detailed output, including output from passing tests:
64
64
  cargo test --test test_rust_* -- --nocapture
65
65
  ```
66
66
 
67
+ ### Continuous Integration
68
+
69
+ The tests are automatically run on GitHub Actions for every push and pull request:
70
+
71
+ 1. **Rust Tests**: Run on multiple operating systems (Ubuntu, Windows, and macOS) to ensure cross-platform compatibility.
72
+ 2. **Python Tests**: Run the Python implementation tests that don't require the Rust extension.
73
+
74
+ You can see the status of the tests in the badge at the top of the README.md file.
75
+
76
+ The GitHub Actions workflow is defined in `.github/workflows/tests.yml`.
77
+
67
78
  ## Test Modules
68
79
 
69
80
  ### Core Tests (`test_rust_core.rs`)
@@ -0,0 +1,42 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.0,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "pyroid"
7
+ version = "0.7.0"
8
+ description = "High-performance Rust functions for Python with a simplified architecture"
9
+ authors = [{ name = "Pyroid Team", email = "support@ataiva.com" }]
10
+ readme = "README.md"
11
+ requires-python = ">=3.8"
12
+ classifiers = [
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.8",
15
+ "Programming Language :: Python :: 3.9",
16
+ "Programming Language :: Python :: 3.10",
17
+ "Programming Language :: Python :: 3.11",
18
+ "Programming Language :: Rust",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Operating System :: OS Independent",
21
+ "Development Status :: 3 - Alpha",
22
+ "Intended Audience :: Developers",
23
+ "Topic :: Software Development :: Libraries :: Python Modules",
24
+ ]
25
+
26
+ [project.urls]
27
+ "Homepage" = "https://github.com/ao/pyroid"
28
+ "Bug Tracker" = "https://github.com/ao/pyroid/issues"
29
+ "Documentation" = "https://github.com/ao/pyroid/blob/main/README.md"
30
+
31
+ [tool.maturin]
32
+ python-source = "python"
33
+ features = [
34
+ "pyo3/extension-module",
35
+ "math",
36
+ "text",
37
+ "data",
38
+ "io",
39
+ "image",
40
+ "ml",
41
+ ]
42
+
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name="pyroid",
5
- version="0.6.0",
5
+ version="0.7.0",
6
6
  description="High-performance Rust functions for Python",
7
7
  long_description=open("README.md").read(),
8
8
  long_description_content_type="text/markdown",
@@ -1,121 +0,0 @@
1
- name: Semantic Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- # Add permissions to allow pushing to the repository and creating tags
9
- permissions:
10
- contents: write # Required for creating tags and releases
11
- pull-requests: write
12
- issues: write
13
- id-token: write # Required for some authentication scenarios
14
-
15
- jobs:
16
- release:
17
- runs-on: ubuntu-latest
18
- concurrency: release
19
- steps:
20
- - uses: actions/checkout@v4
21
- with:
22
- fetch-depth: 0
23
-
24
- - name: Install Rust
25
- uses: dtolnay/rust-toolchain@stable
26
-
27
- - name: Set up Python
28
- uses: actions/setup-python@v5
29
- with:
30
- python-version: '3.x'
31
-
32
- - name: Install dependencies
33
- run: |
34
- python -m pip install --upgrade pip
35
- pip install python-semantic-release
36
-
37
- - name: Semantic Release
38
- id: semantic
39
- run: |
40
- # Print the current version
41
- echo "Current version in pyproject.toml:"
42
- grep -m 1 "version" pyproject.toml
43
-
44
- # Run semantic-release with verbose output
45
- echo "Running semantic-release version --print..."
46
- VERSION=$(semantic-release version --print)
47
- echo "Next version would be: $VERSION"
48
- echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
49
-
50
- # Run semantic-release publish with verbose output
51
- echo "Running semantic-release publish..."
52
- semantic-release --verbose publish
53
-
54
- # Verify the tag was created
55
- echo "Checking for tag v$VERSION..."
56
- git tag -l "v$VERSION"
57
- env:
58
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60
-
61
- - name: Create Tag Manually if Needed
62
- if: steps.semantic.outputs.VERSION != '0.0.0' && steps.semantic.outputs.VERSION != ''
63
- run: |
64
- # Configure git
65
- git config --local user.email "github-actions@github.com"
66
- git config --local user.name "GitHub Actions"
67
-
68
- # Check if tag exists
69
- VERSION="${{ steps.semantic.outputs.VERSION }}"
70
- if ! git tag -l "v$VERSION" | grep -q "v$VERSION"; then
71
- echo "Tag v$VERSION does not exist, creating it..."
72
-
73
- # Get the current commit hash
74
- COMMIT_HASH=$(git rev-parse HEAD)
75
-
76
- # Create and push tag
77
- git tag -a "v$VERSION" -m "Release v$VERSION" $COMMIT_HASH
78
- git push origin "v$VERSION"
79
-
80
- echo "Tag v$VERSION created and pushed"
81
- else
82
- echo "Tag v$VERSION already exists"
83
- fi
84
- env:
85
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86
-
87
- - name: Trigger Publish Workflow
88
- if: steps.semantic.outputs.VERSION != '0.0.0' && steps.semantic.outputs.VERSION != ''
89
- uses: peter-evans/repository-dispatch@v2
90
- with:
91
- token: ${{ secrets.GITHUB_TOKEN }}
92
- event-type: publish-pypi
93
- client-payload: '{"version": "${{ steps.semantic.outputs.VERSION }}"}'
94
-
95
- - name: Verify version consistency
96
- if: steps.semantic.outputs.VERSION != '0.0.0' && steps.semantic.outputs.VERSION != ''
97
- run: |
98
- PYPROJECT_VERSION=$(grep -m 1 "version" pyproject.toml | sed -E 's/.*"([0-9]+\.[0-9]+\.[0-9]+)".*/\1/')
99
- CARGO_VERSION=$(grep -m 1 "version" Cargo.toml | sed -E 's/.*"([0-9]+\.[0-9]+\.[0-9]+)".*/\1/')
100
- INIT_VERSION=$(grep -m 1 "__version__" python/pyroid/__init__.py | sed -E 's/.*"([0-9]+\.[0-9]+\.[0-9]+)".*/\1/')
101
- SETUP_VERSION=$(grep -m 1 "version" setup.py | sed -E 's/.*"([0-9]+\.[0-9]+\.[0-9]+)".*/\1/')
102
-
103
- echo "Versions found:"
104
- echo "pyproject.toml: $PYPROJECT_VERSION"
105
- echo "Cargo.toml: $CARGO_VERSION"
106
- echo "python/pyroid/__init__.py: $INIT_VERSION"
107
- echo "setup.py: $SETUP_VERSION"
108
-
109
- if [ "$PYPROJECT_VERSION" != "$CARGO_VERSION" ] || [ "$PYPROJECT_VERSION" != "$INIT_VERSION" ] || [ "$PYPROJECT_VERSION" != "$SETUP_VERSION" ]; then
110
- echo "ERROR: Version numbers are inconsistent across files!"
111
- # exit 1
112
- fi
113
-
114
- echo "All version numbers are consistent: $PYPROJECT_VERSION"
115
-
116
- - name: Summary
117
- run: |
118
- echo "## Semantic Release Summary" >> $GITHUB_STEP_SUMMARY
119
- echo "- Version: ${{ steps.semantic.outputs.VERSION }}" >> $GITHUB_STEP_SUMMARY
120
- echo "- Tag: v${{ steps.semantic.outputs.VERSION }}" >> $GITHUB_STEP_SUMMARY
121
- echo "- Publish Workflow Triggered: ${{ steps.semantic.outputs.VERSION != '0.0.0' && steps.semantic.outputs.VERSION != '' }}" >> $GITHUB_STEP_SUMMARY
@@ -1,49 +0,0 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
-
9
- jobs:
10
- test:
11
- name: Test on ${{ matrix.os }}
12
- runs-on: ${{ matrix.os }}
13
- strategy:
14
- matrix:
15
- os: [ubuntu-latest, windows-latest, macos-latest]
16
- python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
17
-
18
- steps:
19
- - uses: actions/checkout@v3
20
-
21
- - name: Set up Python ${{ matrix.python-version }}
22
- uses: actions/setup-python@v4
23
- with:
24
- python-version: ${{ matrix.python-version }}
25
-
26
- - name: Set up Rust
27
- uses: actions-rs/toolchain@v1
28
- with:
29
- toolchain: stable
30
- profile: minimal
31
- override: true
32
-
33
- - name: Install dependencies
34
- run: |
35
- python -m pip install --upgrade pip
36
- pip install -r dev-requirements.txt
37
-
38
- - name: Build Rust extension
39
- run: |
40
- python build_and_install.py
41
-
42
- - name: Run Python tests
43
- run: |
44
- cd python
45
- python run_tests.py
46
-
47
- - name: Run Rust tests
48
- run: |
49
- cargo test --test test_rust_*
@@ -1,81 +0,0 @@
1
- [build-system]
2
- requires = ["maturin>=1.0,<2.0"]
3
- build-backend = "maturin"
4
-
5
- [project]
6
- name = "pyroid"
7
- version = "0.6.0"
8
- description = "High-performance Rust functions for Python with a simplified architecture"
9
- authors = [{ name = "Pyroid Team", email = "support@ataiva.com" }]
10
- readme = "README.md"
11
- requires-python = ">=3.8"
12
- classifiers = [
13
- "Programming Language :: Python :: 3",
14
- "Programming Language :: Python :: 3.8",
15
- "Programming Language :: Python :: 3.9",
16
- "Programming Language :: Python :: 3.10",
17
- "Programming Language :: Python :: 3.11",
18
- "Programming Language :: Rust",
19
- "License :: OSI Approved :: MIT License",
20
- "Operating System :: OS Independent",
21
- "Development Status :: 3 - Alpha",
22
- "Intended Audience :: Developers",
23
- "Topic :: Software Development :: Libraries :: Python Modules",
24
- ]
25
-
26
- [project.urls]
27
- "Homepage" = "https://github.com/ao/pyroid"
28
- "Bug Tracker" = "https://github.com/ao/pyroid/issues"
29
- "Documentation" = "https://github.com/ao/pyroid/blob/main/README.md"
30
-
31
- [tool.maturin]
32
- python-source = "python"
33
- features = [
34
- "pyo3/extension-module",
35
- "math",
36
- "text",
37
- "data",
38
- "io",
39
- "image",
40
- "ml",
41
- ]
42
-
43
- [tool.semantic_release]
44
- version_toml = ["pyproject.toml:project.version", "Cargo.toml:package.version"]
45
- version_pattern = [
46
- "python/pyroid/__init__.py:__version__ = \"$version\"",
47
- "setup.py:version=\"$version\""
48
- ]
49
- branch = "main"
50
- upload_to_pypi = false # We use the publish.yml workflow for this
51
- upload_to_release = true
52
- build_command = "echo 'Skipping build during semantic release'"
53
- tag_commit = true # Ensure tags are created
54
- commit = true # Ensure version changes are committed
55
- push = true # Ensure commits and tags are pushed
56
- tag_format = "v{version}" # Ensure tags start with "v"
57
- changelog_file = "CHANGELOG.md" # Explicitly specify the changelog file
58
- changelog_sections = [
59
- "feature",
60
- "fix",
61
- "breaking",
62
- "documentation",
63
- "performance",
64
- "refactor",
65
- ]
66
- major_on_zero = false # Treat 0.x versions as major releases
67
- version_source = "commit" # Use commit messages to determine version
68
- commit_version_number = true # Include version number in commit message
69
- commit_subject = "chore(release): {version} [skip ci]" # Commit message format
70
- commit_author = "github-actions <actions@github.com>" # Commit author
71
-
72
- [tool.semantic_release.branches.main]
73
- match = "main"
74
- prerelease = false
75
-
76
- [tool.semantic_release.remote]
77
- type = "github"
78
-
79
- [tool.semantic_release.parser]
80
- parse_version_from_commit = true
81
-
File without changes
File without changes
File without changes
File without changes
File without changes