Skip to content

Skip dev dependencies in setup.py so pip install only pulls runtime deps#145

Open
aisk wants to merge 1 commit into
okxapi:masterfrom
aisk:reduce-install-deps
Open

Skip dev dependencies in setup.py so pip install only pulls runtime deps#145
aisk wants to merge 1 commit into
okxapi:masterfrom
aisk:reduce-install-deps

Conversation

@aisk

@aisk aisk commented Jun 9, 2026

Copy link
Copy Markdown

setup.py parses every line of requirements.txt into install_requires, which includes development and test tools such as pytest, ruff, build and twine. As a result, pip install python-okx installs all of these onto the user's machine, causing unnecessary bloat and overhead for anyone who just wants to use the SDK.

parse_requirements() now stops reading at the dev-dependency marker (# dev...), so pip install python-okx only pulls the runtime dependencies. pip install -r requirements.txt still installs everything, since pip treats the marker as a plain comment, leaving the development and CI setup unchanged.

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.

1 participant