poyo46/neocitizen

Issue with package from pypi

Opened this issue · 0 comments

(github beginner here, I made an account just for this)

I think there's an issue with the package uploaded in pypi. Its version number is 1.0.0 but it doesn't match the code here. Maybe it's outdated? I found a lot of differences, but the main one was in api.py. It causes a bug when uploading a single file.

In the current code, the upload_files function first converts the local filepath to a Path object before calling get_extension. It doesn't do that in the pypi package so it throws an error.

Pypi version:

Screen Shot 2022-07-08 at 11 14 48 PM

Github version:

Screen Shot 2022-07-08 at 11 15 18 PM

Replacing the source files from pypi with the source files from here fixed the bug.