Skip to content

2.0.1: ImportError: attempted relative import with no known parent package #43

@mtelka

Description

@mtelka

I ran tests for 2.0.1 sdist and it failed:

____________________ ERROR collecting test/test_linkify.py _____________________
ImportError while importing test module '$(BUILD_DIR)/test/test_linkify.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_linkify.py:7: in <module>
    from .utils import read_fixture_file
E   ImportError: attempted relative import with no known parent package

The sdist is apparently missing some files in the test directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions