Skip to content

fix: move pytest from runtime dependencies to test extras#121

Open
haosenwang1018 wants to merge 1 commit into
alexzhang13:mainfrom
haosenwang1018:fix/move-pytest-to-dev-deps
Open

fix: move pytest from runtime dependencies to test extras#121
haosenwang1018 wants to merge 1 commit into
alexzhang13:mainfrom
haosenwang1018:fix/move-pytest-to-dev-deps

Conversation

@haosenwang1018
Copy link
Copy Markdown

Problem

pytest>=9.0.2 is listed in [project.dependencies], so it gets installed for all users even though it's only needed for testing. It's already correctly listed under [project.optional-dependencies.test].

Fixes #93

Changes

Remove pytest>=9.0.2 from [project.dependencies] in pyproject.toml. The [project.optional-dependencies.test] section already includes pytest>=8.0.0 for development use.

Impact

Users installing via pip install rlms will no longer pull in pytest and its transitive dependencies unnecessarily. Developers can still install test deps via pip install rlms[test].

pytest>=9.0.2 was listed in [project.dependencies], causing it to be
installed for all users. It's already correctly listed under
[project.optional-dependencies.test] as pytest>=8.0.0.

Remove from main dependencies since it's only needed for development.

Fixes alexzhang13#93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

should pytest be a dev dependency ?

1 participant