Skip to content

poly check: library discovery when the name differs from the import. #237

@DavidVujic

Description

@DavidVujic

Describe the bug
The pyjwt library is highlighted as missing when using the --strict flag with the poly check command.

This is because the Library name differs in three places:
the import jwt
the pypi package name pyjwt
and the installed library name PyJWT.

The bug in The Polylith source code: it doesn't handle casings when doing the library-name/package lookups by key (lowercase/upper-lower-case)

Expected behavior
The pyjwt library should be recognized as added to the venv.

Additional context
Discussion: #209

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions