py-pdf-parser icon indicating copy to clipboard operation
py-pdf-parser copied to clipboard

Py PDF Parser tests are distributed in PyPi wheels

Open aiden2480 opened this issue 2 months ago • 0 comments

Bug Report

Py PDF Parser tests are included in the wheel file uploaded to PyPi and are distributed to users when they download. Downloading and inspecting py-pdf-parser-0.12.0.tar.gz will reveal this.

This conflicts with imports as this package can actually be imported from any python file. The contents of the file show it belongs to PyPDFParser

>>> from tests import test_filtering
>>> dir(test_filtering)
['BaseTestCase', 'BoundingBox', 'ElementList', 'ElementOutOfRangeError', 'FakePDFMinerTextElement', 'MultipleElementsFoundError', 'NoElementFoundError', 'PDFDocument', 'PDFElement', 'Page', 'TestFiltering', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'call', 'create_pdf_document', 'patch', 're']

Folder view of tests in site-packages

image

aiden2480 avatar Apr 22 '24 07:04 aiden2480