Skip to content

Dependency pyproject - #28

Merged
mirzak merged 1 commit into
mainfrom
dependency_pyproject
Oct 22, 2025
Merged

Dependency pyproject#28
mirzak merged 1 commit into
mainfrom
dependency_pyproject

Conversation

@Dexter9532

Copy link
Copy Markdown
Contributor

This is needed for my driver to be added!

@Dexter9532
Dexter9532 force-pushed the dependency_pyproject branch from b271b7d to cff762a Compare October 21, 2025 14:30
@Dexter9532
Dexter9532 requested a review from mirzak October 21, 2025 14:32

@mirzak mirzak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pymodbus already has a dependency on pyserial, https://github.com/pymodbus-dev/pymodbus/blob/dev/pyproject.toml#L44-L47.

@Dexter9532

Copy link
Copy Markdown
Contributor Author

I see, hmm thanks for noticing me!

Signed-off-by: Bobo Bäck Engström <bobo@id8-engineering.io>
@Dexter9532
Dexter9532 force-pushed the dependency_pyproject branch from cff762a to 9c72467 Compare October 22, 2025 07:32
@Dexter9532

Copy link
Copy Markdown
Contributor Author

I have re opened this pull request, when i try uv sync on local with the changes i have made it works and without it does not.

@Dexter9532
Dexter9532 requested a review from mirzak October 22, 2025 07:33
@Dexter9532

Copy link
Copy Markdown
Contributor Author

[project.optional-dependencies]
serial = [
"pyserial>=3.5"
]
Nyckelordet här är optional-dependencies.
Det betyder att pyserial bara installeras om du uttryckligen ber pip att installera extraset serial.

@mirzak mirzak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice find with the optional flag!

@mirzak
mirzak merged commit 8e7b1ff into main Oct 22, 2025
15 checks passed
@mirzak
mirzak deleted the dependency_pyproject branch October 22, 2025 09:45
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.

2 participants