Skip to content

Commit c7f6735

Browse files
committed
Update packages
Bump version number to 0.0.18
1 parent 287ea64 commit c7f6735

File tree

8 files changed

+463
-498
lines changed

8 files changed

+463
-498
lines changed

.github/workflows/branch.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
fail-fast: false
88
matrix:
99
python-version: ['3.9', '3.10', '3.11']
10-
poetry-version: ['1.4.2']
10+
poetry-version: ['1.6.1']
1111
os: [ubuntu-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
@@ -30,7 +30,7 @@ jobs:
3030
fail-fast: false
3131
matrix:
3232
python-version: ['3.9', '3.10', '3.11']
33-
poetry-version: ['1.4.2']
33+
poetry-version: ['1.6.1']
3434
os: [ubuntu-latest]
3535
runs-on: ${{ matrix.os }}
3636
steps:

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: ['3.11']
13-
poetry-version: ['1.4.2']
13+
poetry-version: ['1.6.1']
1414
os: [ubuntu-latest]
1515
runs-on: ${{ matrix.os }}
1616
steps:

CHANGES.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Python KOF Parser Package
22

3+
## Version 0.0.18
4+
_2023-08-24_
5+
6+
Change
7+
8+
- Update packages
9+
310
## Version 0.0.17
411

5-
_2023-05-16
12+
_2023-05-16_
613

714
Change
815

poetry.lock

Lines changed: 442 additions & 487 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ exclude = '''
1313
)/
1414
'''
1515

16+
[tool.ruff]
17+
line-length = 120
18+
src = ["src", "tests"]
19+
1620
[tool.poetry]
1721
name = "kof-parser"
18-
version = "0.0.17"
22+
version = "0.0.18"
1923
description = "A KOF file parser. Follows Norkart's KOF 2.0 specification from 2005."
2024
license = "MIT"
2125
authors = ["Magnus Mariero <[email protected]>", "Jostein Leira <[email protected]>"]
@@ -35,18 +39,19 @@ packages = [
3539

3640
[tool.poetry.dependencies]
3741
python = ">=3.9,<4"
38-
pydantic = "^1.10.2"
39-
coordinate-projector = "^0.0.8"
42+
pydantic = "^1.10.7"
43+
coordinate-projector = ">=0.0.9"
4044
charset-normalizer = "*"
4145

42-
[tool.poetry.dev-dependencies]
46+
[tool.poetry.group.dev.dependencies]
4347
black = "*"
4448
pytest = "*"
4549
pytest-cov = "*"
4650
mypy = "*"
4751
bandit = "*"
4852
safety = "*"
4953
pip-licenses = "*"
54+
ruff = "*"
5055

5156
[build-system]
5257
requires = ["poetry-core>=1.0.0"]

src/kof_parser/model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from enum import Enum
21
from typing import Optional
32

43
from pydantic import BaseModel, Field

src/kof_parser/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def parse(
142142
def _read_kof(
143143
self, file: BytesIO, result_srid: int, file_srid: Optional[int], swap_easting_northing: Optional[bool] = False
144144
) -> list[Location]:
145-
locations: dict[str, Location] = dict()
146145
resolved_locations: list[Location] = []
147146
if file_srid:
148147
self.file_srid = file_srid

src/kof_parser/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def create_kof_coordinate_block(id: str, temakode: str, x: float, y: float, z: f
6262

6363
@staticmethod
6464
def create_kof_header_lines(project_id: UUID, project_name, srid: int) -> str:
65-
header = f" 00 KOF Export from NGI Field Manager\n"
65+
header = " 00 KOF Export from NGI Field Manager\n"
6666
header += f" 00 Project: {project_id}. Name: {project_name}\n"
6767
header += f" 00 Spatial Reference ID (SRID): {srid}\n"
6868
header += f" 00 Export date (UTC): {datetime.utcnow()}\n"

0 commit comments

Comments
 (0)