jupytergis-lite 0.3.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.
@@ -0,0 +1,144 @@
1
+ *.bundle.*
2
+ lib/
3
+ node_modules/
4
+ *.egg-info/
5
+ .ipynb_checkpoints
6
+ *.tsbuildinfo
7
+ jupytergis/labextension
8
+
9
+ # Created by https://www.gitignore.io/api/python
10
+ # Edit at https://www.gitignore.io/?templates=python
11
+ jupytergis/_version.py
12
+
13
+ ### Python ###
14
+ # Byte-compiled / optimized / DLL files
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+
19
+ # C extensions
20
+ *.so
21
+
22
+ # Virtual environment
23
+ .venv
24
+
25
+ # Distribution / packaging
26
+ .Python
27
+ build/
28
+ build_dir/
29
+ develop-eggs/
30
+ dist/
31
+ downloads/
32
+ eggs/
33
+ .eggs/
34
+ lib/
35
+ lib64/
36
+ parts/
37
+ sdist/
38
+ var/
39
+ wheels/
40
+ pip-wheel-metadata/
41
+ share/python-wheels/
42
+ .installed.cfg
43
+ *.egg
44
+ MANIFEST
45
+ _output
46
+
47
+ # PyInstaller
48
+ # Usually these files are written by a python script from a template
49
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
50
+ *.manifest
51
+ *.spec
52
+
53
+ # Installer logs
54
+ pip-log.txt
55
+ pip-delete-this-directory.txt
56
+
57
+ # Unit test / coverage reports
58
+ htmlcov/
59
+ .tox/
60
+ .nox/
61
+ .coverage
62
+ .coverage.*
63
+ .cache
64
+ nosetests.xml
65
+ coverage.xml
66
+ *.cover
67
+ .hypothesis/
68
+ .pytest_cache/
69
+
70
+ # Translations
71
+ *.mo
72
+ *.pot
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ target/
82
+
83
+ # pyenv
84
+ .python-version
85
+
86
+ # celery beat schedule file
87
+ celerybeat-schedule
88
+
89
+ # SageMath parsed files
90
+ *.sage.py
91
+
92
+ # Spyder project settings
93
+ .spyderproject
94
+ .spyproject
95
+
96
+ # Rope project settings
97
+ .ropeproject
98
+
99
+ # Mr Developer
100
+ .mr.developer.cfg
101
+ .project
102
+ .pydevproject
103
+
104
+ # mkdocs documentation
105
+ /site
106
+
107
+ # mypy
108
+ .mypy_cache/
109
+ .dmypy.json
110
+ dmypy.json
111
+
112
+ # Pyre type checker
113
+ .pyre/
114
+
115
+ # End of https://www.gitignore.io/api/python
116
+
117
+ # OSX files
118
+ .DS_Store
119
+ .vscode
120
+
121
+ **/_interface/
122
+ *.db
123
+ .eslintcache
124
+ # Integration tests
125
+ **/ui-tests/test-results/
126
+ **/ui-tests/playwright-report/
127
+
128
+ examples/Untitled*.ipynb
129
+ # Hatchling
130
+ jupytergis/_version.py
131
+
132
+ .yarn
133
+
134
+ python/jupytergis_qgis/jupytergis_qgis/labextension/
135
+ python/jupytergis_lab/jupytergis_lab/labextension/
136
+ python/jupytergis_lab/jupytergis_lab/notebook/objects/_schema
137
+
138
+ untitled*
139
+
140
+ # nx cache stuff
141
+ .nx
142
+
143
+ # GeoJSON schema
144
+ packages/schema/src/schema/geojson.json
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, JupyterGIS contributors
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.4
2
+ Name: jupytergis-lite
3
+ Version: 0.3.0
4
+ License: BSD 3-Clause License
5
+
6
+ Copyright (c) 2025, JupyterGIS contributors
7
+ All rights reserved.
8
+
9
+ Redistribution and use in source and binary forms, with or without
10
+ modification, are permitted provided that the following conditions are met:
11
+
12
+ 1. Redistributions of source code must retain the above copyright notice, this
13
+ list of conditions and the following disclaimer.
14
+
15
+ 2. Redistributions in binary form must reproduce the above copyright notice,
16
+ this list of conditions and the following disclaimer in the documentation
17
+ and/or other materials provided with the distribution.
18
+
19
+ 3. Neither the name of the copyright holder nor the names of its
20
+ contributors may be used to endorse or promote products derived from
21
+ this software without specific prior written permission.
22
+
23
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ License-File: LICENSE
34
+ Classifier: Framework :: Jupyter
35
+ Classifier: Framework :: Jupyter :: JupyterLab
36
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
37
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
38
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
39
+ Classifier: License :: OSI Approved :: BSD License
40
+ Classifier: Programming Language :: Python
41
+ Classifier: Programming Language :: Python :: 3
42
+ Classifier: Programming Language :: Python :: 3.8
43
+ Classifier: Programming Language :: Python :: 3.9
44
+ Classifier: Programming Language :: Python :: 3.10
45
+ Classifier: Programming Language :: Python :: 3.11
46
+ Classifier: Programming Language :: Python :: 3.12
47
+ Requires-Python: >=3.10
48
+ Requires-Dist: jupytergis-core==0.4.0
49
+ Requires-Dist: jupytergis-lab==0.4.0
50
+ Requires-Dist: my-jupyter-shared-drive
51
+ Description-Content-Type: text/markdown
52
+
53
+ # JupyterGIS meta-package for JupyterLite
@@ -0,0 +1 @@
1
+ # JupyterGIS meta-package for JupyterLite
@@ -0,0 +1,3 @@
1
+ __version__ = "0.3.0"
2
+
3
+ from jupytergis_lab import GISDocument # noqa
@@ -0,0 +1,43 @@
1
+ [build-system]
2
+ build-backend = "hatchling.build"
3
+ requires = ["hatchling>=1.5.0,<2"]
4
+
5
+ [project]
6
+ classifiers = [
7
+ "Framework :: Jupyter",
8
+ "Framework :: Jupyter :: JupyterLab",
9
+ "Framework :: Jupyter :: JupyterLab :: 4",
10
+ "Framework :: Jupyter :: JupyterLab :: Extensions",
11
+ "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
12
+ "License :: OSI Approved :: BSD License",
13
+ "Programming Language :: Python",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: 3.8",
16
+ "Programming Language :: Python :: 3.9",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ ]
21
+ dependencies = [
22
+ "jupytergis_core==0.4.0",
23
+ "jupytergis_lab==0.4.0",
24
+ "my-jupyter-shared-drive",
25
+ ]
26
+ dynamic = ["version"]
27
+ license = {file = "LICENSE"}
28
+ name = "jupytergis-lite"
29
+ readme = "README.md"
30
+ requires-python = ">=3.10"
31
+
32
+
33
+ [tool.hatch.version]
34
+ path = "jupytergis/__init__.py"
35
+
36
+ [tool.hatch.build.targets.wheel]
37
+ packages = ["jupytergis"]
38
+
39
+ [tool.jupyter-releaser.options]
40
+ version_cmd = "hatch version"
41
+
42
+ [tool.check-wheel-contents]
43
+ ignore = ["W002"]
@@ -0,0 +1,50 @@
1
+ from pathlib import Path
2
+ from subprocess import run
3
+ from typing import List
4
+ from packaging.version import parse as parse_version
5
+ import tomlkit
6
+ import argparse
7
+
8
+ HATCH_VERSION = "hatch version"
9
+ ROOT = Path(__file__).parent.parent
10
+
11
+
12
+ def get_version():
13
+ cmd = run([HATCH_VERSION], capture_output=True, shell=True, check=True, cwd=ROOT)
14
+ return cmd.stdout.decode("utf-8").strip().split("\n")[-1]
15
+
16
+
17
+ def next_version():
18
+ v = parse_version(get_version())
19
+ if v.is_prerelease:
20
+ return f"{v.major}.{v.minor}.{v.micro}{v.pre[0]}{v.pre[1] + 1}"
21
+ return f"{v.major}.{v.minor}.{v.micro + 1}"
22
+
23
+
24
+ def bump_jupytergis_deps(py_version: str):
25
+ with open(ROOT / "pyproject.toml", "r") as f:
26
+ data = tomlkit.load(f)
27
+ dependencies: List[str] = data["project"]["dependencies"]
28
+
29
+ for index, value in enumerate(dependencies):
30
+ if value.startswith("jupytergis"):
31
+ lib = value.split("==")[0]
32
+ dependencies[index] = f"{lib}=={py_version}"
33
+
34
+ with open(ROOT / "pyproject.toml", "w") as f:
35
+ tomlkit.dump(data, f)
36
+
37
+
38
+ def bump():
39
+ parser = argparse.ArgumentParser()
40
+ parser.add_argument("version")
41
+ args = parser.parse_args()
42
+ py_version = next_version() if args.version == "next" else args.version
43
+ # bump the Python version with hatch
44
+ run(f"{HATCH_VERSION}", shell=True, check=True, cwd=ROOT)
45
+ # pin jupytergis_* package to the same version
46
+ bump_jupytergis_deps(py_version)
47
+
48
+
49
+ if __name__ == "__main__":
50
+ bump()
@@ -0,0 +1 @@
1
+ __import__("setuptools").setup()