Compare commits

..

No commits in common. "328fb2450995d94b59d023c153e62291d900a929" and "c0f7299643c6351450f973f26a43c7d28e1bed28" have entirely different histories.

3 changed files with 1 additions and 46 deletions

View File

@ -1,37 +0,0 @@
FROM debian:bookworm-slim AS base
RUN apt update && \
apt install -y build-essential curl git python3 pkg-config libssl-dev \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# Get Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
WORKDIR /app
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"
# RUN python3 -m pip install uv --break-system-packages
RUN uv venv
# /app/.venv/bin/python
ENV PATH="/app/.venv/bin/:$PATH"
RUN uv pip install "maturin[patchelf]"
ADD src /app/src
ADD Cargo.toml /app/Cargo.toml
ADD README.md /app/README.md
ADD pyproject.toml /app/pyproject.toml
RUN cp ./src/msyrs.pyi ./msyrs.pyi
VOLUME /app/build
# CMD ["/bin/bash"]
# CMD ["maturin", "build", "--release", "--out", "/app/build"]
# RUN maturin build --release --out ./build
# RUN uv build --sdist --wheel --out-dir ./build

View File

@ -4,14 +4,7 @@ A Rust implementation of the [Macrosynergy Python Package](https://github.com/ma
## Build and install the Python package ## Build and install the Python package
Install Cargo:
```
curl https://sh.rustup.rs -sSf | sh
```
Create a virtual environment: Create a virtual environment:
```bash ```bash
python -m venv .venv python -m venv .venv
``` ```
@ -28,7 +21,6 @@ uv pip install .
``` ```
Install from uv + Git (if authenticated): Install from uv + Git (if authenticated):
```bash ```bash
uv pip install git+https://github.com/Magnus167/msyrs@main uv pip install git+https://github.com/Magnus167/msyrs@main
``` ```

View File

@ -5,7 +5,7 @@ build-backend = "maturin"
[project] [project]
name = "msyrs" name = "msyrs"
version = "0.0.1" version = "0.0.1"
requires-python = ">=3.8" requires-python = ">=3.7"
dependencies = [ dependencies = [
"macrosynergy>=1.2.0", "macrosynergy>=1.2.0",