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
35 changes: 19 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Lint
name: Check

on:
pull_request:
branches: [master]
pull_request:
branches:
- master
workflow_dispatch:

jobs:
Test:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
check:
name: Code Quality and Tests
runs-on: ubuntu-latest

- name: Install the latest version of rye
uses: eifinger/setup-rye@v3
steps:
- uses: actions/checkout@v5

- name: rye sync
run: rye sync
- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Lint with ruff
run: rye run ruff --output-format=github .
- name: Install the project
run: uv sync --locked --all-extras --dev

- name: Format with ruff
run: rye run ruff format .
- name: Run linter
run: uv run ruff check .

- name: Run type checker
run: uv run ty check .
54 changes: 17 additions & 37 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,25 @@
name: Release
name: "Publish"

on:
release:
types: [created]
workflow_dispatch:
push:
tags:
# Publish on any tag starting with a `v`, e.g., v0.1.0
- v*

jobs:
release-build:
run:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: build release distributions
run: |
pip install build
python -m build

- name: upload windows dists
uses: actions/upload-artifact@v3
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write

contents: read
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v3
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Checkout
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Install Python 3.14
run: uv python install 3.14
- name: Build
run: uv build
- name: Publish
run: uv publish
31 changes: 11 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
[project]
name = "tileget"
version = "0.4.2"
version = "0.4.3"
description = "Tile download utility - easily download xyz-tile data"
readme = "README.md"
requires-python = ">= 3.10"
dependencies = [
"shapely>=2.0.3",
"tiletanic>=1.1.0",
"pyproj>=3.6.1"
]
requires-python = ">= 3.14"
dependencies = ["shapely>=2.0.3", "tiletanic>=1.1.0", "pyproj>=3.6.1"]

[dependency-groups]
dev = ["ruff>=0.3.7", "ty>=0.0.13"]

[project.scripts]
tileget = "tileget.__main__:main"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.3.7",
]

[tool.hatch.metadata]
allow-direct-references = true
requires = ["uv_build>=0.9.9,<0.10.0"]
build-backend = "uv_build"

[tool.hatch.build.targets.wheel]
packages = ["tileget"]
[tool.uv.build-backend]
module-name = "tileget"
module-root = ""
26 changes: 0 additions & 26 deletions requirements-dev.lock

This file was deleted.

25 changes: 0 additions & 25 deletions requirements.lock

This file was deleted.

Loading