soft7 0.0.6__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,78 @@
1
+ name: CI - Tests
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - 'main'
8
+
9
+ jobs:
10
+
11
+ pre-commit:
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v3
17
+
18
+ - name: Set up Python 3.9
19
+ uses: actions/setup-python@v3
20
+ with:
21
+ python-version: "3.9"
22
+
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install -U setuptools wheel flit
27
+ pip install .[dev]
28
+
29
+ - name: Test with pre-commit
30
+ run: SKIP=pylint pre-commit run --all-files
31
+
32
+ pylint-safety:
33
+ runs-on: ubuntu-latest
34
+
35
+ steps:
36
+ - name: Checkout repository
37
+ uses: actions/checkout@v3
38
+ with:
39
+ fetch-depth: 2
40
+
41
+ - name: Set up Python 3.9
42
+ uses: actions/setup-python@v3
43
+ with:
44
+ python-version: "3.9"
45
+
46
+ - name: Install dependencies
47
+ run: |
48
+ python -m pip install -U pip
49
+ pip install -U setuptools wheel flit
50
+ pip install -e .[dev]
51
+ pip install safety
52
+
53
+ - name: Run pylint
54
+ run: pylint --rcfile=pyproject.toml --extension-pkg-whitelist='pydantic' -- s7
55
+
56
+ - name: Run safety
57
+ run: pip freeze | safety check --stdin
58
+
59
+ build-package:
60
+ name: Build distribution package
61
+ runs-on: ubuntu-latest
62
+
63
+ steps:
64
+ - name: Checkout repository
65
+ uses: actions/checkout@v3
66
+
67
+ - name: Set up Python 3.9
68
+ uses: actions/setup-python@v3
69
+ with:
70
+ python-version: "3.9"
71
+
72
+ - name: Install dependencies
73
+ run: |
74
+ python -m pip install -U pip
75
+ pip install -U setuptools wheel flit
76
+
77
+ - name: Check building distribution
78
+ run: flit build
soft7-0.0.6/.gitignore ADDED
@@ -0,0 +1,242 @@
1
+
2
+ # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,emacs
3
+ # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,python,emacs
4
+
5
+ ### Emacs ###
6
+ # -*- mode: gitignore; -*-
7
+ *~
8
+ \#*\#
9
+ /.emacs.desktop
10
+ /.emacs.desktop.lock
11
+ *.elc
12
+ auto-save-list
13
+ tramp
14
+ .\#*
15
+
16
+ # Org-mode
17
+ .org-id-locations
18
+ *_archive
19
+
20
+ # flymake-mode
21
+ *_flymake.*
22
+
23
+ # eshell files
24
+ /eshell/history
25
+ /eshell/lastdir
26
+
27
+ # elpa packages
28
+ /elpa/
29
+
30
+ # reftex files
31
+ *.rel
32
+
33
+ # AUCTeX auto folder
34
+ /auto/
35
+
36
+ # cask packages
37
+ .cask/
38
+ dist/
39
+
40
+ # Flycheck
41
+ flycheck_*.el
42
+
43
+ # server auth directory
44
+ /server/
45
+
46
+ # projectiles files
47
+ .projectile
48
+
49
+ # directory configuration
50
+ .dir-locals.el
51
+
52
+ # network security
53
+ /network-security.data
54
+
55
+
56
+ ### Python ###
57
+ # Byte-compiled / optimized / DLL files
58
+ __pycache__/
59
+ *.py[cod]
60
+ *$py.class
61
+
62
+ # C extensions
63
+ *.so
64
+
65
+ # Distribution / packaging
66
+ .Python
67
+ build/
68
+ develop-eggs/
69
+ downloads/
70
+ eggs/
71
+ .eggs/
72
+ lib/
73
+ lib64/
74
+ parts/
75
+ sdist/
76
+ var/
77
+ wheels/
78
+ share/python-wheels/
79
+ *.egg-info/
80
+ .installed.cfg
81
+ *.egg
82
+ MANIFEST
83
+
84
+ # PyInstaller
85
+ # Usually these files are written by a python script from a template
86
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
87
+ *.manifest
88
+ *.spec
89
+
90
+ # Installer logs
91
+ pip-log.txt
92
+ pip-delete-this-directory.txt
93
+
94
+ # Unit test / coverage reports
95
+ htmlcov/
96
+ .tox/
97
+ .nox/
98
+ .coverage
99
+ .coverage.*
100
+ .cache
101
+ nosetests.xml
102
+ coverage.xml
103
+ *.cover
104
+ *.py,cover
105
+ .hypothesis/
106
+ .pytest_cache/
107
+ cover/
108
+
109
+ # Translations
110
+ *.mo
111
+ *.pot
112
+
113
+ # Django stuff:
114
+ *.log
115
+ local_settings.py
116
+ db.sqlite3
117
+ db.sqlite3-journal
118
+
119
+ # Flask stuff:
120
+ instance/
121
+ .webassets-cache
122
+
123
+ # Scrapy stuff:
124
+ .scrapy
125
+
126
+ # Sphinx documentation
127
+ docs/_build/
128
+
129
+ # PyBuilder
130
+ .pybuilder/
131
+ target/
132
+
133
+ # Jupyter Notebook
134
+ .ipynb_checkpoints
135
+
136
+ # IPython
137
+ profile_default/
138
+ ipython_config.py
139
+
140
+ # pyenv
141
+ # For a library or package, you might want to ignore these files since the code is
142
+ # intended to run in multiple environments; otherwise, check them in:
143
+ # .python-version
144
+
145
+ # pipenv
146
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
147
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
148
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
149
+ # install all needed dependencies.
150
+ #Pipfile.lock
151
+
152
+ # poetry
153
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
154
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
155
+ # commonly ignored for libraries.
156
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
157
+ #poetry.lock
158
+
159
+ # pdm
160
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
161
+ #pdm.lock
162
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
163
+ # in version control.
164
+ # https://pdm.fming.dev/#use-with-ide
165
+ .pdm.toml
166
+
167
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
168
+ __pypackages__/
169
+
170
+ # Celery stuff
171
+ celerybeat-schedule
172
+ celerybeat.pid
173
+
174
+ # SageMath parsed files
175
+ *.sage.py
176
+
177
+ # Environments
178
+ .env
179
+ .venv
180
+ env/
181
+ venv/
182
+ ENV/
183
+ env.bak/
184
+ venv.bak/
185
+
186
+ # Spyder project settings
187
+ .spyderproject
188
+ .spyproject
189
+
190
+ # Rope project settings
191
+ .ropeproject
192
+
193
+ # mkdocs documentation
194
+ /site
195
+
196
+ # mypy
197
+ .mypy_cache/
198
+ .dmypy.json
199
+ dmypy.json
200
+
201
+ # Pyre type checker
202
+ .pyre/
203
+
204
+ # pytype static type analyzer
205
+ .pytype/
206
+
207
+ # Cython debug symbols
208
+ cython_debug/
209
+
210
+ # PyCharm
211
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
212
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
213
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
214
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
215
+ #.idea/
216
+
217
+ ### VisualStudioCode ###
218
+ .vscode/*
219
+ !.vscode/settings.json
220
+ !.vscode/tasks.json
221
+ !.vscode/launch.json
222
+ !.vscode/extensions.json
223
+ !.vscode/*.code-snippets
224
+
225
+ # Local History for Visual Studio Code
226
+ .history/
227
+
228
+ # Built Visual Studio Code Extensions
229
+ *.vsix
230
+
231
+ ### VisualStudioCode Patch ###
232
+ # Ignore all local history of files
233
+ .history
234
+ .ionide
235
+
236
+ # Support for Project snippet scope
237
+ .vscode/*.code-snippets
238
+
239
+ # Ignore code-workspaces
240
+ *.code-workspace
241
+
242
+ # End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,emacs
@@ -0,0 +1,58 @@
1
+ # To install the git pre-commit hook run:
2
+ # pre-commit install
3
+ # To update the pre-commit hooks run:
4
+ # pre-commit autoupdate
5
+ repos:
6
+ - repo: https://github.com/pre-commit/pre-commit-hooks
7
+ rev: v4.4.0
8
+ hooks:
9
+ - id: end-of-file-fixer
10
+ - id: debug-statements
11
+ - id: check-yaml
12
+ name: Check YAML
13
+ - id: check-toml
14
+ name: Check TOML
15
+ - id: trailing-whitespace
16
+ args: [--markdown-linebreak-ext=md]
17
+
18
+ - repo: https://github.com/timothycrosley/isort
19
+ rev: 5.12.0
20
+ hooks:
21
+ - id: isort
22
+ args:
23
+ - "--profile=black"
24
+ - "--filter-files"
25
+ - "--skip-gitignore"
26
+
27
+ - repo: https://github.com/ambv/black
28
+ rev: 23.7.0
29
+ hooks:
30
+ - id: black
31
+
32
+ - repo: https://github.com/PyCQA/bandit
33
+ rev: 1.7.5
34
+ hooks:
35
+ - id: bandit
36
+ args: ["-r"]
37
+ files: ^s7/.*$
38
+
39
+ - repo: https://github.com/pre-commit/mirrors-mypy
40
+ rev: v1.5.1
41
+ hooks:
42
+ - id: mypy
43
+ additional_dependencies:
44
+ - pydantic
45
+ - types-PyYAML
46
+
47
+ - repo: local
48
+ hooks:
49
+ - id: pylint
50
+ name: pylint
51
+ entry: pylint
52
+ args:
53
+ - "--rcfile=pyproject.toml"
54
+ - "--extension-pkg-whitelist='pydantic'"
55
+ language: python
56
+ types: [python]
57
+ require_serial: true
58
+ files: ^.*$
soft7-0.0.6/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 SINTEF
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.
soft7-0.0.6/PKG-INFO ADDED
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.1
2
+ Name: soft7
3
+ Version: 0.0.6
4
+ Summary: SOFT7 semantic interoperability framework.
5
+ Keywords: interoperability,semantic
6
+ Author-email: Thomas Fjæstad Hagelien <thomas.f.hagelien@sintef.no>, Casper Welzel Andersen <casper.w.andersen@sintef.no>
7
+ Requires-Python: ~=3.9
8
+ Description-Content-Type: text/markdown
9
+ Classifier: Development Status :: 2 - Pre-Alpha
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Natural Language :: English
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Dist: graphviz
17
+ Requires-Dist: Jinja2
18
+ Requires-Dist: oteapi-core
19
+ Requires-Dist: otelib
20
+ Requires-Dist: pydantic
21
+ Requires-Dist: pymongo
22
+ Requires-Dist: pyyaml
23
+ Requires-Dist: rdflib
24
+ Requires-Dist: pre-commit ~=2.18 ; extra == "dev"
25
+ Requires-Dist: pylint ~=2.13 ; extra == "dev"
26
+ Project-URL: Documentation, https://SINTEF.github.io/soft7
27
+ Project-URL: Home, https://github.com/SINTEF/soft7
28
+ Project-URL: Issue Tracker, https://github.com/SINTEF/soft7/issues
29
+ Project-URL: Package, https://pypi.org/project/soft7
30
+ Project-URL: Source, https://github.com/SINTEF/soft7
31
+ Provides-Extra: dev
32
+
33
+ # SOFT7
34
+
soft7-0.0.6/README.md ADDED
@@ -0,0 +1 @@
1
+ # SOFT7