Skip to content

Commit 44a3840

Browse files
committed
Update pyproject.toml, add meta.yaml
1 parent f861c59 commit 44a3840

File tree

2 files changed

+83
-36
lines changed

2 files changed

+83
-36
lines changed

meta.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
package:
2+
name: raster2dggs
3+
version: 0.3.0
4+
5+
source:
6+
url: https://github.com/manaakiwhenua/rhealpixdggs-py/archive/refs/heads/conda-package.zip
7+
sha256: e3e23a9a02d294fd5d85c7f24c1e29ed4713b9103dd925e196bdc209734e5a1a
8+
9+
build:
10+
noarch: python
11+
script: pip install .
12+
number: 0
13+
14+
requirements:
15+
host:
16+
- python >=3.11
17+
- setuptools >=61
18+
- wheel
19+
- pip
20+
run:
21+
- python >=3.11
22+
- numpy >=1.25.2
23+
- scipy >=1.11.2
24+
- matplotlib-base >=3.7.2
25+
- pyproj >=3.6.1
26+
- shapely >=2.0.1
27+
28+
tests:
29+
- python:
30+
imports:
31+
- rhealpixdggs
32+
pip_check: true
33+
## Could add internal tests if these were included in the package
34+
### - python -m unittest discover ../tests/
35+
### - python -m doctest ../docs/source/introduction.rst ../rhealpixdggs/*.py
36+
37+
about:
38+
### homepage: "https://datastore.landcareresearch.co.nz/dataset/rhealpix-discrete-global-grid-system"
39+
repository: "https://github.com/manaakiwhenua/rhealpixdggs-py"
40+
summary: An implementation of the rHEALPix discrete global grid system
41+
license: GPL-3.0-or-later
42+
license_file: LICENSE
43+
44+
### extra:
45+
### recipe-maintainers:
46+
### - name_of_maintainer

pyproject.toml

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
1-
[tool.poetry]
1+
[build-system]
2+
requires = ["poetry-core>=1.0.0"]
3+
build-backend = "poetry.core.masonry.api"
4+
5+
[project]
26
name = "raster2dggs"
37
version = "0.3.0"
4-
description = ""
5-
authors = ["James Ardo <[email protected]>"]
6-
maintainers = ["Richard Law <[email protected]>"]
8+
description = "Python-based CLI tool to index raster files to DGGS in parallel, writing out to Parquet."
9+
authors = [{ name = "James Ardo", email = "[email protected]" }]
10+
maintainers = [{name="Richard Law", email="[email protected]"}]
711
readme = "README.md"
812
license = "LGPL-3.0-or-later"
9-
repository = "https://github.com/manaakiwhenua/raster2dggs"
1013
keywords = ["dggs", "raster", "h3", "rHEALPix", "cli"]
1114
classifiers = [
1215
"Topic :: Scientific/Engineering",
1316
"Topic :: Scientific/Engineering :: GIS",
1417
"Topic :: Scientific/Engineering :: Image Processing",
1518
"Topic :: Scientific/Engineering :: Information Analysis"
1619
]
20+
requires-python = ">=3.11, <3.12" # correct?
21+
dependencies = [
22+
"gdal >=3.8, <3.9",
23+
"geopandas>=1.0, <2.0",
24+
"h3pandas>=0.3, <1.0",
25+
"rioxarray>=0.19, <1.0",
26+
"dask-geopandas>=0.4, <1.0",
27+
"pyarrow>=20.0, <21.0",
28+
"dask>=2025.1, <2026",
29+
"click>=8.1, <9.0",
30+
"boto3>=1, <2",
31+
"tqdm>=4, <5",
32+
"click-log>=0.4, <1.0",
33+
"rasterio>=1.4, <2.0",
34+
"dask-expr>=2, <3",
35+
"numpy>=2, <3",
36+
"rhppandas>=0.1, <1.0",
37+
"rhealpixdggs>=0.5, <1.0",
38+
"python-geohash>=0.8, <1.0",
39+
"maidenhead>=1.7, <2.0",
40+
"s2sphere>=0.2, <1.0",
41+
]
1742

18-
[tool.poetry.dependencies]
19-
python = "^3.12"
20-
gdal = "^3.8"
21-
geopandas = "^1.0"
22-
h3pandas = "^0.3"
23-
rioxarray = "^0.19"
24-
dask-geopandas = "^0.4"
25-
pyarrow = "^20.0"
26-
dask = "^2025.1"
27-
click = "^8.1"
28-
boto3 = "^1"
29-
tqdm = "^4"
30-
click-log = "^0.4"
31-
rasterio = "^1.4"
32-
dask-expr = "^2"
33-
numpy = "^2"
34-
rhppandas = "^0.1"
35-
rhealpixdggs = "^0.5"
36-
python-geohash = "^0.8"
37-
maidenhead = "^1.7"
38-
s2sphere = "^0.2"
43+
[project.urls]
44+
repository = "https://github.com/manaakiwhenua/raster2dggs"
3945

40-
[tool.poetry.group.dev.dependencies]
41-
pytest = "^7.2.2"
42-
twine ="*"
43-
black = "*"
46+
[project.optional-dependencies]
47+
dev = ["pytest>=7.2.2, <7.3", "twine", "black"]
4448

45-
[tool.poetry.scripts]
49+
[project.scripts]
4650
raster2dggs = "raster2dggs.cli:main"
4751

48-
[build-system]
49-
requires = ["poetry-core"]
50-
build-backend = "poetry.core.masonry.api"
51-
5252
[tool.black]
53-
line-length = 88
53+
line-length = 88
54+

0 commit comments

Comments
 (0)