diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ddcd6f5..12d11e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,11 +14,11 @@ jobs: - uses: actions/checkout@v4.2.2 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12.4' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + pip install uv + uv pip install -e . - name: Extract functionInputSchema id: extract_schema run: | diff --git a/Dockerfile b/Dockerfile index 0e0fd9e..e1c9617 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # We use the official Python 3.13 image as our base image and will add our code to it. For more details, see https://hub.docker.com/_/python -FROM python:3.13-slim +FROM python:3.12.4-slim # We set the working directory to be the /home/speckle directory; all of our files will be copied here. WORKDIR /home/speckle @@ -9,5 +9,10 @@ WORKDIR /home/speckle # This assumes that the Dockerfile is in the same directory as the rest of the code COPY . /home/speckle -# Install the required packages directly using pip -RUN pip install --no-cache-dir -r requirements.txt \ No newline at end of file +# uv will manage dependency installation +RUN pip install uv + +# Install your package and dependencies +RUN uv pip install -e . + +CMD ["python", "main.py", "run"] \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2847d31..22a0e6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,9 @@ dependencies = [ "specklepy>=2.21.3", ] +[tool.setuptools] +packages = ["src"] + [tool.ruff] select = [ "E", # pycodestyle