Skip to content

Commit 48ed4de

Browse files
committed
feat: Transition to pdm for python env
1 parent 6c43e5d commit 48ed4de

File tree

9 files changed

+828
-996
lines changed

9 files changed

+828
-996
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ jobs:
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323

24-
- name: Install pipenv
24+
- name: Install PDM
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install pipenv
27+
pip install pdm
2828
2929
- name: Install dependencies
3030
run: |
31-
pipenv install --dev --skip-lock
32-
pipenv install coverage mamba --skip-lock
33-
pipenv run pip list # Debug: show installed packages
31+
pdm install
32+
pdm list # Debug: show installed packages
3433
3534
- name: Run tests
3635
run: |
3736
chmod +x run_tests.sh
38-
CI=true pipenv run ./run_tests.sh
37+
CI=true pdm run ./run_tests.sh
3938
4039
- name: Upload coverage reports to Codecov
4140
if: always()
@@ -54,7 +53,6 @@ jobs:
5453
with:
5554
token: ${{ secrets.CODECOV_TOKEN }}
5655

57-
5856
- name: Upload coverage report artifact
5957
if: always()
6058
uses: actions/upload-artifact@v3

.pdm-python

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Users/razvan/Development/qc-options-framework/.venv/bin/python

Pipfile

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

Pipfile.lock

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

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@ Options framework that allows for an easier implementation of option strategies
33

44
## Setup
55

6-
In order to make this easier you need to have quantconnect running on local dev. That means
6+
In order to make this easier you need to have quantconnect running on local dev. That means:
77

8-
1. Create a new quant connect algorithm.
8+
1. Create a new quant connect algorithm
99
2. Clone this repository
10-
3. Install the quantconnect [extension](https://marketplace.visualstudio.com/items?itemName=quantconnect.quantconnect) on VSCode and setup your env
11-
4. Open your newly created algorithm on your local environment
12-
5. Copy all the files from the cloned repo to this quantconnect algo
13-
6. Start creating your own AlphaModel, MonitorModel and ExecutionModel (optional)
10+
3. Install [PDM](https://pdm.fming.dev/) if you haven't already:
11+
```bash
12+
pip install --user pdm
13+
```
14+
4. Install the quantconnect [extension](https://marketplace.visualstudio.com/items?itemName=quantconnect.quantconnect) on VSCode and setup your env
15+
5. Open your newly created algorithm on your local environment
16+
6. Copy all the files from the cloned repo to this quantconnect algo
17+
7. Install dependencies using PDM:
18+
```bash
19+
pdm install
20+
```
21+
8. Start creating your own AlphaModel, MonitorModel and ExecutionModel (optional)
1422

1523

1624
## Some explanation of how it works

0 commit comments

Comments
 (0)