Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.py export-subst
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ quarto preview
- Copyright © 2026 Athul, Bala, Prabuddha, Shreya.
- Free software distributed under the [MIT License](./LICENSE).

## Atribution

Gen AI tools were used to assist in the creation of this package, including code generation and documentation drafting. All generated content was reviewed and edited by the human authors to ensure accuracy and quality.
## Attribution

Gen AI tools (Google Gemini, OpenAI ChatGPT, and GitHub Copilot) were used to assist in the creation of this package, including code generation and documentation drafting. All generated content was reviewed and edited by the human authors to ensure accuracy and quality.
12 changes: 9 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@

[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
requires = ["hatchling", "hatch-vcs"]

################################################################################
# Project Configuration
################################################################################

[project]
name = "geospatial_toolkit"
# You can chose to use dynamic versioning with hatch or static where you add it manually.
version = "0.1.0"
dynamic = ["version"]

description = "Python package for geospatial functions."
authors = [
Expand Down Expand Up @@ -101,6 +100,13 @@ all = [
[tool.hatch.build]
only-packages = true

# Dynamic versioning from Git tags
[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/geospatial_toolkit/_version.py"

# This tells Hatch to build the package from the src/ directory.
# Read more about src layouts here: https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-structure.html
[tool.hatch.build.targets.wheel]
Expand Down
6 changes: 6 additions & 0 deletions src/geospatial_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@
from geospatial_toolkit.latlong import standardize_latlong
from geospatial_toolkit.point_to_city import point_to_city

try:
from geospatial_toolkit._version import __version__
except ImportError:
__version__ = "unknown"

# This defines what is available when someone does 'from geospatial_toolkit import *'
__all__ = [
"__version__",
"haversine_distance",
"get_antipode",
"standardize_latlong",
Expand Down
Loading