Skip to content

Commit a5d77ec

Browse files
committed
remove requirements
1 parent 068fb14 commit a5d77ec

5 files changed

Lines changed: 20 additions & 58 deletions

File tree

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

Makefile

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,13 @@ uv: ## Create a virtual environment using uv
1010
# Download and install uv package manager
1111
@curl -LsSf https://astral.sh/uv/install.sh | sh
1212

13-
.PHONY: install
14-
install: uv ## Install a virtual environment
15-
# Create a virtual environment
16-
@uv venv
17-
# Upgrade pip to the latest version
18-
@uv pip install --upgrade pip
19-
# Install dependencies from requirements.txt
20-
@uv pip install -r requirements.txt
21-
2213
##@ Code Quality
2314

2415
.PHONY: fmt
2516
fmt: uv ## Run autoformatting and linting
2617
# Run all pre-commit hooks on all files
2718
@uvx run pre-commit run --all-files
2819

29-
##@ Dependencies
30-
31-
.PHONY: freeze
32-
freeze: install ## Freeze all requirements
33-
# Create a frozen requirements file with exact versions
34-
@uv pip freeze > requirements_frozen.txt
35-
3620
##@ Cleanup
3721

3822
.PHONY: clean
@@ -43,9 +27,9 @@ clean: ## Clean up caches and build artifacts
4327
##@ Experiments
4428

4529
.PHONY: experiments
46-
experiments: install ## Run all experiment
30+
experiments: uv ## Run all experiment
4731
# Execute the experiments script
48-
@uv run python experiments.py
32+
@uv run experiments.py
4933

5034
##@ Help
5135

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,29 @@ Please run all experiments using
1313
make experiments
1414
```
1515

16-
This first replicates the virtual environment defined in 'requirements.txt'
17-
locally and then runs the experiments defined in 'experiments.py'.
16+
This first installs uv on the fly and then creates and replicates the
17+
environment defined in the script section of the 'experiments.py' file
18+
as described in the [documentation of uv run](https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies)
1819

19-
## Reproducibility
20+
The script section is as of today
2021

21-
The main packages used are specified in 'requirements.txt', with a frozen
22-
version of all packages and their sub-dependencies in 'requirements_frozen.txt'.
23-
We used Python 3.10.13 to run the experiments.
22+
```python
23+
# /// script
24+
# requires-python = ">=3.11"
25+
# dependencies = [
26+
# "mosek==11.0.27",
27+
# "loguru==0.7.3",
28+
# "numpy==2.3.2",
29+
# "pandas[output-formatting]==2.3.1",
30+
# "matplotlib==3.10.5",
31+
# "cvxpy-base==1.7.1",
32+
# "clarabel==0.11.1"
33+
# ]
34+
# ///
35+
```
2436

2537
A large fraction of our experiments have been performed
2638
using [MOSEK](https://www.mosek.com/) as the underlying solver.
27-
A recent version of it is listed in 'requirements.txt'.
2839
We assume a valid license for MOSEK is installed. If not,
2940
you may want to apply for a [Trial License](https://www.mosek.com/try/)
3041

requirements.txt

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

requirements_frozen.txt

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

0 commit comments

Comments
 (0)