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
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Python Test dependencies
run: pip install requests webob blinker httpx
- name: Install package with test dependencies
run: pip install --group test .

- name: Set the framework
if: ${{ matrix.framework != 'NONE' }}
Expand Down Expand Up @@ -72,4 +72,4 @@ jobs:
run: pip install fastapi==$FASTAPI_VERSION

- name: Run tests
run: python -m unittest rollbar.test.discover
run: pytest
35 changes: 28 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "rollbar"
dynamic = ["version"]
Expand Down Expand Up @@ -40,21 +44,38 @@ dependencies = [
"requests>=0.12.1",
]

[dependency-groups]
test = [
"blinker",
"httpx",
"pytest",
"webob",
]

[project.urls]
Homepage = "https://rollbar.com/"
Documentation = "https://docs.rollbar.com/docs/python"
Changes = "https://github.com/rollbar/pyrollbar/blob/master/CHANGELOG.md"
Source = "https://github.com/rollbar/pyrollbar/"

[build-system]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just alphabetized these since I was adding additional tools

requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
version = {attr = "rollbar.__version__"}

[project.scripts]
rollbar = "rollbar.cli:main"

[project.entry-points."paste.filter_app_factory"]
pyramid = "rollbar.contrib.pyramid:create_rollbar_middleware"

[tool.pytest]
testpaths = [
"rollbar/test",
]

[tool.setuptools.dynamic]
version = {attr = "rollbar.__version__"}

[tool.tox]
requires = ["tox>=4.22"]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is bumped to ensure dependency groups are supported


[tool.tox.env_run_base]
dependency_groups = ["test"]
description = "run unit tests"
commands = [["pytest", "{posargs}"]]
9 changes: 0 additions & 9 deletions tox.ini

This file was deleted.