Skip to content

Commit d87b447

Browse files
0.3.0 development
1 parent aa8f44f commit d87b447

20 files changed

+1089
-72
lines changed

.coverage

0 Bytes
Binary file not shown.

.github/workflows/main.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,19 @@ jobs:
66
tox:
77
strategy:
88
matrix:
9-
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
9+
python-version: [ '3.11', '3.12', '3.13' ]
1010
platform: [ubuntu-latest]
1111
runs-on: ${{ matrix.platform }}
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- name: Setup python
16-
uses: actions/setup-python@v5
15+
- name: Install uv and set the python version
16+
uses: astral-sh/setup-uv@v5
1717
with:
1818
python-version: ${{ matrix.python-version }}
19-
architecture: x64
20-
21-
- name: Install Poetry
22-
uses: snok/install-poetry@v1
23-
with:
24-
version: 1.8.3
25-
virtualenvs-create: true
26-
virtualenvs-in-project: true
27-
28-
- name: Cache Poetry virtualenv
29-
uses: actions/cache@v4
30-
id: cached-poetry-dependencies
31-
with:
32-
path: .venv
33-
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
34-
35-
- name: Install Dependencies
36-
run: poetry install
37-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
3819

20+
- name: Install the project
21+
run: uv sync --locked --all-extras --dev
22+
3923
- name: Run tox
40-
run: poetry run tox
24+
run: uv run tox

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Poetry and Python stuff
1+
# UV and Python stuff
22
**/*.egg-info/
33
**/*.pyc
44
**/*.pyo
55
**/*.log
66
**/__pycache__
77
.venv/
88
.*_cache/
9+
dist/
910

1011
# Tox
1112
.tox/

Dockerfile

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
# Will use this argument eventually to specify the python version so we can test against multiple versions
2-
ARG PYTHON=3.13
3-
FROM python:${PYTHON}-slim-bookworm
2+
ARG PYTHON_VERSION=3.13
3+
FROM python:${PYTHON_VERSION}-slim-bookworm
44

55
ENV PATH="/root/.local/bin:$PATH" \
66
PYTHONDONTWRITEBYTECODE=1 \
77
PYTHONUNBUFFERED=1
88

9-
RUN apt-get update \
10-
&& apt-get install -yq curl \
11-
&& curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3 \
12-
&& poetry config virtualenvs.create false
9+
# Install curl
10+
RUN apt-get update -y && apt-get install -y \
11+
curl \
12+
&& apt-get autoremove -y \
13+
&& apt-get clean -y \
14+
&& rm -rf /var/lib/apt/lists/*
1315

14-
COPY pyproject.toml .
15-
COPY poetry.lock .
16+
# Install UV
17+
ARG UV_VERSION=0.7.19
18+
RUN curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | sh
1619

17-
# Dependencies change more often, so we break this out so the prevous apt-get is cached
18-
RUN poetry install --no-interaction
19-
20-
ARG NAME=jsnac
21-
WORKDIR /${NAME}
20+
WORKDIR /jsnac
2221

2322
# Copy relevant files only (using .dockerignore) then install our project as a package
2423
COPY . .
25-
RUN poetry install --no-interaction
24+
RUN uv sync --locked
2625

2726
CMD ["/bin/bash"]

dist/jsnac-0.1.0-py3-none-any.whl

-9.08 KB
Binary file not shown.

dist/jsnac-0.1.0.tar.gz

-10 KB
Binary file not shown.

dist/jsnac-0.2.0-py3-none-any.whl

-10.4 KB
Binary file not shown.

dist/jsnac-0.2.0.tar.gz

-11.8 KB
Binary file not shown.

dist/jsnac-0.2.1-py3-none-any.whl

-11.3 KB
Binary file not shown.

dist/jsnac-0.2.1.tar.gz

-13.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)