Skip to content

[BUG] Mypy is in mandatory dependencies #583

@bbhtt

Description

@bbhtt

Describe the bug

Building 3.4.1 from PyPi sdist requires mypy to be present. #558 made this a mandatory dependency but it seems that it was only required for development purposes.

I think it should be in optional-dependencies or if you are using frameworks like poetry it should be in dev-dependencies.

To Reproduce

Try to build 3.4.1 from sdist

Expected behavior

It builds

Logs

        running egg_info
        writing src/charset_normalizer.egg-info/PKG-INFO
        writing dependency_links to src/charset_normalizer.egg-info/dependency_links.txt
        writing entry points to src/charset_normalizer.egg-info/entry_points.txt
        writing requirements to src/charset_normalizer.egg-info/requires.txt
        writing top-level names to src/charset_normalizer.egg-info/top_level.txt
        reading manifest file 'src/charset_normalizer.egg-info/SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        adding license file 'LICENSE'
        writing manifest file 'src/charset_normalizer.egg-info/SOURCES.txt'
        ERROR Missing dependencies:
        	setuptools-scm
        	mypy<=1.14.0,>=1.4.1
        Command 'python -P -mbuild --no-isolation --wheel --outdir /buildstream-build/dist .' failed with exitcode 1

Desktop (please complete the following information):

  • OS: [e.g. Linux, Windows or Mac] Linux
  • Python version [e.g. 3.5] 3.13
  • Package version [eg. 2.0.0] 3.4.1

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions