Skip to content

Commit ed48ddb

Browse files
committed
Complete migration from requirements.txt to pyproject.toml
Remove all requirements*.txt files and complete the migration to modern Python packaging with pyproject.toml as the single source of truth. Changes: 1. pyproject.toml: - Add furo>=2024.1.29 to dev dependencies for Sphinx theme 2. setup.py: - Simplify to minimal shim that defers to pyproject.toml - Remove code that read from requirements*.txt files - Keep only environment variable setup (LMDB_FORCE_CFFI, etc.) - Modern setuptools reads all metadata from pyproject.toml 3. GitHub Actions workflows: - deploy-docs.yml: Replace 'pip install -r requirements-dev.txt' with 'pip install -e .[dev]' - deploy-wheels.yml: Replace 'pip install -r requirements-dev.txt' with 'pip install -e .[dev]' - test-management.yml: Replace requirements files with 'pip install -e .[dev,dev-latest]' 4. Remove files: - requirements-dev.txt (now in [project.optional-dependencies] dev) - requirements-latest.txt (now in [project.optional-dependencies] dev-latest) - requirements-min.txt (no longer used) - requirements-pinned.txt (no longer used) - requirements.txt (dependencies now in [project] dependencies) Installation: - Standard: pip install . - Development: pip install -e .[dev] - Latest from GitHub: pip install -e .[dev,dev-latest] - Local editable: just install-dev-local cpy311 Benefits: - Single source of truth for all package metadata - Modern PEP 517/518/621 compliant packaging - Simpler maintenance (no duplicate dependency lists) - Better tool support (modern pip, build, twine) Supersedes commit 0f598dd
1 parent 0f598dd commit ed48ddb

File tree

10 files changed

+14
-496
lines changed

10 files changed

+14
-496
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Install Python package dependencies
7777
run: |
7878
python -m pip install --upgrade pip
79-
pip install -r requirements-dev.txt
79+
pip install -e .[dev]
8080
8181
- name: Build and deploy docs
8282
run: |

.github/workflows/deploy-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Install Python package dependencies
8181
run: |
8282
python -m pip install --upgrade pip
83-
pip install -r requirements-dev.txt
83+
pip install -e .[dev]
8484
8585
- name: Build and deploy wheels
8686
run: |

.github/workflows/test-management.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ jobs:
5959
- name: Install Python package dependencies
6060
run: |
6161
python -m pip install --upgrade pip setuptools
62-
pip install -r requirements-dev.txt
63-
64-
- name: Install Crossbar.io package dependencies & Crossbar.io
65-
run: |
66-
pip install -U -r requirements-latest.txt
67-
pip install .
62+
pip install -e .[dev,dev-latest]
6863
6964
- name: Display Crossbar.io version
7065
run: |

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ dependencies = [
146146
dev = [
147147
# Documentation
148148
"sphinx>=6.1.3",
149+
"furo>=2024.1.29",
149150
"sphinxcontrib-images>=0.9.4",
150151
"sphinxcontrib-spelling>=7.3.2",
151152
"pygments>=2.11.2",

requirements-dev.txt

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

requirements-latest.txt

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

requirements-min.txt

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

0 commit comments

Comments
 (0)