Skip to content

Commit

Permalink
Release 1.187.0
Browse files Browse the repository at this point in the history
See release notes.
  • Loading branch information
cjdsellers authored Feb 9, 2024
2 parents 8aae236 + d9511b7 commit 61debf2
Show file tree
Hide file tree
Showing 201 changed files with 9,093 additions and 3,779 deletions.
6 changes: 3 additions & 3 deletions .docker/nautilus_trader.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11-slim as base
FROM python:3.12-slim as base
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=off \
Expand Down Expand Up @@ -38,10 +38,10 @@ COPY README.md ./
RUN poetry install --only main --all-extras
RUN poetry build -f wheel
RUN python -m pip install ./dist/*whl --force --no-deps
RUN find /usr/local/lib/python3.11/site-packages -name "*.pyc" -exec rm -f {} \;
RUN find /usr/local/lib/python3.12/site-packages -name "*.pyc" -exec rm -f {} \;

# Final application image
FROM base as application

COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY examples ./examples
18 changes: 16 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -45,7 +59,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -67,7 +81,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,22 @@ jobs:
RUST_BACKTRACE: 1

steps:
- name: Free disk space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -42,7 +58,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -67,7 +83,7 @@ jobs:
- name: Setup cached pre-commit
id: cached-pre-commit
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand All @@ -77,7 +93,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down Expand Up @@ -152,7 +168,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -171,7 +187,7 @@ jobs:

- name: Setup cached pre-commit
id: cached-pre-commit
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand All @@ -181,7 +197,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down
20 changes: 17 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -34,7 +48,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -58,7 +72,7 @@ jobs:
- name: Setup cached pre-commit
id: cached-pre-commit
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand All @@ -71,7 +85,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ jobs:
BUILD_MODE: release

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Free Disk Space (Ubuntu)
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
Expand All @@ -28,6 +23,11 @@ jobs:
docker-images: true
swap-storage: true

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -35,7 +49,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand Down
75 changes: 68 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Free disk space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -54,7 +70,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down Expand Up @@ -82,6 +98,21 @@ jobs:
upload_url: ${{ steps.create-release.outputs.upload_url }}

steps:
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand All @@ -102,7 +133,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand All @@ -124,7 +155,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down Expand Up @@ -164,6 +195,20 @@ jobs:
COPY_TO_SOURCE: false # Do not copy built *.so files back into source tree

steps:
- name: Free disk space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -182,7 +227,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"

Expand All @@ -204,7 +249,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down Expand Up @@ -255,6 +300,22 @@ jobs:
BUILD_MODE: release

steps:
- name: Free disk space (Ubuntu)
if: runner.os == 'Linux'
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: false
haskell: false
large-packages: true
docker-images: true
swap-storage: true

- name: Install runner dependencies
if: runner.os == 'Linux'
run: sudo apt-get install -y curl clang git libssl-dev make pkg-config

- name: Checkout repository
uses: actions/checkout@v4

Expand Down Expand Up @@ -283,7 +344,7 @@ jobs:
components: rustfmt, clippy

- name: Set up Python environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -305,7 +366,7 @@ jobs:

- name: Poetry cache
id: cached-poetry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ env.POETRY_CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }}
Expand Down
Loading

0 comments on commit 61debf2

Please sign in to comment.