superparsing 0.0.0.dev0__tar.gz → 0.0.0.dev2__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.
- {superparsing-0.0.0.dev0 → superparsing-0.0.0.dev2}/LICENSE.txt +1 -1
- {superparsing-0.0.0.dev0 → superparsing-0.0.0.dev2}/MANIFEST.in +1 -1
- {superparsing-0.0.0.dev0 → superparsing-0.0.0.dev2}/PKG-INFO +9 -9
- superparsing-0.0.0.dev2/README.rst +7 -0
- superparsing-0.0.0.dev2/make/env.py +85 -0
- {superparsing-0.0.0.dev0 → superparsing-0.0.0.dev2}/pyproject.toml +5 -5
- superparsing-0.0.0.dev2/run_tests.py +17 -0
- {superparsing-0.0.0.dev0/src → superparsing-0.0.0.dev2}/superparsing.egg-info/PKG-INFO +9 -9
- superparsing-0.0.0.dev2/superparsing.egg-info/SOURCES.txt +12 -0
- superparsing-0.0.0.dev2/superparsing.egg-info/top_level.txt +1 -0
- superparsing-0.0.0.dev2/tests/test_1984.py +10 -0
- superparsing-0.0.0.dev0/README.rst +0 -7
- superparsing-0.0.0.dev0/run_tests.py +0 -0
- superparsing-0.0.0.dev0/src/superparse/__init__.py +0 -0
- superparsing-0.0.0.dev0/src/superparsing.egg-info/SOURCES.txt +0 -12
- superparsing-0.0.0.dev0/src/superparsing.egg-info/top_level.txt +0 -1
- superparsing-0.0.0.dev0/tests/test_0.py +0 -0
- {superparsing-0.0.0.dev0 → superparsing-0.0.0.dev2}/setup.cfg +0 -0
- {superparsing-0.0.0.dev0/src → superparsing-0.0.0.dev2}/superparsing.egg-info/dependency_links.txt +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superparsing
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev2
|
|
4
4
|
Summary: This project does superparsing.
|
|
5
5
|
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Download, https://pypi.org/project/
|
|
8
|
-
Project-URL: Index, https://pypi.org/project/
|
|
9
|
-
Project-URL: Source, https://github.com/johannes-programming/
|
|
10
|
-
Project-URL: Website, https://
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/superparsing/#files
|
|
8
|
+
Project-URL: Index, https://pypi.org/project/superparsing/
|
|
9
|
+
Project-URL: Source, https://github.com/johannes-programming/superparsing/
|
|
10
|
+
Project-URL: Website, https://superparsing.johannes-programming.online/
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Natural Language :: English
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
@@ -20,10 +20,10 @@ Description-Content-Type: text/x-rst
|
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
============
|
|
24
|
+
superparsing
|
|
25
|
+
============
|
|
26
26
|
|
|
27
27
|
Each minor version has its own documentation.
|
|
28
28
|
These docs can be found as rst-files the ``docs/`` directory of this project.
|
|
29
|
-
They can also be viewed on the website `https://
|
|
29
|
+
They can also be viewed on the website `https://superparsing.johannes-programming.online/ <https://superparsing.johannes-programming.online/>`_.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
============
|
|
2
|
+
superparsing
|
|
3
|
+
============
|
|
4
|
+
|
|
5
|
+
Each minor version has its own documentation.
|
|
6
|
+
These docs can be found as rst-files the ``docs/`` directory of this project.
|
|
7
|
+
They can also be viewed on the website `https://superparsing.johannes-programming.online/ <https://superparsing.johannes-programming.online/>`_.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
import json
|
|
3
|
+
import subprocess
|
|
4
|
+
from typing import Any, Optional
|
|
5
|
+
|
|
6
|
+
__all__ = ["main", "run"]
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def env_create(env: str, python: Optional[str]) -> subprocess.CompletedProcess: # type: ignore[type-arg]
|
|
10
|
+
args: list[str]
|
|
11
|
+
args = [
|
|
12
|
+
"conda",
|
|
13
|
+
"create",
|
|
14
|
+
"--name",
|
|
15
|
+
env,
|
|
16
|
+
"--yes",
|
|
17
|
+
"--channel",
|
|
18
|
+
"conda-forge",
|
|
19
|
+
"--override-channels",
|
|
20
|
+
]
|
|
21
|
+
if python is not None:
|
|
22
|
+
args.append("python=" + python)
|
|
23
|
+
return subprocess.run(
|
|
24
|
+
args,
|
|
25
|
+
check=True,
|
|
26
|
+
capture_output=True,
|
|
27
|
+
text=True,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def env_list() -> list[str]:
|
|
32
|
+
ans: list[str]
|
|
33
|
+
data: Any
|
|
34
|
+
result: subprocess.CompletedProcess # type: ignore[type-arg]
|
|
35
|
+
try:
|
|
36
|
+
result = subprocess.run(
|
|
37
|
+
["conda", "env", "list", "--json"],
|
|
38
|
+
check=True,
|
|
39
|
+
capture_output=True,
|
|
40
|
+
text=True,
|
|
41
|
+
)
|
|
42
|
+
except (subprocess.CalledProcessError, FileNotFoundError):
|
|
43
|
+
return []
|
|
44
|
+
data = json.loads(result.stdout)
|
|
45
|
+
ans = list()
|
|
46
|
+
for details in data["envs_details"].values():
|
|
47
|
+
ans.append(str(details["name"]))
|
|
48
|
+
return ans
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def env_remove(env: str) -> subprocess.CompletedProcess: # type: ignore[type-arg]
|
|
52
|
+
args: list[str]
|
|
53
|
+
args = ["conda", "env", "remove", "-y", "-n", env]
|
|
54
|
+
return subprocess.run(args, check=True)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def main(args: Optional[list[str]] = None, /) -> None:
|
|
58
|
+
kwargs: dict[str, Any]
|
|
59
|
+
parser: argparse.ArgumentParser
|
|
60
|
+
parser = argparse.ArgumentParser(fromfile_prefix_chars="@")
|
|
61
|
+
# parser.add_argument("--errfile", default="-")
|
|
62
|
+
# parser.add_argument("--outfile", default="-")
|
|
63
|
+
parser.add_argument("--python")
|
|
64
|
+
parser.add_argument("--recreate", action="store_true")
|
|
65
|
+
parser.add_argument("envs", default=[], nargs="*")
|
|
66
|
+
kwargs = vars(parser.parse_args(args))
|
|
67
|
+
run(*kwargs.pop("envs"), **kwargs)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def run(
|
|
71
|
+
*envs: str, python: Optional[str] = None, recreate: bool = False
|
|
72
|
+
) -> None:
|
|
73
|
+
env: str
|
|
74
|
+
envs_: list[str]
|
|
75
|
+
envs_ = env_list()
|
|
76
|
+
for env in envs:
|
|
77
|
+
if env in envs_ and not recreate:
|
|
78
|
+
continue
|
|
79
|
+
if env in envs_:
|
|
80
|
+
env_remove(env)
|
|
81
|
+
env_create(env, python=python)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
if __name__ == "__main__":
|
|
85
|
+
main()
|
|
@@ -27,13 +27,13 @@ license-files = [
|
|
|
27
27
|
name = "superparsing"
|
|
28
28
|
readme = "README.rst"
|
|
29
29
|
requires-python = ">=3.11"
|
|
30
|
-
version = "0.0.0.
|
|
30
|
+
version = "0.0.0.dev2"
|
|
31
31
|
|
|
32
32
|
[project.urls]
|
|
33
|
-
Download = "https://pypi.org/project/
|
|
34
|
-
Index = "https://pypi.org/project/
|
|
35
|
-
Source = "https://github.com/johannes-programming/
|
|
36
|
-
Website = "https://
|
|
33
|
+
Download = "https://pypi.org/project/superparsing/#files"
|
|
34
|
+
Index = "https://pypi.org/project/superparsing/"
|
|
35
|
+
Source = "https://github.com/johannes-programming/superparsing/"
|
|
36
|
+
Website = "https://superparsing.johannes-programming.online/"
|
|
37
37
|
|
|
38
38
|
[tool.mypy]
|
|
39
39
|
files = [
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import unittest
|
|
2
|
+
|
|
3
|
+
__all__ = ["main"]
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main() -> unittest.TextTestResult:
|
|
7
|
+
loader: unittest.TestLoader
|
|
8
|
+
suite: unittest.TestSuite
|
|
9
|
+
runner: unittest.TextTestRunner
|
|
10
|
+
loader = unittest.TestLoader()
|
|
11
|
+
suite = loader.discover("tests")
|
|
12
|
+
runner = unittest.TextTestRunner(verbosity=2)
|
|
13
|
+
return runner.run(suite)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
main()
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: superparsing
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev2
|
|
4
4
|
Summary: This project does superparsing.
|
|
5
5
|
Author-email: Johannes <johannes.programming@gmail.com>
|
|
6
6
|
License-Expression: MIT
|
|
7
|
-
Project-URL: Download, https://pypi.org/project/
|
|
8
|
-
Project-URL: Index, https://pypi.org/project/
|
|
9
|
-
Project-URL: Source, https://github.com/johannes-programming/
|
|
10
|
-
Project-URL: Website, https://
|
|
7
|
+
Project-URL: Download, https://pypi.org/project/superparsing/#files
|
|
8
|
+
Project-URL: Index, https://pypi.org/project/superparsing/
|
|
9
|
+
Project-URL: Source, https://github.com/johannes-programming/superparsing/
|
|
10
|
+
Project-URL: Website, https://superparsing.johannes-programming.online/
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Natural Language :: English
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
@@ -20,10 +20,10 @@ Description-Content-Type: text/x-rst
|
|
|
20
20
|
License-File: LICENSE.txt
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
============
|
|
24
|
+
superparsing
|
|
25
|
+
============
|
|
26
26
|
|
|
27
27
|
Each minor version has its own documentation.
|
|
28
28
|
These docs can be found as rst-files the ``docs/`` directory of this project.
|
|
29
|
-
They can also be viewed on the website `https://
|
|
29
|
+
They can also be viewed on the website `https://superparsing.johannes-programming.online/ <https://superparsing.johannes-programming.online/>`_.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
LICENSE.txt
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.rst
|
|
4
|
+
pyproject.toml
|
|
5
|
+
run_tests.py
|
|
6
|
+
setup.cfg
|
|
7
|
+
make/env.py
|
|
8
|
+
superparsing.egg-info/PKG-INFO
|
|
9
|
+
superparsing.egg-info/SOURCES.txt
|
|
10
|
+
superparsing.egg-info/dependency_links.txt
|
|
11
|
+
superparsing.egg-info/top_level.txt
|
|
12
|
+
tests/test_1984.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
make
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
==========
|
|
2
|
-
superparse
|
|
3
|
-
==========
|
|
4
|
-
|
|
5
|
-
Each minor version has its own documentation.
|
|
6
|
-
These docs can be found as rst-files the ``docs/`` directory of this project.
|
|
7
|
-
They can also be viewed on the website `https://superparse.johannes-programming.online/ <https://superparse.johannes-programming.online/>`_.
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
LICENSE.txt
|
|
2
|
-
MANIFEST.in
|
|
3
|
-
README.rst
|
|
4
|
-
pyproject.toml
|
|
5
|
-
run_tests.py
|
|
6
|
-
setup.cfg
|
|
7
|
-
src/superparse/__init__.py
|
|
8
|
-
src/superparsing.egg-info/PKG-INFO
|
|
9
|
-
src/superparsing.egg-info/SOURCES.txt
|
|
10
|
-
src/superparsing.egg-info/dependency_links.txt
|
|
11
|
-
src/superparsing.egg-info/top_level.txt
|
|
12
|
-
tests/test_0.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
superparse
|
|
File without changes
|
|
File without changes
|
{superparsing-0.0.0.dev0/src → superparsing-0.0.0.dev2}/superparsing.egg-info/dependency_links.txt
RENAMED
|
File without changes
|