Skip to content
Open
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
18 changes: 9 additions & 9 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Install Python dependencies
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 --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
sudo apt-get install -qy gdb
- name: Install Python dependencies
run: |
uv pip install -r requirements-test.txt
uv pip install --group test
uv pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
- name: Install Python dependencies
run: |
python${{matrix.python_version}} -m pip install --upgrade pip
python${{matrix.python_version}} -m pip install -r requirements-test.txt
python${{matrix.python_version}} -m pip install --group test
python${{matrix.python_version}} -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
Expand Down Expand Up @@ -214,7 +214,7 @@ jobs:
- name: Install Python dependencies
run: |
python${{matrix.python_version}} -m pip install --upgrade pip
python${{matrix.python_version}} -m pip install -r requirements-test.txt
python${{matrix.python_version}} -m pip install --group test
python${{matrix.python_version}} -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Disable ptrace security restrictions
run: |
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
- name: Install Python dependencies
run: |
python${{matrix.python_version}} -m pip install --upgrade pip
python${{matrix.python_version}} -m pip install -r requirements-test.txt
python${{matrix.python_version}} -m pip install --group test
python${{matrix.python_version}} -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Install setuptools for the free-threading version
run: |
Expand Down Expand Up @@ -290,7 +290,7 @@ jobs:
run: |
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements-test.txt
venv/bin/python3 -m pip install --group test
venv/bin/python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
- name: Install Python dependencies
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 --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
Expand Down Expand Up @@ -364,7 +364,7 @@ jobs:
run: |
python -m venv venv
venv/bin/python -m pip install --upgrade pip
venv/bin/python -m pip install -r requirements-test.txt
venv/bin/python -m pip install --group test
venv/bin/python -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
Expand Down Expand Up @@ -402,7 +402,7 @@ jobs:
run: |
python3 -m venv venv
venv/bin/python3 -m pip install --upgrade pip
venv/bin/python3 -m pip install -r requirements-test.txt
venv/bin/python3 -m pip install --group test
venv/bin/python3 -m pip install --no-index --find-links=dist/ --only-binary=pystack pystack
- name: Run pytest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip scikit-build-core nanobind
python3 -m pip install -e . -r requirements-test.txt
python3 -m pip install -e . --group test
- name: Disable ptrace security restrictions
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sudo apt-get install -qy libdw-dev libelf-dev pkg-config
- name: Install Python dependencies
run: |
python3 -m pip install -r requirements-extra.txt
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/lint_and_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
sudo apt-get install -qy libdw-dev libelf-dev
- name: Install Python dependencies
run: |
python3 -m pip install -r requirements-extra.txt
python3 -m pip install --group extra
- name: Install Package
run: |
python3 -m pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ easier to validate it.
Before commiting anything, install the pre-commit hooks:

```shell
python3 -m pip install -r requirements-extra.txt
python3 -m pip install --group extra
pre-commit install
```

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ ENV PYTHON=python3.12 \
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

# Copy the required files
COPY ["requirements-test.txt", "requirements-extra.txt", "requirements-docs.txt", "/tmp/"]
COPY pyproject.toml /tmp/

# Install Python packages
RUN $PYTHON -m venv $VIRTUAL_ENV \
&& pip install -U pip wheel setuptools cython pkgconfig \
&& pip install -U -r /tmp/requirements-test.txt -r /tmp/requirements-extra.txt
&& pip install -U --group "/tmp/pyproject.toml:test" --group "/tmp/pyproject.toml:extra"

# Set the working directory
WORKDIR /src
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ exclude CONTRIBUTING.md
exclude Dockerfile
exclude src/pystack/*.cpp
exclude src/pystack/*.h
exclude requirements-*.txt
exclude tox.ini
exclude valgrind.supp

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

This will install PyStack in the virtual environment in development mode (the `-e` of the last
Expand Down
24 changes: 24 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ classifiers = [
"Topic :: Software Development :: Debuggers",
]

[dependency-groups]
docs = [
"recommonmark",
"sphinx",
"sphinx-autobuild",
"sphinx-argparse",
"furo",
]
extra = [
"mypy",
"bump2version",
"towncrier",
"pre-commit",
{include-group = "docs"},
]
test = [
"coverage[toml]",
"pyinstaller",
"pytest",
"pytest-cov",
"pytest-xdist",
"setuptools",
]

[project.urls]
Homepage = "https://github.com/bloomberg/pystack"

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.

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

This file was deleted.