Skip to content

Commit 2faca7b

Browse files
authored
Change to UV (#21)
* refactor structure * Improve Cache
1 parent 9f04358 commit 2faca7b

45 files changed

Lines changed: 2367 additions & 926 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/draft_release.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/publish.yaml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
python-versions: ["3.13"]
17+
18+
permissions:
19+
contents: write # needed by action-gh-release
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Extract version from tag
26+
id: tag_name
27+
run: echo "current_version=${GITHUB_REF#refs/tags/v}" >> "$GITHUB_OUTPUT"
28+
shell: bash
29+
30+
- name: Set up uv (and Python)
31+
uses: astral-sh/setup-uv@v6
32+
with:
33+
python-version: ${{ matrix.python-versions }}
34+
35+
- name: Build sdist and wheel (uv)
36+
run: uv build --no-sources
37+
38+
- name: Show dist/
39+
run: ls -l dist
40+
41+
- name: Publish to PyPI (uv)
42+
env:
43+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
44+
run: uv publish

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@ cython_debug/
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
.idea/
161161
.DS_Store
162-
oda_reader/dev_tests.py
162+
/src/oda_reader/dev_tests.py

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog for oda_reader
22

3+
## 1.3.0 (2025-06-16)
4+
- Improves cache management.
5+
36
## 1.2.2 (2025-06-16)
47
- Fixes a bug with AidData where passing None for end year would raise
58
a type error.

oda_reader/_cache.py

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)