flexiznam 26.12.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 (50) hide show
  1. flexiznam-26.12.0/.github/workflows/python-uv-ci.yml +31 -0
  2. flexiznam-26.12.0/.github/workflows/release.yml +28 -0
  3. flexiznam-26.12.0/.gitignore +143 -0
  4. flexiznam-26.12.0/CHANGELOG.md +343 -0
  5. flexiznam-26.12.0/LICENSE +21 -0
  6. flexiznam-26.12.0/MANIFEST.in +22 -0
  7. flexiznam-26.12.0/PKG-INFO +228 -0
  8. flexiznam-26.12.0/README.md +191 -0
  9. flexiznam-26.12.0/flexiznam/__init__.py +12 -0
  10. flexiznam-26.12.0/flexiznam/camp/__init__.py +1 -0
  11. flexiznam-26.12.0/flexiznam/camp/example_acquisition_yaml.yml +52 -0
  12. flexiznam-26.12.0/flexiznam/camp/minimal_example_acquisition_yaml.yml +16 -0
  13. flexiznam-26.12.0/flexiznam/camp/sync_data.py +591 -0
  14. flexiznam-26.12.0/flexiznam/camp/yaml_format.yml +15 -0
  15. flexiznam-26.12.0/flexiznam/cli.py +349 -0
  16. flexiznam-26.12.0/flexiznam/config/__init__.py +2 -0
  17. flexiznam-26.12.0/flexiznam/config/config_tools.py +258 -0
  18. flexiznam-26.12.0/flexiznam/config/default_config.py +57 -0
  19. flexiznam-26.12.0/flexiznam/config/secret_password_example.yml +9 -0
  20. flexiznam-26.12.0/flexiznam/errors.py +34 -0
  21. flexiznam-26.12.0/flexiznam/gui/__init__.py +1 -0
  22. flexiznam-26.12.0/flexiznam/gui/flexigui.py +484 -0
  23. flexiznam-26.12.0/flexiznam/main.py +1383 -0
  24. flexiznam-26.12.0/flexiznam/mcms.py +75 -0
  25. flexiznam-26.12.0/flexiznam/schema/__init__.py +44 -0
  26. flexiznam-26.12.0/flexiznam/schema/bonsai_data.py +114 -0
  27. flexiznam-26.12.0/flexiznam/schema/camera_data.py +231 -0
  28. flexiznam-26.12.0/flexiznam/schema/datasets.py +847 -0
  29. flexiznam-26.12.0/flexiznam/schema/harp_data.py +257 -0
  30. flexiznam-26.12.0/flexiznam/schema/microscopy_data.py +156 -0
  31. flexiznam-26.12.0/flexiznam/schema/neuropixel_data.py +146 -0
  32. flexiznam-26.12.0/flexiznam/schema/onix_data.py +189 -0
  33. flexiznam-26.12.0/flexiznam/schema/scanimage_data.py +323 -0
  34. flexiznam-26.12.0/flexiznam/schema/sequencing_data.py +139 -0
  35. flexiznam-26.12.0/flexiznam/schema/visstim_data.py +161 -0
  36. flexiznam-26.12.0/flexiznam/utils.py +525 -0
  37. flexiznam-26.12.0/flexiznam.egg-info/PKG-INFO +228 -0
  38. flexiznam-26.12.0/flexiznam.egg-info/SOURCES.txt +48 -0
  39. flexiznam-26.12.0/flexiznam.egg-info/dependency_links.txt +1 -0
  40. flexiznam-26.12.0/flexiznam.egg-info/entry_points.txt +2 -0
  41. flexiznam-26.12.0/flexiznam.egg-info/requires.txt +11 -0
  42. flexiznam-26.12.0/flexiznam.egg-info/scm_file_list.json +94 -0
  43. flexiznam-26.12.0/flexiznam.egg-info/scm_version.json +8 -0
  44. flexiznam-26.12.0/flexiznam.egg-info/top_level.txt +1 -0
  45. flexiznam-26.12.0/notebooks/01-Setup.ipynb +202 -0
  46. flexiznam-26.12.0/notebooks/02-Add Data.ipynb +274 -0
  47. flexiznam-26.12.0/notebooks/03-Using the database.ipynb +322 -0
  48. flexiznam-26.12.0/pyproject.toml +110 -0
  49. flexiznam-26.12.0/setup.cfg +4 -0
  50. flexiznam-26.12.0/uv.lock +2040 -0
@@ -0,0 +1,31 @@
1
+ name: Python uv CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths-ignore:
8
+ - "**/*.md"
9
+ - "docs/**"
10
+ - ".gitignore"
11
+ - "LICENSE"
12
+ pull_request:
13
+ paths-ignore:
14
+ - "**/*.md"
15
+ - "docs/**"
16
+ - ".gitignore"
17
+ - "LICENSE"
18
+
19
+ permissions:
20
+ contents: read
21
+
22
+ jobs:
23
+ python-uv-ci:
24
+ uses: znamlab/python-uv-ci/.github/workflows/python-uv-ci.yml@v26.7.1
25
+ permissions:
26
+ contents: read
27
+ pull-requests: write
28
+ with:
29
+ run_tests: true
30
+ run_lint: true
31
+ type_checker: ty
@@ -0,0 +1,28 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ permissions: {}
8
+
9
+ jobs:
10
+ build:
11
+ permissions:
12
+ contents: read
13
+ uses: znamlab/pypi-publish/.github/workflows/build-python-package.yml@v26.12.0
14
+
15
+ publish:
16
+ needs: build
17
+ runs-on: ubuntu-latest
18
+ environment: pypi
19
+ permissions:
20
+ id-token: write
21
+ steps:
22
+ - name: Download distributions
23
+ uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
24
+ with:
25
+ name: python-distributions
26
+ path: dist/
27
+ - name: Publish to PyPI
28
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
@@ -0,0 +1,143 @@
1
+ # Password file and local config
2
+ /flexiznam/config/secret_password.yml
3
+ /flexiznam/config/config.yml
4
+
5
+ # Pycharm files
6
+ .idea
7
+
8
+ # local environement
9
+ envs
10
+ pkgs
11
+
12
+ # Byte-compiled / optimized / DLL files
13
+ __pycache__/
14
+ *.py[cod]
15
+ *$py.class
16
+
17
+ # C extensions
18
+ *.so
19
+
20
+ # Distribution / packaging
21
+ .Python
22
+ build/
23
+ develop-eggs/
24
+ dist/
25
+ downloads/
26
+ eggs/
27
+ .eggs/
28
+ lib/
29
+ lib64/
30
+ parts/
31
+ sdist/
32
+ var/
33
+ wheels/
34
+ pip-wheel-metadata/
35
+ share/python-wheels/
36
+ *.egg-info/
37
+ .installed.cfg
38
+ *.egg
39
+ MANIFEST
40
+
41
+ # PyInstaller
42
+ # Usually these files are written by a python script from a template
43
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
44
+ *.manifest
45
+ *.spec
46
+
47
+ # Installer logs
48
+ pip-log.txt
49
+ pip-delete-this-directory.txt
50
+
51
+ # Unit test / coverage reports
52
+ htmlcov/
53
+ .tox/
54
+ .nox/
55
+ .coverage
56
+ .coverage.*
57
+ .cache
58
+ nosetests.xml
59
+ coverage.xml
60
+ *.cover
61
+ *.py,cover
62
+ .hypothesis/
63
+ .pytest_cache/
64
+
65
+ # Translations
66
+ *.mo
67
+ *.pot
68
+
69
+ # Django stuff:
70
+ *.log
71
+ local_settings.py
72
+ db.sqlite3
73
+ db.sqlite3-journal
74
+
75
+ # Flask stuff:
76
+ instance/
77
+ .webassets-cache
78
+
79
+ # Scrapy stuff:
80
+ .scrapy
81
+
82
+ # Sphinx documentation
83
+ docs/_build/
84
+
85
+ # PyBuilder
86
+ target/
87
+
88
+ # Jupyter Notebook
89
+ .ipynb_checkpoints
90
+
91
+ # IPython
92
+ profile_default/
93
+ ipython_config.py
94
+
95
+ # pyenv
96
+ .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ #Pipfile.lock
104
+
105
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
106
+ __pypackages__/
107
+
108
+ # Celery stuff
109
+ celerybeat-schedule
110
+ celerybeat.pid
111
+
112
+ # SageMath parsed files
113
+ *.sage.py
114
+
115
+ # Environments
116
+ .env
117
+ .venv
118
+ env/
119
+ venv/
120
+ ENV/
121
+ env.bak/
122
+ venv.bak/
123
+
124
+ # Spyder project settings
125
+ .spyderproject
126
+ .spyproject
127
+
128
+ # Rope project settings
129
+ .ropeproject
130
+
131
+ # mkdocs documentation
132
+ /site
133
+
134
+ # mypy
135
+ .mypy_cache/
136
+ .dmypy.json
137
+ dmypy.json
138
+
139
+ # Pyre type checker
140
+ .pyre/
141
+
142
+ # MACOS junk
143
+ .DS_Store
@@ -0,0 +1,343 @@
1
+ # Change log
2
+
3
+ ## v26.11.0
4
+
5
+ ### Breaking changes
6
+
7
+ - Removed `other_relations` (never supported by the server, removed from `flexilims` 26.11.0).
8
+
9
+ ### Bugfix
10
+
11
+ - Replace mutable `attributes={}` defaults with `attributes=None` in `add_experimental_session` and `add_entity`, and copy `attributes` in `add_experimental_session` so caller dicts are not mutated.
12
+
13
+ ## v0.4.7
14
+
15
+ ### Main changes
16
+
17
+ - GUI: Project IDs in dropdown and items in the treeview are now sorted alphabetically.
18
+
19
+ ### Minor
20
+
21
+ - Update tests and testing resources.
22
+
23
+ ## v0.4.6
24
+
25
+ ### Main changes
26
+
27
+ - Add nice `__repr__` for datasets
28
+
29
+ ### Minor
30
+
31
+ - Simplify the automatic setting of `is_raw` in `from_folder`
32
+
33
+ ## v0.4.5
34
+
35
+ ### Main changes
36
+
37
+ - harp_data can also be a new harp-python style folder.
38
+ - Add NeuropixelData dataset for onix npx data
39
+ - Add `BonsaiData` dataset for `.bonsai` workflow files.
40
+ - Add `ignore_folders` option to `create_yaml_dict` to ignore specified folders
41
+ when parsing a directory. Hidden folders are always ignored.
42
+
43
+
44
+ ### Bugfix
45
+
46
+ - Handle camera with _ in name correctly
47
+
48
+ ### Minor
49
+
50
+ - GUI improvement. Clearer error message
51
+
52
+ ## v0.4.4
53
+
54
+ ### Bugfix
55
+
56
+ - `np.bool` object were uploaded as `str`
57
+
58
+ ### Minor
59
+
60
+ - minor improvement to config
61
+
62
+ ## v0.4.3
63
+
64
+ ### Main changes
65
+
66
+ - Add an option for inverse filtering in `get_datasets` and `get_datasets_recursively`.
67
+ Use `exclude_datasets` to filter out dataset with a specified value of an attribute.
68
+
69
+ ### Bugfix
70
+
71
+ - `extra_attributes` of datasets is now always a dictionary and cannot be set to `None`
72
+ - `gui` can handle project paths defined in `"project_paths"` in the config file
73
+ - `HarpData` and `VisStimData` fix invalid names in csv. The handle in extra
74
+ attributes is now the name of the file, replacing special characters by `_`.
75
+ - clearer error message when one dataset cannot be parsed during upload.
76
+
77
+ ### Minor
78
+
79
+ - Relax requirement for python because of suite2p
80
+
81
+ ## v0.4.2
82
+
83
+ ### Main changes
84
+
85
+ - Add `get_processed_path` and `get_raw_path` to get the path of a dataset
86
+
87
+ ### Minor
88
+
89
+ - Remove unused `get_child_dataset` function. Use argument of `get_dataset` instead.
90
+ - Switch to pyproject.toml for dependencies and clean code.
91
+
92
+ ### Bugfix
93
+
94
+ - Add new `dateUpdated` flexilims field. It was added in the last database update.
95
+
96
+
97
+ ## v0.4.1
98
+
99
+ ### Bugfix
100
+
101
+ - Add new `dateUpdated` flexilims field. It was added in the last database update.
102
+
103
+ ## v0.4
104
+
105
+ ### Main changes
106
+
107
+ - New `SequencingData` class to handle sequencing data
108
+ - GUI can now be used to add data to flexilims with `flexiznam gui`
109
+ - Add a `conda_envs` field in the config file to use in conjunction with `znamutils`
110
+ - `get_children` can work with name or id (instead of id only)
111
+ - `check_flexilims_issues` can now add missing paths
112
+ - `Dataset.from_origin` has a new `extra_attributes` argument to match online datasets
113
+ with specific attributes only.
114
+ - `delete_recursively` can delete all children of an entity
115
+ - Offline mode using downloaded copy of the database
116
+
117
+ ### Minor
118
+ - `add_mouse` uploads birth and death dates in a human readable format instead.
119
+ - Add `conflicts` argument to `add_mouse` to overwrite existing mice
120
+ - `get_entities` does not raise warnings anymore if `name` is specified and `datatype`
121
+ is not. This is now supported upstream by `flexilims`
122
+ - Clearer error message when mouse info cannot be found in MCMS
123
+ - `load_param` can print the file used to read config with the `verbose` flag.
124
+
125
+ ### Bugfixes
126
+
127
+ - `update_config` actually adds the new fields (i.e. fields that are in the default
128
+ config but not the local config) to the config file
129
+
130
+ ## v0.3.11
131
+
132
+ ### Bugfixes
133
+
134
+ - Fix bugs related to raw_data for projects not in main folder
135
+ - Add mouse works with alive animals
136
+
137
+
138
+ ## v0.3.10
139
+
140
+ ### Main changes
141
+
142
+ - Make `update_entity` safer by crashing if reserved fields are used as attributes.
143
+
144
+ ## v0.3.9
145
+
146
+ ### Main changes
147
+
148
+ - Replace crash for conflicting attributes by a warning
149
+
150
+ ## v0.3.8
151
+
152
+ ### Main changes
153
+
154
+ - Add `get_data_root` function to get `raw` or `processed` root for a project
155
+ - `get_children` can filter children by attributes before returning results
156
+ - refactor `get_datasets` to be non recursive and add filtering options. Also add
157
+ multiple options to filter datasets and format output
158
+ - add `get_datasets_recursively` to get all datasets below a given entity
159
+
160
+ ### Bugfixes
161
+
162
+ - return empty dataframe if `filter` in `get_children` filters out everything (instead
163
+ of crashing)
164
+ - `update_flexilims` correctly uploads tuples parameters
165
+ - `update_flexilims` correctly uploads floats and np.float/np.int parameters
166
+ - `update_flexilims` can overwrite existing datasets (if `conflicts='overwrite'`)
167
+ - Add filelock for token creation to avoid concurrent access and move token to their own
168
+ file
169
+
170
+ ### Minor
171
+
172
+ - `harp_dataset.from_folder` will now match csv even if there is nothing before or after
173
+ `harpmessage` in the file name (i.e. the file is `harpmessage.bin`, and all csvs in
174
+ the folder will be matched)
175
+ - private function `config_tools._find_files` has now a `create_if_missing` argument to
176
+ create the file if it does not exist
177
+
178
+ ## v0.3.7
179
+
180
+ ### Main changes
181
+
182
+ - Separate `Dataset.from_dataseries` and `Dataset.from_flexilims` to avoid confusion
183
+
184
+ ### Minor
185
+
186
+ - `get_children` output is filtered to contain only relevant columns when `children_datatype` is not None
187
+
188
+ ### Bugfixes
189
+ ## v0.3.6
190
+
191
+ ### Main changes
192
+
193
+ - New `SequencingData` class to handle sequencing data
194
+ - Add a `conda_envs` field in the config file to use in conjunction with `znamutils`
195
+ - `get_children` can work with name or id (instead of id only)
196
+
197
+ ### Minor
198
+ - `add_mouse` uploads birth and death dates in a human readable format instead.
199
+ - `get_entities` does not raise warnings anymore if `name` is specified and `datatype`
200
+ is not. This is now supported upstream by `flexilims`
201
+
202
+ ### Bugfixes
203
+
204
+ - `update_config` actually adds the new fields (i.e. fields that are in the default
205
+ config but not the local config) to the config file
206
+
207
+ ## v0.3.5
208
+
209
+ ### Main changes
210
+ - `flz.get_datasets` can return `Dataset` objects instead of path strings if
211
+ `return_paths=False`
212
+ - New `OnixData` class to handle Onix data
213
+ - `get_flexilims_session` can now reuse token from a previous session
214
+ - Add a GUI module.
215
+
216
+ ### Minor
217
+ - More generic `clean_recursively` replaces the `clean_dictionary_recursively`. It
218
+ handle more complex nesting and replaces non finite float by their string repr.
219
+ - `CameraDataset` metadata can also be `.yml`, not only `.txt`.
220
+ - `Dataset.format(mode='yaml')` ensure yaml compatibility. (path to str, tuple to list,
221
+ etc...)
222
+ - `add_experimental_session` can be done with `parent_id` (or `parent_name`).
223
+ - `add_dataset` can add a dataset to a mouse and does not require genealogy.
224
+
225
+
226
+ ### Bugfixes
227
+ - Fix [#68](https://github.com/znamlab/flexiznam/issues/68). Dataset.format returns
228
+ always the path in posix format.
229
+ - Fix [#88](https://github.com/znamlab/flexiznam/issues/88). Now make attributes JSON
230
+ compatible before uploading to flexilims. This will replace special characters in
231
+ attribute names by `_` in the database.
232
+ - Fix [#102](https://github.com/znamlab/flexiznam/issues/102). `add_mouse` now works
233
+ with mice that have special character in their allele.
234
+ - `add_recording` and `add_sample` add the value online with the full name (including
235
+ genealogy) rather than the short name.
236
+
237
+ ## v0.3.4
238
+
239
+ ### Main changes
240
+
241
+ - Use `pymcms` to get mouse data from MCMS
242
+ - Make `_lookup_project` non private. It is now `flz.utils.lookup_project`
243
+
244
+ ### Bugfixes
245
+
246
+ - `clean_dictionary_recursively` replaces ndarray by list, which are JSON-compatible
247
+
248
+ ### Minor
249
+
250
+ - `flz.lookup_project` uses `PARAMETERS` as default project source.
251
+
252
+ ## v0.3.3
253
+
254
+ ### Main changes
255
+ - New entry point: `add_genealogy` to add the genealogy field to existing entries.
256
+ - add `enforce_dataset_types` option to `config.yml`. This let the user decide if the
257
+ dataset type must be defined in the config file or can be freely changed.
258
+ - `Dataset.from_flexilims` accepts `id` or `name`.
259
+
260
+ ### Bugfixes
261
+ - `add_genealogy` now works with scanimage datasets
262
+ - `HarpData` does not match csv if the file name is only `harpmessage.bin`.
263
+ See issue #93
264
+ - Adapt `add_mouse` to new MCMS page layout
265
+ - `flexiznam config --update` works even if the `secret_password` file does not exists
266
+ - `config --update` adds fields that are new in the default config to the current config
267
+
268
+ ### Minor
269
+ - add `compare_dictionaries_recursively` in `utils`
270
+ - switch to `black` formatter
271
+ - add `pathlib` to requirement
272
+ - `Dataset` can now be imported from `flexiznam`
273
+
274
+ ## v0.3.2
275
+
276
+ ### Main changes
277
+ - Add CLI function: `check_flexilims_issues` to check for ill-named entity and invalid
278
+ paths
279
+ - `update_config` now adds all project_ids to the default config (requires to have
280
+ flexilims access)
281
+
282
+ ### Breaking changes:
283
+ - `add_dataset` requires the genealogy argument
284
+ - `from_folder` uses a `folder_genealogy` argument instead of the previous `mouse`,
285
+ `session` and ` recording` arguments
286
+ - `Dataset` creation requires `genealogy` instead of `name`
287
+ - `Dataset` has now a `Dataset.full_name` and `Dataset.short_name` property instead
288
+ of a `Dataset.name`
289
+
290
+ ### Main changes
291
+ - `from_origin` has a new `base_name` property to allow multiple datasets of the same
292
+ `dataset_type` below the same origin.
293
+
294
+ ### Minor
295
+ - `add_mouse` can be given a dictionary of info instead of reading them from MCMS (to
296
+ allow for manual download)
297
+ - `add_experimental_session` uses parent path as base path. It means that parent must
298
+ have a path
299
+ - `CameraData.from_folder` has an option to detect partial datasets (i.e. without
300
+ timestamps or metadata)
301
+ - Reduce default verbosity of some functions
302
+ - `get_flexilims_sessions` can get a session without setting the project_id
303
+
304
+ ## v0.3.0
305
+
306
+ ### Breaking changes:
307
+ - All `flm_session` are now `flexilims_session` (harmonise with main functions)
308
+
309
+ ### Main changes
310
+ - Compatible with flexilims v0.2. `None` and `''` can both be uploaded.
311
+ - Dataset.is_raw can be autodetermined from path. If this fails, it **must** be
312
+ manually set.
313
+ - New function and CLI entry: `create_yaml` to create the skeleton of a yaml before
314
+ parsing.
315
+ - Extensions for microscopy datasets are now defined in the config file.
316
+ - ScanImage datasets have a `stack_type` attribute, default to `calcium`.
317
+ - Authorise `overwrite` when adding samples, sessions, recordings, or datasets.
318
+ - Add `flz.utils.check_flexilims_path` to verify that defined paths actually exist.
319
+ - Add `flz.utils.check_flexilims_names` to verify that entity names start with their
320
+ parent's name.
321
+ - Add `flz.utils.add_genealogy` to add a `genealogy` field to flexilims entries. This
322
+ field contains the list of parents ([mouse, session, recording] for instance) up to
323
+ the short name of the current entity
324
+ - Add `flz.utils.add_missing_paths` to update flexilims to add `path` attribute to
325
+ non-dataset entities that have a genealogy defined. The path is set to `project /
326
+ Path(*genealogy)` if this folder exists in the processed or raw root directory.
327
+
328
+ ### Bugfixes:
329
+ - ScanImage datasets tif files were uploaded as `file_list` instead of `tif_files`
330
+ - ScanImage dataset are recognised as such and not as MicroscopyData
331
+
332
+
333
+ ### Misc and minor:
334
+ - `get_entity` and `get_id` can work without specifying `datatype`
335
+ - `get_children` works without specifying datatype
336
+ - Tests are now using real data and require CAMP being mounted and configured.
337
+ - Dataset project is set when setting `Dataset.flexilims_session`
338
+
339
+
340
+ ## v0.2.2
341
+
342
+ - Names of files associated with `CameraData`, `HarpData` and `ScanimageData` datasets are now stored as extra attributes on Flexilims and not passed as separate arguments to the class constructors.
343
+ - `ScanimageData` are now detected by checking if TIFFs have metadata consistent with being created by Scanimage. Filenames of `ScanimageData` TIFFs have to follow the SI naming convention (`<acqname>_<acqnumber>_<filenumber>.tif` or `<acqname>_<acqnumber>.tif`, e.g. `zstack_00001_00001.tif`). Files from the same acquisition are grouped in the same dataset and their filenames are stored in the database. The benefit of this is that multiple acquisitions, each with multiple files, can now be stored in the same directory. This could create backward compatibility issues if you are using the `ScanimageData` class to access existing database entries. However, there should be no issues if you are only using it to add new data with `parse_yaml`.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Znamenskiy lab
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.
@@ -0,0 +1,22 @@
1
+ include LICENSE
2
+ include README.md
3
+ include CHANGELOG.md
4
+ recursive-include flexiznam *.py # Python code
5
+ recursive-include flexiznam *.yml
6
+
7
+ # Include notebooks but not "temp_" debug notebooks
8
+ recursive-exclude notebooks temp_*
9
+ recursive-exclude notebooks/.ipynb_checkpoints *
10
+ recursive-include notebooks *.ipynb
11
+
12
+ exclude pytest.ini
13
+ exclude .pre-commit-config.yaml
14
+ exclude update_docs.sh
15
+ recursive-exclude * *.jpeg
16
+ recursive-exclude * *.png
17
+ recursive-exclude * __pycache__
18
+ recursive-exclude * *.py[co]
19
+ recursive-exclude tests *
20
+ recursive-exclude docs *
21
+ recursive-exclude tests *
22
+ recursive-exclude .vscode *