Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ jobs:
sudo apt-get install -qy clang-format npm libdebuginfod-dev libunwind-dev liblz4-dev pkg-config
- name: Install Python dependencies
run: |
python3 -m pip install -r requirements-extra.txt
python3 -m pip install --upgrade pip
python3 -m pip install --group extra
- name: Install Package
run: |
python3 -m pip install -e .
Expand Down Expand Up @@ -130,7 +131,7 @@ jobs:
- name: Install Python dependencies and package
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-test.txt
python3 -m pip install --group test
python3 -m pip install -e .
env:
MEMRAY_MINIMIZE_INLINING: 1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
sudo apt-get install --no-install-recommends -qy libdebuginfod-dev libunwind-dev liblz4-dev pkg-config
- name: Install Python dependencies
run: |
python3 -m pip install -r requirements-extra.txt
python3 -m pip install --upgrade pip
python3 -m pip install --group extra
- name: Install Package
run: |
python3 -m pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_uv_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Install Python dependencies
run: |
uv pip install --upgrade pip cython pkgconfig
uv pip install -r requirements-test.txt
uv pip install --group test

- name: Build package
run: |
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ easier to validate it.
Before commiting anything, install the prek (pre-commit) hooks:

```shell
python3 -m pip install -r requirements-extra.txt
python3 -m pip install --upgrade pip
python3 -m pip install --group extra
prek install
```

Expand Down
20 changes: 10 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ ENV PATH="${VIRTUAL_ENV}/bin:/usr/lib/ccache:${PATH}" \
PYTHON="${VIRTUAL_ENV}/bin/python" \
MEMRAY_MINIMIZE_INLINING="1"

COPY requirements-test.txt requirements-extra.txt requirements-docs.txt /tmp/

RUN $PYTHON -m pip install -U \
-r /tmp/requirements-extra.txt \
-r /tmp/requirements-test.txt \
-r /tmp/requirements-docs.txt \
cython \
pkgconfig \
setuptools \
wheel
COPY pyproject.toml /tmp/pyproject.toml

RUN $PYTHON -m pip install --upgrade pip \
&& $PYTHON -m pip install \
--group /tmp/pyproject.toml:test \
--group /tmp/pyproject.toml:extra \
Comment thread
godlygeek marked this conversation as resolved.
cython \
pkgconfig \
setuptools \
wheel

RUN npm install -g prettier

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ cd memray
python3 -m venv ../memray-env/ # just an example, put this wherever you want
source ../memray-env/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -e . -r requirements-test.txt -r requirements-extra.txt
python3 -m pip install -e . --group test --group extra
```

This will install Memray in the virtual environment in development mode (the `-e` of the last `pip install` command).
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ requires = [

build-backend = 'setuptools.build_meta'

[dependency-groups]
test=['Cython', 'coverage[toml]', "greenlet; python_version < '3.14'", 'pytest', 'pytest-cov', 'ipython', 'setuptools', 'pkgconfig', 'pytest-textual-snapshot', 'textual >= 0.43, != 0.65.2, != 0.66', 'packaging']
docs=['IPython', 'sphinx','sphinx-autobuild', 'sphinx-argparse', 'furo']
extra=['mypy', 'bump2version','towncrier', 'prek', {include-group = "docs"}]

[tool.ruff]
line-length = 95
select = ["C4", "E", "F", "I001", "PERF", "W"]
Expand Down
5 changes: 0 additions & 5 deletions requirements-docs.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements-extra.txt

This file was deleted.

11 changes: 0 additions & 11 deletions requirements-test.txt

This file was deleted.

Loading