Skip to content

Commit

Permalink
chore: rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Aug 16, 2023
1 parent 6d993da commit 0f45deb
Show file tree
Hide file tree
Showing 32 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ select = B,C,E,F,W,T4,B9
docstring-convention = google
per-file-ignores =
__init__.py:F401
osm2gpd/proto/*.py:F821,F401,E712
osm4gpd/proto/*.py:F821,F401,E712
exclude =
.git,
__pycache__,
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/commitizen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
changelog_increment_filename: body.md
prerelease: alpha
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: "body.md"
tag_name: ${{ env.REVISION }}
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
- name: Install dependencies
run: poetry install
- name: Run mypy
run: poetry run mypy osm2gpd
run: poetry run mypy osm4gpd
tests:
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
- types-protobuf
args:
- --ignore-missing-imports
- osm2gpd
- osm4gpd
- tests
pass_filenames: false
verbose: true
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# osm2gpd: OpenStreetMap to GeoPandas Parser
# osm4gpd: OpenStreetMap to GeoPandas Parser

![Test](https://github.com/knthls/osm2gpd/actions/workflows/test.yml/badge.svg)
![Release](https://img.shields.io/github/v/release/knthls/osm2gpd)
[![codecov](https://codecov.io/gh/knthls/osm2gpd/branch/main/graph/badge.svg?token=OSNRL1NSNH)](https://codecov.io/gh/knthls/osm2gpd)
![Test](https://github.com/knthls/osm4gpd/actions/workflows/test.yml/badge.svg)
![Release](https://img.shields.io/github/v/release/knthls/osm4gpd)
[![codecov](https://codecov.io/gh/knthls/osm4gpd/branch/main/graph/badge.svg?token=OSNRL1NSNH)](https://codecov.io/gh/knthls/osm4gpd)

## Introduction

OSM2GPD is a Python package that provides a moderately memory-efficient parser for loading OpenStreetMap (OSM) data in its native protobuf format into a sparse GeoPandas DataFrame. This package aims to help users work with large OSM datasets while minimizing memory usage and providing a convenient interface for data manipulation.
Osm4gpd is a Python package that provides a fairly memory-efficient parser to load OpenStreetMap data in its native protobuf format into a sparse GeoPandas DataFrame. This package aims to help users work with large OSM datasets while minimizing memory usage and providing a convenient interface for data manipulation.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion osm2gpd/unpacked/nodes.py → osm4gpd/unpacked/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from numpy.typing import NDArray

from osm2gpd.proto import PrimitiveGroup
from osm4gpd.proto import PrimitiveGroup

from .base import BaseGroup

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import numpy as np
from numpy.typing import NDArray

from osm2gpd.proto import PrimitiveGroup
from osm2gpd.tags import get_tags
from osm4gpd.proto import PrimitiveGroup
from osm4gpd.tags import get_tags

from .base import BaseGroup

Expand Down
4 changes: 2 additions & 2 deletions osm2gpd/unpacked/ways.py → osm4gpd/unpacked/ways.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import numpy as np
from numpy.typing import NDArray

from osm2gpd.proto import PrimitiveGroup
from osm2gpd.tags import get_tags
from osm4gpd.proto import PrimitiveGroup
from osm4gpd.tags import get_tags

from .base import BaseGroup

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "osm2gpd"
version = "0.2.0"
name = "osm4gpd"
version = "0.1.0"
description = "A parser that loads openstreetmaps native protobuf format into a sparse geopandas dataframe."
authors = ["Christian <[email protected]>"]
readme = "README.md"
Expand Down Expand Up @@ -36,7 +36,7 @@ pandas-stubs = "^2.0.3.230814"
version = "0.2.0"
tag_format = "$version"
version_files = [
"osm2gpd/__version__.py",
"osm4gpd/__version__.py",
"pyproject.toml:^version"
]

Expand Down
2 changes: 1 addition & 1 deletion tests/test_consolidate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from osm2gpd.parse import OSMFile
from osm4gpd.parse import OSMFile


@pytest.mark.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_filtering.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pytest
from numpy.typing import NDArray

from osm2gpd import OSMFile
from osm2gpd.filter import filter_groups
from osm4gpd import OSMFile
from osm4gpd.filter import filter_groups


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from osm2gpd.parse import OSMFile
from osm4gpd.parse import OSMFile


@pytest.mark.parametrize(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_references.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import numpy as np
import pytest

from osm2gpd import OSMFile
from osm2gpd.references import find_references
from osm4gpd import OSMFile
from osm4gpd.references import find_references


@pytest.mark.parametrize(
Expand Down
6 changes: 3 additions & 3 deletions tests/test_unpacked.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import pytest

from osm2gpd.blocks import read_blocks
from osm2gpd.proto import PrimitiveBlock, PrimitiveGroup
from osm2gpd.unpacked import NodesGroup, RelationGroup, WayGroup
from osm4gpd.blocks import read_blocks
from osm4gpd.proto import PrimitiveBlock, PrimitiveGroup
from osm4gpd.unpacked import NodesGroup, RelationGroup, WayGroup


def _iter_blocks(fp: Path) -> Generator[PrimitiveBlock, None, None]:
Expand Down

0 comments on commit 0f45deb

Please sign in to comment.