Python package I made installls dist-info instead of the package

41 Views Asked by At

So I just tried to create my first python package on the testing python package index and when I install the packaged I only get the dist-info. The github is here and the its located here on the testing index.

I'm not sure whats going wrong and I don't even know what sort of query's I would use to resolve this issue so I am looking for support here.

This is a photo of what the package looks like after installing

As you can see there is no code in the installed package. It should be noted that I am installing the package using the command generated by testing.pypi

pip install -i https://test.pypi.org/simple/ internet-archive-uploader==1.0

I also get this error when installing which I am pretty sure I can resolve by specifying a version of internetarchive in the setup.py

INFO: pip is looking at multiple versions of internet-archive-uploader to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement internetarchive (from internet-archive-uploader) (from versions: none)
ERROR: No matching distribution found for internetarchive

Anyways to help anyone who attempts to answer this question I used this powershell script to build the project

Remove-Item 'dist' -Confirm
Remove-Item 'internet_archive_uploader.egg-info' -Confirm
pip install -e . 
py -m build

Alongside this command to upload it to the package index

py -m twine upload --repository testpypi dist/*

I am hoping the issue can be discovered from the source code but If it cant and extra information is needed I am on standby to supply it. Thanks!

Edit: I forgot to mention that I was following this tutorial.

0

There are 0 best solutions below