sgf-parser 0.0.5__tar.gz → 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.
- sgf_parser-0.0.6/.gitattributes +25 -0
- sgf_parser-0.0.6/.github/workflows/branch.yaml +60 -0
- sgf_parser-0.0.6/.github/workflows/release.yaml +27 -0
- sgf_parser-0.0.6/.gitignore +160 -0
- sgf_parser-0.0.6/CHANGES.md +84 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/PKG-INFO +16 -16
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/README.md +4 -4
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/pyproject.toml +25 -46
- sgf_parser-0.0.6/tests/data/cpt-dt-test-1.std +692 -0
- sgf_parser-0.0.6/tests/data/cpt-test-1.cpt +3762 -0
- sgf_parser-0.0.6/tests/data/cpt-test-2.cpt +1471 -0
- sgf_parser-0.0.6/tests/data/cpt-test-3.cpt +1205 -0
- sgf_parser-0.0.6/tests/data/cpt-test-4.cpt +1373 -0
- sgf_parser-0.0.6/tests/data/cpt-test-malformed-data-1.cpt +7 -0
- sgf_parser-0.0.6/tests/data/cpt-test-malformed-date-header.cpt +7 -0
- sgf_parser-0.0.6/tests/data/cpt-test-multi-line-header.cpt +2141 -0
- sgf_parser-0.0.6/tests/data/cpt-test-two-lines-header.cpt +61 -0
- sgf_parser-0.0.6/tests/data/cpt-test-with-method-block.cpt +1597 -0
- sgf_parser-0.0.6/tests/data/cpt-test-wrong-type.cpt +7 -0
- sgf_parser-0.0.6/tests/data/dp-test-1.hfa +197 -0
- sgf_parser-0.0.6/tests/data/dp-test-2.hfa +290 -0
- sgf_parser-0.0.6/tests/data/dp-test-3.hfa +351 -0
- sgf_parser-0.0.6/tests/data/dp-test-4.hfa +419 -0
- sgf_parser-0.0.6/tests/data/dp-test-modified-2.hfa +9 -0
- sgf_parser-0.0.6/tests/data/dt-test-1.std +684 -0
- sgf_parser-0.0.6/tests/data/rp-test-1.std +568 -0
- sgf_parser-0.0.6/tests/data/rp-test-2.std +1486 -0
- sgf_parser-0.0.6/tests/data/srs-test-1.jb3 +669 -0
- sgf_parser-0.0.6/tests/data/srs-test-2.jbt +448 -0
- sgf_parser-0.0.6/tests/data/srs-test-3.jbt +891 -0
- sgf_parser-0.0.6/tests/data/srs-test-4.jb2 +224 -0
- sgf_parser-0.0.6/tests/data/srs-test-5.jb3 +669 -0
- sgf_parser-0.0.6/tests/data/srs-test-problem-comment.jbt +25 -0
- sgf_parser-0.0.6/tests/data/svt-test-1.std +10 -0
- sgf_parser-0.0.6/tests/data/tot-malformed-code.tot +1484 -0
- sgf_parser-0.0.6/tests/data/tot-test-1.tot +369 -0
- sgf_parser-0.0.6/tests/data/tot-test-2.tot +523 -0
- sgf_parser-0.0.6/tests/data/tot-test-3.tot +2316 -0
- sgf_parser-0.0.6/tests/data/tot-test-4.tot +227 -0
- sgf_parser-0.0.6/tests/data/tot-test-5.tot +3353 -0
- sgf_parser-0.0.6/tests/data/tot-test-6.tot +748 -0
- sgf_parser-0.0.6/tests/data/tot-test-7.tot +2727 -0
- sgf_parser-0.0.6/tests/data/tot-test-8.tot +604 -0
- sgf_parser-0.0.6/tests/data/tot-test-9.TOT +5 -0
- sgf_parser-0.0.6/tests/data/tot-test-data-ending-with-comma.tot +4 -0
- sgf_parser-0.0.6/tests/data/tot-test-multiple-codes.tot +36 -0
- sgf_parser-0.0.6/tests/data/tr-test-1.trt +616 -0
- sgf_parser-0.0.6/tests/data/tr-test-2.trt +452 -0
- sgf_parser-0.0.6/tests/data/tr-test-3.trt +638 -0
- sgf_parser-0.0.6/tests/data/wst-test-1.vim +68 -0
- sgf_parser-0.0.6/tests/data/wst-test-2.vim +10 -0
- sgf_parser-0.0.6/tests/integration/test_file_errors.py +19 -0
- sgf_parser-0.0.6/tests/integration/test_parse.py +683 -0
- sgf_parser-0.0.6/tests/integration/test_parse_tr.py +63 -0
- sgf_parser-0.0.6/tests/unit/test_cpt_application_class.py +144 -0
- sgf_parser-0.0.6/tests/unit/test_dates.py +27 -0
- sgf_parser-0.0.6/tests/unit/test_tot_depth.py +119 -0
- sgf_parser-0.0.6/tests/unit/test_tot_k_codes.py +199 -0
- sgf_parser-0.0.6/uv.lock +969 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/LICENSE +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/__init__.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/datetime_parser.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/__init__.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_cpt.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_dp.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_dt.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_rp.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_slb.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_srs.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_sti.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_svt.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_tot.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_tr.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_type.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/method_wst.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/models/types.py +0 -0
- {sgf_parser-0.0.5 → sgf_parser-0.0.6}/src/sgf_parser/parser.py +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This .gitattributes file primarily made for the test files. Some test files are deliberatly constructed with wrong
|
|
2
|
+
# line endings for test purposes and should be specified here.
|
|
3
|
+
|
|
4
|
+
# Don't let git modify these:
|
|
5
|
+
*.[Cc][Pp][Tt] binary
|
|
6
|
+
*.[Dd][Tt][Rr] binary
|
|
7
|
+
*.[Hh][Ff][Aa] binary
|
|
8
|
+
*.[Jj][Bb][123Tt] binary
|
|
9
|
+
*.[Vv][Ii][Mm] binary
|
|
10
|
+
*.[Ss][Tt][Dd] binary
|
|
11
|
+
*.[Tt][Oo][Tt] binary
|
|
12
|
+
*.[Tt][Rr][Tt] binary
|
|
13
|
+
|
|
14
|
+
# std, cpt, tot and dtr files are specified as eol=crlf
|
|
15
|
+
*.[Cc][Pp][Tt] text eol=crlf
|
|
16
|
+
*.[Dd][Tt][Rr] text eol=crlf
|
|
17
|
+
*.[Ss][Tt][Dd] text eol=crlf
|
|
18
|
+
*.[Tt][Oo][Tt] text eol=crlf
|
|
19
|
+
|
|
20
|
+
# Shell scripts may not contain crlf
|
|
21
|
+
*.sh -crlf
|
|
22
|
+
|
|
23
|
+
# Yaml file should not contain crlf
|
|
24
|
+
*.yaml -crlf
|
|
25
|
+
*.yml -crlf
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: Push
|
|
2
|
+
on: [push]
|
|
3
|
+
|
|
4
|
+
jobs:
|
|
5
|
+
test:
|
|
6
|
+
name: Setup tests
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
python-version: ['3.11', '3.12', '3.13']
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Install uv
|
|
17
|
+
uses: astral-sh/setup-uv@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: ${{ matrix.python-version }}
|
|
20
|
+
|
|
21
|
+
- name: Install the project
|
|
22
|
+
run: uv sync --all-extras --dev
|
|
23
|
+
|
|
24
|
+
- name: Run tests
|
|
25
|
+
run: uv run pytest --cov=./ --cov-report=xml
|
|
26
|
+
|
|
27
|
+
- name: Upload coverage to Codecov
|
|
28
|
+
uses: codecov/codecov-action@v4
|
|
29
|
+
|
|
30
|
+
code-quality:
|
|
31
|
+
runs-on: ubuntu-latest
|
|
32
|
+
strategy:
|
|
33
|
+
fail-fast: false
|
|
34
|
+
matrix:
|
|
35
|
+
python-version: ['3.11', '3.12', '3.13']
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Install uv
|
|
40
|
+
uses: astral-sh/setup-uv@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
|
|
44
|
+
- name: Install the project
|
|
45
|
+
run: uv sync --all-extras --dev
|
|
46
|
+
|
|
47
|
+
- name: Run ruff
|
|
48
|
+
run: uv run ruff check .
|
|
49
|
+
|
|
50
|
+
- name: Run mypy
|
|
51
|
+
run: uv run mypy .
|
|
52
|
+
|
|
53
|
+
- name: Run bandit
|
|
54
|
+
run: uv run bandit .
|
|
55
|
+
|
|
56
|
+
- name: Run safety
|
|
57
|
+
run: uv run safety check
|
|
58
|
+
|
|
59
|
+
- name: Check for acceptable licenses
|
|
60
|
+
run: uv run pip-licenses --allow-only="MIT License;BSD License;Python Software Foundation License;Apache Software License;Mozilla Public License 2.0 (MPL 2.0);ISC License (ISCL);The Unlicense (Unlicense)"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
on:
|
|
3
|
+
release:
|
|
4
|
+
types:
|
|
5
|
+
- created
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
publish:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ['3.12']
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Install uv and set the python version
|
|
18
|
+
uses: astral-sh/setup-uv@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python-version }}
|
|
21
|
+
|
|
22
|
+
- name: Publish
|
|
23
|
+
env:
|
|
24
|
+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
|
25
|
+
run: |
|
|
26
|
+
uv build
|
|
27
|
+
uv publish --token $PYPI_TOKEN
|
|
@@ -0,0 +1,160 @@
|
|
|
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/
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# NGI Python SGF Parser Package
|
|
2
|
+
|
|
3
|
+
_2025-03-13_
|
|
4
|
+
|
|
5
|
+
Version 0.0.6
|
|
6
|
+
|
|
7
|
+
- Converting from Poetry to uv. No functional changes.
|
|
8
|
+
|
|
9
|
+
_2025-03-10_
|
|
10
|
+
|
|
11
|
+
Version 0.0.5
|
|
12
|
+
|
|
13
|
+
- Add support for old WST code (2).
|
|
14
|
+
- Rename Dynamic Probing (DP) type from `type` to `dynamic_probing_type`.
|
|
15
|
+
|
|
16
|
+
_2025-02-27_
|
|
17
|
+
|
|
18
|
+
Version 0.0.4
|
|
19
|
+
|
|
20
|
+
- Add `borehole_name` to methods.
|
|
21
|
+
- Change the values of the SoundingClass and DPType.
|
|
22
|
+
|
|
23
|
+
_2025-02-17_
|
|
24
|
+
|
|
25
|
+
Version 0.0.3
|
|
26
|
+
|
|
27
|
+
Add support for the methods Pressure Sounding (Tr), Impact sounding (Slb) and Light sounding (Sti).
|
|
28
|
+
|
|
29
|
+
_2024-10-15_
|
|
30
|
+
|
|
31
|
+
Version 0.0.2
|
|
32
|
+
|
|
33
|
+
Fix missing handling of non-standard method codes 9, 71 and 72.
|
|
34
|
+
|
|
35
|
+
_2024-10-03_
|
|
36
|
+
|
|
37
|
+
Version 0.0.1
|
|
38
|
+
|
|
39
|
+
Add support for non-standard SGF codes for SRS/Jb2 71, SRS/Jb3 72 and DP SH B 9.
|
|
40
|
+
|
|
41
|
+
_2024-08-22_
|
|
42
|
+
|
|
43
|
+
Version 0.0.1b5
|
|
44
|
+
|
|
45
|
+
Add support for Dynamic Probing (DP).
|
|
46
|
+
|
|
47
|
+
_2024-08-08_
|
|
48
|
+
|
|
49
|
+
Version 0.0.1b4
|
|
50
|
+
|
|
51
|
+
Fix an edge case where strings are given in the "K" code, e.g. "K=SAND".
|
|
52
|
+
These are not moved to the "T"/remarks column, as "K" is reserved for (integer) comment codes.
|
|
53
|
+
|
|
54
|
+
_2024-08-06_
|
|
55
|
+
|
|
56
|
+
Version 0.0.1b3
|
|
57
|
+
|
|
58
|
+
Fix bug in SGFParser that causes the parser to fail if it contains several comment codes (in "K" column) but no remarks (in "T" column).
|
|
59
|
+
|
|
60
|
+
_2024-07-29_
|
|
61
|
+
|
|
62
|
+
Version 0.0.1b2
|
|
63
|
+
|
|
64
|
+
Support Weight Sounding Test (WST) (Swedish Viktsondering)
|
|
65
|
+
|
|
66
|
+
_2024-06-21_
|
|
67
|
+
|
|
68
|
+
Version 0.0.1b1
|
|
69
|
+
|
|
70
|
+
Update packages.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
_2024-05-22_
|
|
74
|
+
|
|
75
|
+
Version 0.0.1a2
|
|
76
|
+
|
|
77
|
+
Addition of dissipation test method with limited support.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
_2024-04-03_
|
|
81
|
+
|
|
82
|
+
Version 0.0.1a1 (Alpha Release)
|
|
83
|
+
|
|
84
|
+
Initial pre-release version of the package.
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: sgf-parser
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Summary: Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Maintainer-email: jostein@leira.net
|
|
9
|
-
|
|
5
|
+
Project-URL: homepage, https://github.com/norwegian-geotechnical-institute/sgf-parser
|
|
6
|
+
Project-URL: repository, https://github.com/norwegian-geotechnical-institute/sgf-parser
|
|
7
|
+
Author-email: Jostein Leira <jostein@leira.net>
|
|
8
|
+
Maintainer-email: Jostein Leira <jostein@leira.net>
|
|
9
|
+
License-File: LICENSE
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
12
|
Classifier: Operating System :: OS Independent
|
|
12
13
|
Classifier: Programming Language :: Python :: 3
|
|
13
14
|
Classifier: Topic :: Scientific/Engineering :: GIS
|
|
14
|
-
|
|
15
|
-
Requires-Dist: pydantic
|
|
16
|
-
Requires-Dist: python-dateutil
|
|
17
|
-
Requires-Dist: types-python-dateutil
|
|
15
|
+
Requires-Python: <4,>=3.11
|
|
16
|
+
Requires-Dist: pydantic>=2.10
|
|
17
|
+
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
18
|
+
Requires-Dist: types-python-dateutil>=2.9
|
|
18
19
|
Description-Content-Type: text/markdown
|
|
19
20
|
|
|
20
21
|
# sgf-parser
|
|
@@ -70,25 +71,25 @@ len(method.method_data)
|
|
|
70
71
|
1. Software dependencies
|
|
71
72
|
|
|
72
73
|
- Python 3.11 or higher
|
|
73
|
-
-
|
|
74
|
+
- uv
|
|
74
75
|
- ruff code formatter
|
|
75
76
|
|
|
76
77
|
2. Clone this repository
|
|
77
78
|
|
|
78
79
|
3. Install
|
|
79
80
|
|
|
80
|
-
`
|
|
81
|
+
`uv sync`
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
# Build and Test
|
|
84
85
|
|
|
85
86
|
Run in the project root folder:
|
|
86
87
|
|
|
87
|
-
|
|
88
|
+
uv run pytest
|
|
88
89
|
|
|
89
90
|
Build the package wheel:
|
|
90
91
|
|
|
91
|
-
|
|
92
|
+
uv build
|
|
92
93
|
|
|
93
94
|
# Publish
|
|
94
95
|
|
|
@@ -102,4 +103,3 @@ Build the package wheel:
|
|
|
102
103
|
|
|
103
104
|
Please start by adding an issue before submitting any pull requests.
|
|
104
105
|
|
|
105
|
-
|
|
@@ -51,25 +51,25 @@ len(method.method_data)
|
|
|
51
51
|
1. Software dependencies
|
|
52
52
|
|
|
53
53
|
- Python 3.11 or higher
|
|
54
|
-
-
|
|
54
|
+
- uv
|
|
55
55
|
- ruff code formatter
|
|
56
56
|
|
|
57
57
|
2. Clone this repository
|
|
58
58
|
|
|
59
59
|
3. Install
|
|
60
60
|
|
|
61
|
-
`
|
|
61
|
+
`uv sync`
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
# Build and Test
|
|
65
65
|
|
|
66
66
|
Run in the project root folder:
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
uv run pytest
|
|
69
69
|
|
|
70
70
|
Build the package wheel:
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
uv build
|
|
73
73
|
|
|
74
74
|
# Publish
|
|
75
75
|
|
|
@@ -1,31 +1,11 @@
|
|
|
1
|
-
[tool.black]
|
|
2
|
-
line-length = 120
|
|
3
|
-
exclude = '''
|
|
4
|
-
/(
|
|
5
|
-
\.git
|
|
6
|
-
| venv
|
|
7
|
-
| \.venv
|
|
8
|
-
| env
|
|
9
|
-
| \.env
|
|
10
|
-
| _build
|
|
11
|
-
| build
|
|
12
|
-
| dist
|
|
13
|
-
)/
|
|
14
|
-
'''
|
|
15
|
-
|
|
16
1
|
[project]
|
|
17
2
|
name = "sgf-parser"
|
|
18
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.6"
|
|
19
4
|
description = "Parser for the Swedish Geotechnical Society / Svenska Geotekniska Föreningen (SGF) data format"
|
|
20
|
-
authors = [
|
|
21
|
-
|
|
22
|
-
]
|
|
23
|
-
maintainers = [
|
|
24
|
-
{ name = "Jostein Leira", email = "jostein@leira.net" }
|
|
25
|
-
]
|
|
5
|
+
authors = [{ name = "Jostein Leira", email = "jostein@leira.net" }]
|
|
6
|
+
requires-python = ">=3.11,<4"
|
|
26
7
|
readme = "README.md"
|
|
27
|
-
|
|
28
|
-
repository = "https://github.com/norwegian-geotechnical-institute/sgf-parser"
|
|
8
|
+
maintainers = [{ name = "Jostein Leira", email = "jostein@leira.net" }]
|
|
29
9
|
classifiers = [
|
|
30
10
|
"Development Status :: 5 - Production/Stable",
|
|
31
11
|
"Operating System :: OS Independent",
|
|
@@ -33,16 +13,31 @@ classifiers = [
|
|
|
33
13
|
"Topic :: Scientific/Engineering :: GIS",
|
|
34
14
|
"License :: OSI Approved :: MIT License",
|
|
35
15
|
]
|
|
36
|
-
|
|
37
|
-
dependencies=[
|
|
16
|
+
dependencies = [
|
|
38
17
|
"pydantic>=2.10",
|
|
39
18
|
"python-dateutil>=2.9.0.post0",
|
|
40
|
-
"types-python-dateutil>=2.9"
|
|
41
|
-
]
|
|
42
|
-
packages = [
|
|
43
|
-
{ include = "sgf_parser", from="src" },
|
|
19
|
+
"types-python-dateutil>=2.9",
|
|
44
20
|
]
|
|
21
|
+
packages = [{ from = "src", include = "sgf_parser" }]
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
homepage = "https://github.com/norwegian-geotechnical-institute/sgf-parser"
|
|
25
|
+
repository = "https://github.com/norwegian-geotechnical-institute/sgf-parser"
|
|
45
26
|
|
|
27
|
+
[build-system]
|
|
28
|
+
requires = ["hatchling"]
|
|
29
|
+
build-backend = "hatchling.build"
|
|
30
|
+
|
|
31
|
+
[dependency-groups]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest",
|
|
34
|
+
"pytest-cov",
|
|
35
|
+
"mypy",
|
|
36
|
+
"bandit",
|
|
37
|
+
"safety",
|
|
38
|
+
"pip-licenses",
|
|
39
|
+
"ruff",
|
|
40
|
+
]
|
|
46
41
|
|
|
47
42
|
[tool.ruff]
|
|
48
43
|
line-length = 120
|
|
@@ -62,19 +57,3 @@ warn_unused_ignores = true
|
|
|
62
57
|
disallow_any_generics = true
|
|
63
58
|
check_untyped_defs = true
|
|
64
59
|
no_implicit_reexport = false
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
[tool.poetry.group.dev.dependencies]
|
|
70
|
-
pytest = "*"
|
|
71
|
-
pytest-cov = "*"
|
|
72
|
-
mypy = "*"
|
|
73
|
-
bandit = "*"
|
|
74
|
-
safety = "*"
|
|
75
|
-
pip-licenses = "*"
|
|
76
|
-
ruff = "*"
|
|
77
|
-
|
|
78
|
-
[build-system]
|
|
79
|
-
requires = ["poetry-core>=1.0.0"]
|
|
80
|
-
build-backend = "poetry.core.masonry.api"
|