Skip to content

Remove self-dev-dependency from Cargo.toml #1817

@davidhewitt

Description

@davidhewitt

From the discussion in #1811, it sounds like the use of path = . dev-dependency is ill-advised.

pyo3 = { path = ".", default-features = false, features = ["macros", "auto-initialize"] }

@decathorpe - the use of this arose because cargo test without the features enabled by the self-dev-dependency is more-or-less pointless - we need the auto-initialize feature enabled else every test will fail when trying to get the Python interpreter. Perhaps I can come up with a better solution for that.

FWIW this was recommended in rust-lang/cargo#2911 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions