cylindra 1.0.0b0__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.
- cylindra-1.0.0b0/.github/workflows/CI.yml +118 -0
- cylindra-1.0.0b0/.github/workflows/docs.yml +46 -0
- cylindra-1.0.0b0/.github/workflows/test.yml +59 -0
- cylindra-1.0.0b0/.gitignore +143 -0
- cylindra-1.0.0b0/.pre-commit-config.yaml +20 -0
- cylindra-1.0.0b0/Cargo.lock +486 -0
- cylindra-1.0.0b0/Cargo.toml +16 -0
- cylindra-1.0.0b0/LICENSE +29 -0
- cylindra-1.0.0b0/PKG-INFO +165 -0
- cylindra-1.0.0b0/README.md +96 -0
- cylindra-1.0.0b0/cylindra/__init__.py +44 -0
- cylindra-1.0.0b0/cylindra/__main__.py +40 -0
- cylindra-1.0.0b0/cylindra/_config.py +295 -0
- cylindra-1.0.0b0/cylindra/_cylindra_ext.pyi +149 -0
- cylindra-1.0.0b0/cylindra/_dask.py +19 -0
- cylindra-1.0.0b0/cylindra/_data/BtubAB.json +12 -0
- cylindra-1.0.0b0/cylindra/_data/TMV.json +12 -0
- cylindra-1.0.0b0/cylindra/_data/actin.json +12 -0
- cylindra-1.0.0b0/cylindra/_data/eukaryotic_MT.json +12 -0
- cylindra-1.0.0b0/cylindra/_napari/__init__.py +13 -0
- cylindra-1.0.0b0/cylindra/_napari/_layer_controls.py +199 -0
- cylindra-1.0.0b0/cylindra/_napari/_layers.py +511 -0
- cylindra-1.0.0b0/cylindra/_previews.py +184 -0
- cylindra-1.0.0b0/cylindra/_shared_doc.py +99 -0
- cylindra-1.0.0b0/cylindra/cli/__init__.py +33 -0
- cylindra-1.0.0b0/cylindra/cli/_base.py +98 -0
- cylindra-1.0.0b0/cylindra/cli/average.py +107 -0
- cylindra-1.0.0b0/cylindra/cli/config.py +158 -0
- cylindra-1.0.0b0/cylindra/cli/find.py +169 -0
- cylindra-1.0.0b0/cylindra/cli/new.py +88 -0
- cylindra-1.0.0b0/cylindra/cli/none.py +45 -0
- cylindra-1.0.0b0/cylindra/cli/open.py +82 -0
- cylindra-1.0.0b0/cylindra/cli/preview.py +176 -0
- cylindra-1.0.0b0/cylindra/cli/run.py +54 -0
- cylindra-1.0.0b0/cylindra/cli/workflow.py +87 -0
- cylindra-1.0.0b0/cylindra/components/__init__.py +22 -0
- cylindra-1.0.0b0/cylindra/components/_base.py +65 -0
- cylindra-1.0.0b0/cylindra/components/_cylinder_params.py +237 -0
- cylindra-1.0.0b0/cylindra/components/_ftprops.py +230 -0
- cylindra-1.0.0b0/cylindra/components/_peak.py +244 -0
- cylindra-1.0.0b0/cylindra/components/cylindric.py +476 -0
- cylindra-1.0.0b0/cylindra/components/landscape.py +790 -0
- cylindra-1.0.0b0/cylindra/components/picker.py +186 -0
- cylindra-1.0.0b0/cylindra/components/seam_search.py +177 -0
- cylindra-1.0.0b0/cylindra/components/spline/__init__.py +5 -0
- cylindra-1.0.0b0/cylindra/components/spline/_config.py +195 -0
- cylindra-1.0.0b0/cylindra/components/spline/_cyl_spline.py +249 -0
- cylindra-1.0.0b0/cylindra/components/spline/_props.py +241 -0
- cylindra-1.0.0b0/cylindra/components/spline/_spline_base.py +1200 -0
- cylindra-1.0.0b0/cylindra/components/spline/_types.py +38 -0
- cylindra-1.0.0b0/cylindra/components/tomogram/__init__.py +4 -0
- cylindra-1.0.0b0/cylindra/components/tomogram/_cyl_tomo.py +1483 -0
- cylindra-1.0.0b0/cylindra/components/tomogram/_spline_list.py +180 -0
- cylindra-1.0.0b0/cylindra/components/tomogram/_straighten.py +87 -0
- cylindra-1.0.0b0/cylindra/components/tomogram/_tomo_base.py +400 -0
- cylindra-1.0.0b0/cylindra/components/visualize.py +110 -0
- cylindra-1.0.0b0/cylindra/const.py +237 -0
- cylindra-1.0.0b0/cylindra/core.py +253 -0
- cylindra-1.0.0b0/cylindra/cylfilters.py +239 -0
- cylindra-1.0.0b0/cylindra/cylmeasure.py +479 -0
- cylindra-1.0.0b0/cylindra/cyltransform.py +73 -0
- cylindra-1.0.0b0/cylindra/ext/__init__.py +5 -0
- cylindra-1.0.0b0/cylindra/ext/_utils.py +50 -0
- cylindra-1.0.0b0/cylindra/ext/imod/__init__.py +4 -0
- cylindra-1.0.0b0/cylindra/ext/imod/cmd.py +128 -0
- cylindra-1.0.0b0/cylindra/ext/imod/menu.py +384 -0
- cylindra-1.0.0b0/cylindra/ext/relion/__init__.py +3 -0
- cylindra-1.0.0b0/cylindra/ext/relion/menu.py +224 -0
- cylindra-1.0.0b0/cylindra/project/__init__.py +13 -0
- cylindra-1.0.0b0/cylindra/project/_base.py +194 -0
- cylindra-1.0.0b0/cylindra/project/_batch.py +156 -0
- cylindra-1.0.0b0/cylindra/project/_json.py +28 -0
- cylindra-1.0.0b0/cylindra/project/_layer_info.py +162 -0
- cylindra-1.0.0b0/cylindra/project/_sequence.py +627 -0
- cylindra-1.0.0b0/cylindra/project/_single.py +590 -0
- cylindra-1.0.0b0/cylindra/project/_utils.py +48 -0
- cylindra-1.0.0b0/cylindra/project/_widgets.py +206 -0
- cylindra-1.0.0b0/cylindra/types.py +59 -0
- cylindra-1.0.0b0/cylindra/utils/__init__.py +3 -0
- cylindra-1.0.0b0/cylindra/utils/_color.py +13 -0
- cylindra-1.0.0b0/cylindra/utils/_correlation.py +89 -0
- cylindra-1.0.0b0/cylindra/utils/_misc.py +335 -0
- cylindra-1.0.0b0/cylindra/widget_utils.py +383 -0
- cylindra-1.0.0b0/cylindra/widgets/__init__.py +36 -0
- cylindra-1.0.0b0/cylindra/widgets/_accessors.py +307 -0
- cylindra-1.0.0b0/cylindra/widgets/_annealing.py +179 -0
- cylindra-1.0.0b0/cylindra/widgets/_annotated.py +79 -0
- cylindra-1.0.0b0/cylindra/widgets/_main_utils.py +172 -0
- cylindra-1.0.0b0/cylindra/widgets/_process_template.py +122 -0
- cylindra-1.0.0b0/cylindra/widgets/_progress_desc.py +88 -0
- cylindra-1.0.0b0/cylindra/widgets/_reserved_layers.py +165 -0
- cylindra-1.0.0b0/cylindra/widgets/_ui_init.py +550 -0
- cylindra-1.0.0b0/cylindra/widgets/_widget_ext.py +726 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/__init__.py +5 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/_loaderlist.py +72 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/_sequence.py +510 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/_utils.py +122 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/main.py +241 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/menus.py +37 -0
- cylindra-1.0.0b0/cylindra/widgets/batch/sta.py +624 -0
- cylindra-1.0.0b0/cylindra/widgets/icons/grip.svg +6 -0
- cylindra-1.0.0b0/cylindra/widgets/main.py +2903 -0
- cylindra-1.0.0b0/cylindra/widgets/sta.py +2171 -0
- cylindra-1.0.0b0/cylindra/widgets/style.qss +15 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/__init__.py +50 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/_child_widget.py +9 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/file_iter.py +197 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/function_menu.py +304 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/image_processor.py +203 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/measure.py +306 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/menus.py +1220 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/misc.py +200 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/pca.py +61 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/properties.py +269 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/runner.py +183 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/simulator.py +1037 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/slicer.py +502 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/spline_clipper.py +163 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/spline_control.py +393 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/spline_fitter.py +306 -0
- cylindra-1.0.0b0/cylindra/widgets/subwidgets/toolbar.py +105 -0
- cylindra-1.0.0b0/docs/alignment/conventional.md +140 -0
- cylindra-1.0.0b0/docs/alignment/index.md +27 -0
- cylindra-1.0.0b0/docs/alignment/landscape.md +38 -0
- cylindra-1.0.0b0/docs/alignment/rma.md +37 -0
- cylindra-1.0.0b0/docs/alignment/viterbi.md +32 -0
- cylindra-1.0.0b0/docs/api/components.md +28 -0
- cylindra-1.0.0b0/docs/api/core.md +6 -0
- cylindra-1.0.0b0/docs/api/cylfilters.md +6 -0
- cylindra-1.0.0b0/docs/api/cylmeasure.md +6 -0
- cylindra-1.0.0b0/docs/api/ext.md +17 -0
- cylindra-1.0.0b0/docs/api/index.md +3 -0
- cylindra-1.0.0b0/docs/api/project.md +6 -0
- cylindra-1.0.0b0/docs/api/widgets/batch.md +19 -0
- cylindra-1.0.0b0/docs/api/widgets/main.md +6 -0
- cylindra-1.0.0b0/docs/api/widgets/sta.md +8 -0
- cylindra-1.0.0b0/docs/api/widgets/subwidgets.md +10 -0
- cylindra-1.0.0b0/docs/basics.md +126 -0
- cylindra-1.0.0b0/docs/batch/average.md +6 -0
- cylindra-1.0.0b0/docs/batch/collect_projects.md +78 -0
- cylindra-1.0.0b0/docs/batch/construct.md +93 -0
- cylindra-1.0.0b0/docs/batch/index.md +7 -0
- cylindra-1.0.0b0/docs/cli.md +29 -0
- cylindra-1.0.0b0/docs/extern/imod.md +55 -0
- cylindra-1.0.0b0/docs/extern/index.md +9 -0
- cylindra-1.0.0b0/docs/extern/relion.md +41 -0
- cylindra-1.0.0b0/docs/fit_splines.md +160 -0
- cylindra-1.0.0b0/docs/images/average_tubulin.png +0 -0
- cylindra-1.0.0b0/docs/images/draw_splines.gif +0 -0
- cylindra-1.0.0b0/docs/images/generate_molecules.gif +0 -0
- cylindra-1.0.0b0/docs/images/lattice_params.png +0 -0
- cylindra-1.0.0b0/docs/index.md +64 -0
- cylindra-1.0.0b0/docs/installation.md +57 -0
- cylindra-1.0.0b0/docs/lattice_params.md +309 -0
- cylindra-1.0.0b0/docs/molecules/expressions.md +72 -0
- cylindra-1.0.0b0/docs/molecules/features.md +88 -0
- cylindra-1.0.0b0/docs/molecules/filter_molecules.md +49 -0
- cylindra-1.0.0b0/docs/molecules/headers.md +66 -0
- cylindra-1.0.0b0/docs/molecules/index.md +13 -0
- cylindra-1.0.0b0/docs/molecules/spline_to_molecules.md +204 -0
- cylindra-1.0.0b0/docs/molecules/split_and_combine.md +46 -0
- cylindra-1.0.0b0/docs/molecules/transform.md +38 -0
- cylindra-1.0.0b0/docs/open_image.md +171 -0
- cylindra-1.0.0b0/docs/process_images.md +13 -0
- cylindra-1.0.0b0/docs/project_io.md +76 -0
- cylindra-1.0.0b0/docs/scripts/_dynamic_doc.py +35 -0
- cylindra-1.0.0b0/docs/scripts/_screenshots.py +182 -0
- cylindra-1.0.0b0/docs/seam_search.md +71 -0
- cylindra-1.0.0b0/docs/simulate.md +142 -0
- cylindra-1.0.0b0/docs/spline/clip.md +47 -0
- cylindra-1.0.0b0/docs/spline/config.md +100 -0
- cylindra-1.0.0b0/docs/spline/index.md +12 -0
- cylindra-1.0.0b0/docs/workflows.md +100 -0
- cylindra-1.0.0b0/mkdocs.yml +130 -0
- cylindra-1.0.0b0/pyproject.toml +165 -0
- cylindra-1.0.0b0/resources/fig.png +0 -0
- cylindra-1.0.0b0/scripts/annealing_demo.py +105 -0
- cylindra-1.0.0b0/scripts/calibrate_nsr.py +97 -0
- cylindra-1.0.0b0/scripts/generate_images.py +82 -0
- cylindra-1.0.0b0/scripts/rma_demo.py +107 -0
- cylindra-1.0.0b0/scripts/rma_fluctuation.py +146 -0
- cylindra-1.0.0b0/scripts/simulate_alignments.py +273 -0
- cylindra-1.0.0b0/scripts/simulate_cft.py +366 -0
- cylindra-1.0.0b0/scripts/simulate_supertwist.py +142 -0
- cylindra-1.0.0b0/scripts/tip_recognition_demo.py +32 -0
- cylindra-1.0.0b0/src/alleviate.rs +115 -0
- cylindra-1.0.0b0/src/annealing/core.rs +341 -0
- cylindra-1.0.0b0/src/annealing/graph.rs +558 -0
- cylindra-1.0.0b0/src/annealing/mod.rs +7 -0
- cylindra-1.0.0b0/src/annealing/potential.rs +198 -0
- cylindra-1.0.0b0/src/annealing/random.rs +120 -0
- cylindra-1.0.0b0/src/annealing/reservoir.rs +57 -0
- cylindra-1.0.0b0/src/array.rs +79 -0
- cylindra-1.0.0b0/src/coordinates/coordinate_system.rs +53 -0
- cylindra-1.0.0b0/src/coordinates/mod.rs +5 -0
- cylindra-1.0.0b0/src/coordinates/vector.rs +253 -0
- cylindra-1.0.0b0/src/cylindric.rs +263 -0
- cylindra-1.0.0b0/src/exceptions.rs +19 -0
- cylindra-1.0.0b0/src/filters.rs +475 -0
- cylindra-1.0.0b0/src/lib.rs +30 -0
- cylindra-1.0.0b0/src/regionprops.rs +348 -0
- cylindra-1.0.0b0/src/viterbi/constraint.rs +198 -0
- cylindra-1.0.0b0/src/viterbi/core.rs +472 -0
- cylindra-1.0.0b0/src/viterbi/mod.rs +4 -0
- cylindra-1.0.0b0/tests/13pf_MT.tif +0 -0
- cylindra-1.0.0b0/tests/14pf_MT.tif +0 -0
- cylindra-1.0.0b0/tests/__init__.py +7 -0
- cylindra-1.0.0b0/tests/_const.py +5 -0
- cylindra-1.0.0b0/tests/beta-tubulin.mrc +0 -0
- cylindra-1.0.0b0/tests/conftest.py +41 -0
- cylindra-1.0.0b0/tests/test_algorithms.py +177 -0
- cylindra-1.0.0b0/tests/test_custom_widgets.py +41 -0
- cylindra-1.0.0b0/tests/test_cylfilters.py +66 -0
- cylindra-1.0.0b0/tests/test_cylindric_model.py +109 -0
- cylindra-1.0.0b0/tests/test_gui_0.py +1515 -0
- cylindra-1.0.0b0/tests/test_gui_1_batch.py +164 -0
- cylindra-1.0.0b0/tests/test_gui_2_extensions.py +75 -0
- cylindra-1.0.0b0/tests/test_io.py +15 -0
- cylindra-1.0.0b0/tests/test_projects.py +53 -0
- cylindra-1.0.0b0/tests/test_regionprops.py +102 -0
- cylindra-1.0.0b0/tests/test_splines.py +251 -0
- cylindra-1.0.0b0/tests/test_utils.py +169 -0
- cylindra-1.0.0b0/tests/test_viterbi.py +125 -0
- cylindra-1.0.0b0/tests/utils.py +75 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v0.14.16
|
|
2
|
+
# To update, run
|
|
3
|
+
|
|
4
|
+
# maturin init
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
- master
|
|
11
|
+
tags:
|
|
12
|
+
- '*'
|
|
13
|
+
pull_request:
|
|
14
|
+
workflow_dispatch:
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
linux:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
strategy:
|
|
23
|
+
matrix:
|
|
24
|
+
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v3
|
|
27
|
+
- uses: actions/setup-python@v4
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.10'
|
|
30
|
+
- name: Build wheels
|
|
31
|
+
uses: PyO3/maturin-action@v1
|
|
32
|
+
with:
|
|
33
|
+
target: ${{ matrix.target }}
|
|
34
|
+
args: --release --out dist --find-interpreter
|
|
35
|
+
sccache: 'true'
|
|
36
|
+
manylinux: auto
|
|
37
|
+
- name: Upload wheels
|
|
38
|
+
uses: actions/upload-artifact@v3
|
|
39
|
+
with:
|
|
40
|
+
name: wheels
|
|
41
|
+
path: dist
|
|
42
|
+
|
|
43
|
+
windows:
|
|
44
|
+
runs-on: windows-latest
|
|
45
|
+
strategy:
|
|
46
|
+
matrix:
|
|
47
|
+
target: [x64, x86]
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v3
|
|
50
|
+
- uses: actions/setup-python@v4
|
|
51
|
+
with:
|
|
52
|
+
python-version: '3.10'
|
|
53
|
+
architecture: ${{ matrix.target }}
|
|
54
|
+
- name: Build wheels
|
|
55
|
+
uses: PyO3/maturin-action@v1
|
|
56
|
+
with:
|
|
57
|
+
target: ${{ matrix.target }}
|
|
58
|
+
args: --release --out dist --find-interpreter
|
|
59
|
+
sccache: 'true'
|
|
60
|
+
- name: Upload wheels
|
|
61
|
+
uses: actions/upload-artifact@v3
|
|
62
|
+
with:
|
|
63
|
+
name: wheels
|
|
64
|
+
path: dist
|
|
65
|
+
|
|
66
|
+
macos:
|
|
67
|
+
runs-on: macos-latest
|
|
68
|
+
strategy:
|
|
69
|
+
matrix:
|
|
70
|
+
target: [x86_64, aarch64]
|
|
71
|
+
steps:
|
|
72
|
+
- uses: actions/checkout@v3
|
|
73
|
+
- uses: actions/setup-python@v4
|
|
74
|
+
with:
|
|
75
|
+
python-version: '3.10'
|
|
76
|
+
- name: Build wheels
|
|
77
|
+
uses: PyO3/maturin-action@v1
|
|
78
|
+
with:
|
|
79
|
+
target: ${{ matrix.target }}
|
|
80
|
+
args: --release --out dist --find-interpreter
|
|
81
|
+
sccache: 'true'
|
|
82
|
+
- name: Upload wheels
|
|
83
|
+
uses: actions/upload-artifact@v3
|
|
84
|
+
with:
|
|
85
|
+
name: wheels
|
|
86
|
+
path: dist
|
|
87
|
+
|
|
88
|
+
sdist:
|
|
89
|
+
runs-on: ubuntu-latest
|
|
90
|
+
steps:
|
|
91
|
+
- uses: actions/checkout@v3
|
|
92
|
+
- name: Build sdist
|
|
93
|
+
uses: PyO3/maturin-action@v1
|
|
94
|
+
with:
|
|
95
|
+
command: sdist
|
|
96
|
+
args: --out dist
|
|
97
|
+
- name: Upload sdist
|
|
98
|
+
uses: actions/upload-artifact@v3
|
|
99
|
+
with:
|
|
100
|
+
name: wheels
|
|
101
|
+
path: dist
|
|
102
|
+
|
|
103
|
+
release:
|
|
104
|
+
name: Release
|
|
105
|
+
runs-on: ubuntu-latest
|
|
106
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
107
|
+
needs: [linux, windows, macos, sdist]
|
|
108
|
+
steps:
|
|
109
|
+
- uses: actions/download-artifact@v3
|
|
110
|
+
with:
|
|
111
|
+
name: wheels
|
|
112
|
+
- name: Publish to PyPI
|
|
113
|
+
uses: PyO3/maturin-action@v1
|
|
114
|
+
env:
|
|
115
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
116
|
+
with:
|
|
117
|
+
command: upload
|
|
118
|
+
args: --skip-existing *
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
docs:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.x"
|
|
21
|
+
|
|
22
|
+
- name: Create virtual environment
|
|
23
|
+
env:
|
|
24
|
+
BIN: ${{ matrix.os == 'ubuntu-latest' && 'Scripts' || 'bin' }}
|
|
25
|
+
run: |
|
|
26
|
+
python -m venv .venv
|
|
27
|
+
echo "$GITHUB_WORKSPACE/.venv/$BIN" >> $GITHUB_PATH
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
python -m pip install -e .[docs]
|
|
33
|
+
|
|
34
|
+
- name: Build Rust extension
|
|
35
|
+
run: maturin develop --release
|
|
36
|
+
|
|
37
|
+
- name: Deploy docs to GitHub Pages
|
|
38
|
+
if: github.event_name == 'push'
|
|
39
|
+
run: mkdocs gh-deploy --force
|
|
40
|
+
# TODO: eventually switch to --strict
|
|
41
|
+
# run: mkdocs gh-deploy --strict --force
|
|
42
|
+
|
|
43
|
+
- name: Test that docs build without error
|
|
44
|
+
if: github.event_name == 'pull_request'
|
|
45
|
+
run: mkdocs build
|
|
46
|
+
# run: mkdocs build --strict
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
|
|
9
|
+
pull_request:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
test:
|
|
16
|
+
name: ${{ matrix.platform }} (${{ matrix.python-version }})
|
|
17
|
+
runs-on: ${{ matrix.platform }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
22
|
+
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
23
|
+
|
|
24
|
+
steps:
|
|
25
|
+
- name: Cancel Previous Runs
|
|
26
|
+
uses: styfle/cancel-workflow-action@0.11.0
|
|
27
|
+
with:
|
|
28
|
+
access_token: ${{ github.token }}
|
|
29
|
+
|
|
30
|
+
- uses: actions/checkout@v3
|
|
31
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
32
|
+
uses: actions/setup-python@v4
|
|
33
|
+
with:
|
|
34
|
+
python-version: ${{ matrix.python-version }}
|
|
35
|
+
|
|
36
|
+
- name: Create virtual environment
|
|
37
|
+
env:
|
|
38
|
+
BIN: ${{ matrix.os == 'windows-latest' && 'Scripts' || 'bin' }}
|
|
39
|
+
run: |
|
|
40
|
+
python -m venv .venv
|
|
41
|
+
echo "$GITHUB_WORKSPACE/.venv/$BIN" >> $GITHUB_PATH
|
|
42
|
+
|
|
43
|
+
- uses: tlambert03/setup-qt-libs@v1.5
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: python -m pip install .[testing]
|
|
46
|
+
|
|
47
|
+
- name: Build Rust extension
|
|
48
|
+
run: maturin develop --release
|
|
49
|
+
|
|
50
|
+
- name: Test
|
|
51
|
+
uses: aganders3/headless-gui@v1
|
|
52
|
+
with:
|
|
53
|
+
run: python -m pytest --cov=cylindra --cov-report=xml
|
|
54
|
+
|
|
55
|
+
- name: Upload coverage reports to Codecov
|
|
56
|
+
uses: codecov/codecov-action@v4.0.1
|
|
57
|
+
with:
|
|
58
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
59
|
+
slug: hanjinliu/cylindra
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
.vscode/
|
|
2
|
+
test_script.py
|
|
3
|
+
scripts/user_consts.py
|
|
4
|
+
|
|
5
|
+
# Project files and results
|
|
6
|
+
tests/**/*.txt
|
|
7
|
+
tests/**/*.json
|
|
8
|
+
tests/**/*.csv
|
|
9
|
+
tests/**/*.pq
|
|
10
|
+
tests/**/*.tar
|
|
11
|
+
tests/**/*.zip
|
|
12
|
+
tests/**/script.py
|
|
13
|
+
|
|
14
|
+
# Byte-compiled / optimized / DLL files
|
|
15
|
+
__pycache__/
|
|
16
|
+
*.py[cod]
|
|
17
|
+
*$py.class
|
|
18
|
+
|
|
19
|
+
# C extensions
|
|
20
|
+
*.so
|
|
21
|
+
|
|
22
|
+
# Distribution / packaging
|
|
23
|
+
.Python
|
|
24
|
+
build/
|
|
25
|
+
develop-eggs/
|
|
26
|
+
dist/
|
|
27
|
+
downloads/
|
|
28
|
+
eggs/
|
|
29
|
+
.eggs/
|
|
30
|
+
lib/
|
|
31
|
+
lib64/
|
|
32
|
+
parts/
|
|
33
|
+
sdist/
|
|
34
|
+
var/
|
|
35
|
+
wheels/
|
|
36
|
+
pip-wheel-metadata/
|
|
37
|
+
share/python-wheels/
|
|
38
|
+
*.egg-info/
|
|
39
|
+
.installed.cfg
|
|
40
|
+
*.egg
|
|
41
|
+
MANIFEST
|
|
42
|
+
|
|
43
|
+
# PyInstaller
|
|
44
|
+
# Usually these files are written by a python script from a template
|
|
45
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
46
|
+
*.manifest
|
|
47
|
+
*.spec
|
|
48
|
+
|
|
49
|
+
# Installer logs
|
|
50
|
+
pip-log.txt
|
|
51
|
+
pip-delete-this-directory.txt
|
|
52
|
+
|
|
53
|
+
# Unit test / coverage reports
|
|
54
|
+
htmlcov/
|
|
55
|
+
.tox/
|
|
56
|
+
.nox/
|
|
57
|
+
.coverage
|
|
58
|
+
.coverage.*
|
|
59
|
+
.cache
|
|
60
|
+
nosetests.xml
|
|
61
|
+
coverage.xml
|
|
62
|
+
*.cover
|
|
63
|
+
*.py,cover
|
|
64
|
+
.hypothesis/
|
|
65
|
+
.pytest_cache/
|
|
66
|
+
|
|
67
|
+
# Translations
|
|
68
|
+
*.mo
|
|
69
|
+
*.pot
|
|
70
|
+
|
|
71
|
+
# Django stuff:
|
|
72
|
+
*.log
|
|
73
|
+
local_settings.py
|
|
74
|
+
db.sqlite3
|
|
75
|
+
db.sqlite3-journal
|
|
76
|
+
|
|
77
|
+
# Flask stuff:
|
|
78
|
+
instance/
|
|
79
|
+
.webassets-cache
|
|
80
|
+
|
|
81
|
+
# Scrapy stuff:
|
|
82
|
+
.scrapy
|
|
83
|
+
|
|
84
|
+
# Sphinx documentation
|
|
85
|
+
docs/_build/
|
|
86
|
+
|
|
87
|
+
# Jupyter Notebook
|
|
88
|
+
.ipynb_checkpoints
|
|
89
|
+
|
|
90
|
+
# IPython
|
|
91
|
+
profile_default/
|
|
92
|
+
ipython_config.py
|
|
93
|
+
|
|
94
|
+
# pyenv
|
|
95
|
+
.python-version
|
|
96
|
+
|
|
97
|
+
# pipenv
|
|
98
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
99
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
100
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
101
|
+
# install all needed dependencies.
|
|
102
|
+
#Pipfile.lock
|
|
103
|
+
|
|
104
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
105
|
+
__pypackages__/
|
|
106
|
+
|
|
107
|
+
# Celery stuff
|
|
108
|
+
celerybeat-schedule
|
|
109
|
+
celerybeat.pid
|
|
110
|
+
|
|
111
|
+
# SageMath parsed files
|
|
112
|
+
*.sage.py
|
|
113
|
+
|
|
114
|
+
# Environments
|
|
115
|
+
.env
|
|
116
|
+
.venv
|
|
117
|
+
env/
|
|
118
|
+
venv/
|
|
119
|
+
ENV/
|
|
120
|
+
env.bak/
|
|
121
|
+
venv.bak/
|
|
122
|
+
|
|
123
|
+
# Spyder project settings
|
|
124
|
+
.spyderproject
|
|
125
|
+
.spyproject
|
|
126
|
+
|
|
127
|
+
# Rope project settings
|
|
128
|
+
.ropeproject
|
|
129
|
+
|
|
130
|
+
# mkdocs documentation
|
|
131
|
+
/site
|
|
132
|
+
|
|
133
|
+
# mypy
|
|
134
|
+
.mypy_cache/
|
|
135
|
+
.dmypy.json
|
|
136
|
+
dmypy.json
|
|
137
|
+
|
|
138
|
+
# Pyre type checker
|
|
139
|
+
.pyre/
|
|
140
|
+
|
|
141
|
+
# Rust
|
|
142
|
+
target/
|
|
143
|
+
Cargo.lock
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v4.4.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: end-of-file-fixer
|
|
6
|
+
- id: trailing-whitespace
|
|
7
|
+
- repo: https://github.com/asottile/pyupgrade
|
|
8
|
+
rev: v3.3.1
|
|
9
|
+
hooks:
|
|
10
|
+
- id: pyupgrade
|
|
11
|
+
args: ["--keep-runtime-typing"]
|
|
12
|
+
- repo: https://github.com/psf/black
|
|
13
|
+
rev: 23.3.0
|
|
14
|
+
hooks:
|
|
15
|
+
- id: black
|
|
16
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
17
|
+
rev: v0.1.12
|
|
18
|
+
hooks:
|
|
19
|
+
- id: ruff
|
|
20
|
+
args: ["--fix"]
|