plotis 0.1.6.2__tar.gz → 0.1.9__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.
- plotis-0.1.6.2/.github/workflows/publish.yml → plotis-0.1.9/.github/workflows/publish_prod.yml +5 -29
- plotis-0.1.9/.github/workflows/publish_test.yml +60 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/PKG-INFO +3 -3
- {plotis-0.1.6.2 → plotis-0.1.9}/README.md +1 -1
- {plotis-0.1.6.2 → plotis-0.1.9}/pyproject.toml +2 -2
- {plotis-0.1.6.2 → plotis-0.1.9}/.github/workflows/tests.yml +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/.gitignore +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/LICENCE +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/examples/ex1/Makefile +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/examples/ex1/main.pdf +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/examples/ex1/main.tex +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/examples/ex1/plot_sript.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/plotis/__init__.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/plotis/plotis.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/__init__.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/conftest.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/data/__init__.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/data/sample_calling_file.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/data/sample_calling_file_linecount.py +0 -0
- {plotis-0.1.6.2 → plotis-0.1.9}/tests/test_plotis.py +0 -0
plotis-0.1.6.2/.github/workflows/publish.yml → plotis-0.1.9/.github/workflows/publish_prod.yml
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# This workflow will,
|
|
2
|
-
# TestPyPI. Moreover, if the commit is tagged, it will also be published on PyPI.
|
|
1
|
+
# This workflow will, on push to tag, build the project and publish it PyPI and GH.
|
|
3
2
|
|
|
4
|
-
name: Publish Python 🐍 distribution 📦 to PyPI and
|
|
3
|
+
name: Publish Python 🐍 distribution 📦 to PyPI and GitHub
|
|
5
4
|
|
|
6
5
|
on:
|
|
7
6
|
push:
|
|
8
|
-
|
|
7
|
+
tags:
|
|
8
|
+
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
9
9
|
|
|
10
10
|
jobs:
|
|
11
11
|
build:
|
|
@@ -35,34 +35,10 @@ jobs:
|
|
|
35
35
|
name: python-package-distributions
|
|
36
36
|
path: dist/
|
|
37
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
38
|
publish-to-pypi:
|
|
63
39
|
name: >-
|
|
64
40
|
Publish Python 🐍 distribution 📦 to PyPI
|
|
65
|
-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
41
|
+
#if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
|
66
42
|
needs:
|
|
67
43
|
- build
|
|
68
44
|
runs-on: ubuntu-latest
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# This workflow will, when pushing to main, build the project and publish it on
|
|
2
|
+
# TestPyPI.
|
|
3
|
+
|
|
4
|
+
name: Publish Python 🐍 distribution 📦 to 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/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: plotis
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Plot isolation tool for
|
|
3
|
+
Version: 0.1.9
|
|
4
|
+
Summary: Plot isolation tool for python
|
|
5
5
|
Project-URL: Homepage, https://github.com/victorbrun/plotis
|
|
6
6
|
Project-URL: Issues, https://github.com/victorbrun/plotis/issues
|
|
7
7
|
Author-email: Victor Brun <me@victorbrun.com>
|
|
@@ -58,7 +58,7 @@ with PlotIs(figure_folder, sample_data):
|
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
## LaTeX project example
|
|
61
|
-
As this package was motivate by large documentation projects, this example will showcase how to "
|
|
61
|
+
As this package was motivate by large documentation projects, this example will showcase how to "hijack" the compilation process of a LaTeX document to insert the figure produced by above example.
|
|
62
62
|
|
|
63
63
|
Consider a LaTeX document containing the following content:
|
|
64
64
|
```latex
|
|
@@ -41,7 +41,7 @@ with PlotIs(figure_folder, sample_data):
|
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
## LaTeX project example
|
|
44
|
-
As this package was motivate by large documentation projects, this example will showcase how to "
|
|
44
|
+
As this package was motivate by large documentation projects, this example will showcase how to "hijack" the compilation process of a LaTeX document to insert the figure produced by above example.
|
|
45
45
|
|
|
46
46
|
Consider a LaTeX document containing the following content:
|
|
47
47
|
```latex
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "plotis"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.9"
|
|
4
4
|
authors = [
|
|
5
5
|
{ name="Victor Brun", email="me@victorbrun.com" },
|
|
6
6
|
]
|
|
7
|
-
description = "Plot isolation tool for
|
|
7
|
+
description = "Plot isolation tool for python"
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
requires-python = ">=3.9"
|
|
10
10
|
classifiers = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|