rigsby-atlas 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rigsby_atlas-0.3.0/.github/workflows/ci.yml +64 -0
- rigsby_atlas-0.3.0/.gitignore +14 -0
- rigsby_atlas-0.3.0/LICENSE +661 -0
- rigsby_atlas-0.3.0/PKG-INFO +246 -0
- rigsby_atlas-0.3.0/README.md +209 -0
- rigsby_atlas-0.3.0/deploy/README.md +102 -0
- rigsby_atlas-0.3.0/deploy/atlas.service +33 -0
- rigsby_atlas-0.3.0/deploy/nginx-atlas.conf +71 -0
- rigsby_atlas-0.3.0/examples/sample-ride.gpx +8 -0
- rigsby_atlas-0.3.0/pyproject.toml +65 -0
- rigsby_atlas-0.3.0/scripts/android-e2e.sh +33 -0
- rigsby_atlas-0.3.0/specs.md +698 -0
- rigsby_atlas-0.3.0/src/atlas/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/api/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/api/app.py +101 -0
- rigsby_atlas-0.3.0/src/atlas/api/deps.py +162 -0
- rigsby_atlas-0.3.0/src/atlas/api/location.py +123 -0
- rigsby_atlas-0.3.0/src/atlas/api/navigation.py +107 -0
- rigsby_atlas-0.3.0/src/atlas/api/rides.py +134 -0
- rigsby_atlas-0.3.0/src/atlas/api/websocket.py +43 -0
- rigsby_atlas-0.3.0/src/atlas/cli.py +296 -0
- rigsby_atlas-0.3.0/src/atlas/config.py +163 -0
- rigsby_atlas-0.3.0/src/atlas/core/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/core/deviation_detector.py +185 -0
- rigsby_atlas-0.3.0/src/atlas/core/exploration.py +66 -0
- rigsby_atlas-0.3.0/src/atlas/core/familiarity.py +33 -0
- rigsby_atlas-0.3.0/src/atlas/core/geo.py +65 -0
- rigsby_atlas-0.3.0/src/atlas/core/map_matching.py +110 -0
- rigsby_atlas-0.3.0/src/atlas/core/models.py +161 -0
- rigsby_atlas-0.3.0/src/atlas/core/navigation.py +160 -0
- rigsby_atlas-0.3.0/src/atlas/core/network.py +364 -0
- rigsby_atlas-0.3.0/src/atlas/core/reentry_planner.py +120 -0
- rigsby_atlas-0.3.0/src/atlas/core/route_alignment.py +118 -0
- rigsby_atlas-0.3.0/src/atlas/core/route_memory.py +90 -0
- rigsby_atlas-0.3.0/src/atlas/core/routing.py +166 -0
- rigsby_atlas-0.3.0/src/atlas/core/traversals.py +224 -0
- rigsby_atlas-0.3.0/src/atlas/ingestion/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/ingestion/gps_stream.py +70 -0
- rigsby_atlas-0.3.0/src/atlas/ingestion/gpx_importer.py +71 -0
- rigsby_atlas-0.3.0/src/atlas/ingestion/ride_manager.py +36 -0
- rigsby_atlas-0.3.0/src/atlas/intelligence/__init__.py +5 -0
- rigsby_atlas-0.3.0/src/atlas/services/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/services/engine.py +60 -0
- rigsby_atlas-0.3.0/src/atlas/services/exploration_service.py +142 -0
- rigsby_atlas-0.3.0/src/atlas/services/familiar_navigation.py +195 -0
- rigsby_atlas-0.3.0/src/atlas/services/processing.py +142 -0
- rigsby_atlas-0.3.0/src/atlas/services/routing_service.py +62 -0
- rigsby_atlas-0.3.0/src/atlas/services/tracking_service.py +230 -0
- rigsby_atlas-0.3.0/src/atlas/storage/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/storage/database.py +189 -0
- rigsby_atlas-0.3.0/src/atlas/storage/gps_repository.py +96 -0
- rigsby_atlas-0.3.0/src/atlas/storage/ride_repository.py +84 -0
- rigsby_atlas-0.3.0/src/atlas/storage/road_repository.py +127 -0
- rigsby_atlas-0.3.0/src/atlas/storage/route_repository.py +138 -0
- rigsby_atlas-0.3.0/src/atlas/tools/__init__.py +1 -0
- rigsby_atlas-0.3.0/src/atlas/tools/synth.py +91 -0
- rigsby_atlas-0.3.0/src/atlas/visualization/__init__.py +0 -0
- rigsby_atlas-0.3.0/src/atlas/visualization/live_map/collector.html +211 -0
- rigsby_atlas-0.3.0/src/atlas/visualization/live_map/index.html +426 -0
- rigsby_atlas-0.3.0/tests/conftest.py +88 -0
- rigsby_atlas-0.3.0/tests/test_api.py +192 -0
- rigsby_atlas-0.3.0/tests/test_config.py +37 -0
- rigsby_atlas-0.3.0/tests/test_engine.py +147 -0
- rigsby_atlas-0.3.0/tests/test_matching_and_traversals.py +88 -0
- rigsby_atlas-0.3.0/tests/test_navigation.py +124 -0
- rigsby_atlas-0.3.0/uv.lock +1853 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Tests on every pull request and push to main; on a version tag (v0.3.0), builds the package and
|
|
2
|
+
# publishes it to PyPI as rigsby-atlas with the pypi environment's API token (PYPI_API_TOKEN; a release
|
|
3
|
+
# waits for a reviewer's approval).
|
|
4
|
+
name: CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
pull_request:
|
|
8
|
+
push:
|
|
9
|
+
branches: [main]
|
|
10
|
+
tags: ["v*"]
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
- uses: astral-sh/setup-uv@v6
|
|
22
|
+
- run: uv sync --frozen --python 3.12
|
|
23
|
+
- run: uv run pytest -q
|
|
24
|
+
|
|
25
|
+
build:
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v4
|
|
29
|
+
- uses: astral-sh/setup-uv@v6
|
|
30
|
+
- name: The tag matches the package version
|
|
31
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
32
|
+
run: |
|
|
33
|
+
want="${GITHUB_REF_NAME#v}"
|
|
34
|
+
got=$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)
|
|
35
|
+
[ "$got" = "$want" ] || { echo "pyproject.toml is $got, the tag is $want"; exit 1; }
|
|
36
|
+
- name: Build and check
|
|
37
|
+
run: |
|
|
38
|
+
uv build --out-dir dist
|
|
39
|
+
uvx twine check --strict dist/*
|
|
40
|
+
- name: Install the wheel and run the command
|
|
41
|
+
run: |
|
|
42
|
+
uv venv /tmp/check --python 3.12
|
|
43
|
+
VIRTUAL_ENV=/tmp/check uv pip install dist/*.whl
|
|
44
|
+
ATLAS_HOME=/tmp/atlas-home /tmp/check/bin/atlas --help > /dev/null
|
|
45
|
+
- uses: actions/upload-artifact@v4
|
|
46
|
+
with:
|
|
47
|
+
name: dist
|
|
48
|
+
path: dist/
|
|
49
|
+
|
|
50
|
+
publish:
|
|
51
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
52
|
+
needs: [test, build]
|
|
53
|
+
runs-on: ubuntu-latest
|
|
54
|
+
environment:
|
|
55
|
+
name: pypi
|
|
56
|
+
url: https://pypi.org/project/rigsby-atlas/
|
|
57
|
+
steps:
|
|
58
|
+
- uses: actions/download-artifact@v4
|
|
59
|
+
with:
|
|
60
|
+
name: dist
|
|
61
|
+
path: dist/
|
|
62
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
63
|
+
with:
|
|
64
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|