plotis 0.1.6.2__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.
@@ -0,0 +1,126 @@
1
+ # This workflow will, when pushing to main, build the project and publish it on
2
+ # TestPyPI. Moreover, if the commit is tagged, it will also be published on PyPI.
3
+
4
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
5
+
6
+ on:
7
+ push:
8
+ branches: [ "main" ]
9
+
10
+ jobs:
11
+ build:
12
+ name: Build distribution 📦
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Set up Python 3.10
18
+ uses: actions/setup-python@v5
19
+ with:
20
+ python-version: "3.10"
21
+
22
+ - name: Install pypa/build
23
+ run: >-
24
+ python3 -m
25
+ pip install
26
+ build
27
+ --user
28
+
29
+ - name: Build a binary wheel and a source tarball
30
+ run: python3 -m build
31
+
32
+ - name: Store the distribution packages
33
+ uses: actions/upload-artifact@v3
34
+ with:
35
+ name: python-package-distributions
36
+ path: dist/
37
+
38
+ publish-to-testpypi:
39
+ name: Publish Python 🐍 distribution 📦 to TestPyPI
40
+ needs:
41
+ - build
42
+ runs-on: ubuntu-latest
43
+
44
+ environment:
45
+ name: testpypi
46
+ url: https://test.pypi.org/p/plotis
47
+
48
+ permissions:
49
+ id-token: write # IMPORTANT: mandatory for trusted publishing
50
+
51
+ steps:
52
+ - name: Download all the dists
53
+ uses: actions/download-artifact@v3
54
+ with:
55
+ name: python-package-distributions
56
+ path: dist/
57
+ - name: Publish distribution 📦 to TestPyPI
58
+ uses: pypa/gh-action-pypi-publish@release/v1
59
+ with:
60
+ repository-url: https://test.pypi.org/legacy/
61
+
62
+ publish-to-pypi:
63
+ name: >-
64
+ Publish Python 🐍 distribution 📦 to PyPI
65
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
66
+ needs:
67
+ - build
68
+ runs-on: ubuntu-latest
69
+ environment:
70
+ name: pypi
71
+ url: https://pypi.org/p/plotis # Replace <package-name> with your PyPI project name
72
+ permissions:
73
+ id-token: write # IMPORTANT: mandatory for trusted publishing
74
+
75
+ steps:
76
+ - name: Download all the dists
77
+ uses: actions/download-artifact@v3
78
+ with:
79
+ name: python-package-distributions
80
+ path: dist/
81
+
82
+ - name: Publish distribution 📦 to PyPI
83
+ uses: pypa/gh-action-pypi-publish@release/v1
84
+
85
+ github-release:
86
+ name: >-
87
+ Sign the Python 🐍 distribution 📦 with Sigstore
88
+ and upload them to GitHub Release
89
+ needs:
90
+ - publish-to-pypi
91
+ runs-on: ubuntu-latest
92
+
93
+ permissions:
94
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
95
+ id-token: write # IMPORTANT: mandatory for sigstore
96
+
97
+ steps:
98
+ - name: Download all the dists
99
+ uses: actions/download-artifact@v3
100
+ with:
101
+ name: python-package-distributions
102
+ path: dist/
103
+ - name: Sign the dists with Sigstore
104
+ uses: sigstore/gh-action-sigstore-python@v2.1.1
105
+ with:
106
+ inputs: >-
107
+ ./dist/*.tar.gz
108
+ ./dist/*.whl
109
+ - name: Create GitHub Release
110
+ env:
111
+ GITHUB_TOKEN: ${{ github.token }}
112
+ run: >-
113
+ gh release create
114
+ '${{ github.ref_name }}'
115
+ --repo '${{ github.repository }}'
116
+ --notes ""
117
+ - name: Upload artifact signatures to GitHub Release
118
+ env:
119
+ GITHUB_TOKEN: ${{ github.token }}
120
+ # Upload to GitHub Release using the `gh` CLI.
121
+ # `dist/` contains the built packages, and the
122
+ # sigstore-produced signatures and certificates.
123
+ run: >-
124
+ gh release upload
125
+ '${{ github.ref_name }}' dist/**
126
+ --repo '${{ github.repository }}'
@@ -0,0 +1,39 @@
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name: Test workflow
5
+
6
+ on:
7
+ push:
8
+ branches: [ "main" ]
9
+ pull_request:
10
+ branches: [ "main" ]
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ test:
17
+
18
+ runs-on: ubuntu-latest
19
+
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Set up Python 3.10
23
+ uses: actions/setup-python@v3
24
+ with:
25
+ python-version: "3.10"
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install flake8 pytest pandas numpy matplotlib
30
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ - name: Lint with flake8
32
+ run: |
33
+ # stop the build if there are Python syntax errors or undefined names
34
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
36
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37
+ - name: Test with pytest
38
+ run: |
39
+ pytest
@@ -0,0 +1,470 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # poetry
98
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102
+ #poetry.lock
103
+
104
+ # pdm
105
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106
+ #pdm.lock
107
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108
+ # in version control.
109
+ # https://pdm.fming.dev/#use-with-ide
110
+ .pdm.toml
111
+
112
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113
+ __pypackages__/
114
+
115
+ # Celery stuff
116
+ celerybeat-schedule
117
+ celerybeat.pid
118
+
119
+ # SageMath parsed files
120
+ *.sage.py
121
+
122
+ # Environments
123
+ .env
124
+ .venv
125
+ env/
126
+ venv/
127
+ ENV/
128
+ env.bak/
129
+ venv.bak/
130
+
131
+ # Spyder project settings
132
+ .spyderproject
133
+ .spyproject
134
+
135
+ # Rope project settings
136
+ .ropeproject
137
+
138
+ # mkdocs documentation
139
+ /site
140
+
141
+ # mypy
142
+ .mypy_cache/
143
+ .dmypy.json
144
+ dmypy.json
145
+
146
+ # Pyre type checker
147
+ .pyre/
148
+
149
+ # pytype static type analyzer
150
+ .pytype/
151
+
152
+ # Cython debug symbols
153
+ cython_debug/
154
+
155
+ # PyCharm
156
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
159
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
160
+ #.idea/
161
+
162
+ ### LaTeX ###
163
+ ## Core latex/pdflatex auxiliary files:
164
+ *.aux
165
+ *.lof
166
+ *.log
167
+ *.lot
168
+ *.fls
169
+ *.out
170
+ *.toc
171
+ *.fmt
172
+ *.fot
173
+ *.cb
174
+ *.cb2
175
+ .*.lb
176
+
177
+ ## Intermediate documents:
178
+ *.dvi
179
+ *.xdv
180
+ *-converted-to.*
181
+ # these rules might exclude image files for figures etc.
182
+ # *.ps
183
+ # *.eps
184
+ # *.pdf
185
+
186
+ ## Generated if empty string is given at "Please type another file name for output:"
187
+ .pdf
188
+
189
+ ## Bibliography auxiliary files (bibtex/biblatex/biber):
190
+ *.bbl
191
+ *.bcf
192
+ *.blg
193
+ *-blx.aux
194
+ *-blx.bib
195
+ *.run.xml
196
+
197
+ ## Build tool auxiliary files:
198
+ *.fdb_latexmk
199
+ *.synctex
200
+ *.synctex(busy)
201
+ *.synctex.gz
202
+ *.synctex.gz(busy)
203
+ *.pdfsync
204
+
205
+ ## Build tool directories for auxiliary files
206
+ # latexrun
207
+ latex.out/
208
+
209
+ ## Auxiliary and intermediate files from other packages:
210
+ # algorithms
211
+ *.alg
212
+ *.loa
213
+
214
+ # achemso
215
+ acs-*.bib
216
+
217
+ # amsthm
218
+ *.thm
219
+
220
+ # beamer
221
+ *.nav
222
+ *.pre
223
+ *.snm
224
+ *.vrb
225
+
226
+ # changes
227
+ *.soc
228
+
229
+ # comment
230
+ *.cut
231
+
232
+ # cprotect
233
+ *.cpt
234
+
235
+ # elsarticle (documentclass of Elsevier journals)
236
+ *.spl
237
+
238
+ # endnotes
239
+ *.ent
240
+
241
+ # fixme
242
+ *.lox
243
+
244
+ # feynmf/feynmp
245
+ *.mf
246
+ *.mp
247
+ *.t[1-9]
248
+ *.t[1-9][0-9]
249
+ *.tfm
250
+
251
+ #(r)(e)ledmac/(r)(e)ledpar
252
+ *.end
253
+ *.?end
254
+ *.[1-9]
255
+ *.[1-9][0-9]
256
+ *.[1-9][0-9][0-9]
257
+ *.[1-9]R
258
+ *.[1-9][0-9]R
259
+ *.[1-9][0-9][0-9]R
260
+ *.eledsec[1-9]
261
+ *.eledsec[1-9]R
262
+ *.eledsec[1-9][0-9]
263
+ *.eledsec[1-9][0-9]R
264
+ *.eledsec[1-9][0-9][0-9]
265
+ *.eledsec[1-9][0-9][0-9]R
266
+
267
+ # glossaries
268
+ *.acn
269
+ *.acr
270
+ *.glg
271
+ *.glo
272
+ *.gls
273
+ *.glsdefs
274
+ *.lzo
275
+ *.lzs
276
+ *.slg
277
+ *.slo
278
+ *.sls
279
+
280
+ # uncomment this for glossaries-extra (will ignore makeindex's style files!)
281
+ # *.ist
282
+
283
+ # gnuplot
284
+ *.gnuplot
285
+ *.table
286
+
287
+ # gnuplottex
288
+ *-gnuplottex-*
289
+
290
+ # gregoriotex
291
+ *.gaux
292
+ *.glog
293
+ *.gtex
294
+
295
+ # htlatex
296
+ *.4ct
297
+ *.4tc
298
+ *.idv
299
+ *.lg
300
+ *.trc
301
+ *.xref
302
+
303
+ # hyperref
304
+ *.brf
305
+
306
+ # knitr
307
+ *-concordance.tex
308
+ # TODO Uncomment the next line if you use knitr and want to ignore its generated tikz files
309
+ # *.tikz
310
+ *-tikzDictionary
311
+
312
+ # listings
313
+ *.lol
314
+
315
+ # luatexja-ruby
316
+ *.ltjruby
317
+
318
+ # makeidx
319
+ *.idx
320
+ *.ilg
321
+ *.ind
322
+
323
+ # minitoc
324
+ *.maf
325
+ *.mlf
326
+ *.mlt
327
+ *.mtc[0-9]*
328
+ *.slf[0-9]*
329
+ *.slt[0-9]*
330
+ *.stc[0-9]*
331
+
332
+ # minted
333
+ _minted*
334
+ *.pyg
335
+
336
+ # morewrites
337
+ *.mw
338
+
339
+ # newpax
340
+ *.newpax
341
+
342
+ # nomencl
343
+ *.nlg
344
+ *.nlo
345
+ *.nls
346
+
347
+ # pax
348
+ *.pax
349
+
350
+ # pdfpcnotes
351
+ *.pdfpc
352
+
353
+ # sagetex
354
+ *.sagetex.sage
355
+ *.sagetex.py
356
+ *.sagetex.scmd
357
+
358
+ # scrwfile
359
+ *.wrt
360
+
361
+ # svg
362
+ svg-inkscape/
363
+
364
+ # sympy
365
+ *.sout
366
+ *.sympy
367
+ sympy-plots-for-*.tex/
368
+
369
+ # pdfcomment
370
+ *.upa
371
+ *.upb
372
+
373
+ # pythontex
374
+ *.pytxcode
375
+ pythontex-files-*/
376
+
377
+ # tcolorbox
378
+ *.listing
379
+
380
+ # thmtools
381
+ *.loe
382
+
383
+ # TikZ & PGF
384
+ *.dpth
385
+ *.md5
386
+ *.auxlock
387
+
388
+ # titletoc
389
+ *.ptc
390
+
391
+ # todonotes
392
+ *.tdo
393
+
394
+ # vhistory
395
+ *.hst
396
+ *.ver
397
+
398
+ # easy-todo
399
+ *.lod
400
+
401
+ # xcolor
402
+ *.xcp
403
+
404
+ # xmpincl
405
+ *.xmpi
406
+
407
+ # xindy
408
+ *.xdy
409
+
410
+ # xypic precompiled matrices and outlines
411
+ *.xyc
412
+ *.xyd
413
+
414
+ # endfloat
415
+ *.ttt
416
+ *.fff
417
+
418
+ # Latexian
419
+ TSWLatexianTemp*
420
+
421
+ ## Editors:
422
+ # WinEdt
423
+ *.bak
424
+ *.sav
425
+
426
+ # Texpad
427
+ .texpadtmp
428
+
429
+ # LyX
430
+ *.lyx~
431
+
432
+ # Kile
433
+ *.backup
434
+
435
+ # gummi
436
+ .*.swp
437
+
438
+ # KBibTeX
439
+ *~[0-9]*
440
+
441
+ # TeXnicCenter
442
+ *.tps
443
+
444
+ # auto folder when using emacs and auctex
445
+ ./auto/*
446
+ *.el
447
+
448
+ # expex forward references with \gathertags
449
+ *-tags.tex
450
+
451
+ # standalone packages
452
+ *.sta
453
+
454
+ # Makeindex log files
455
+ *.lpz
456
+
457
+ # xwatermark package
458
+ *.xwm
459
+
460
+ # REVTeX puts footnotes in the bibliography by default, unless the nofootinbib
461
+ # option is specified. Footnotes are the stored in a file with suffix Notes.bib.
462
+ # Uncomment the next line to have this generated file ignored.
463
+ #*Notes.bib
464
+
465
+ ### LaTeX Patch ###
466
+ # LIPIcs / OASIcs
467
+ *.vtc
468
+
469
+ # glossaries
470
+ *.glstex
plotis-0.1.6.2/LICENCE ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, Victor Brun
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.