python-template icon indicating copy to clipboard operation
python-template copied to clipboard

Unable to pip install from the local folder after `poetry build --format sdist`.

Open jymchng opened this issue 1 year ago • 10 comments

More details can be found in this issue: https://github.com/mtkennerly/poetry-dynamic-versioning/issues/126 on the last comment made by myself.

Thank you.

jymchng avatar Aug 01 '24 18:08 jymchng

Let's keep the discussion over here since this is unrelated to https://github.com/mtkennerly/poetry-dynamic-versioning/issues/126.

Did you follow the template instructions? It appears your project is not using git or doesn't have a .git folder.

BrianPugh avatar Aug 01 '24 18:08 BrianPugh

if you can share your repo, I can investigate.

BrianPugh avatar Aug 01 '24 18:08 BrianPugh

Thank you for your kind offer.

https://github.com/jymchng/simple-python-template

This is the repository. I had expanded on the build.py file, my goal is to be able to distribute the C extension modules to any user.

jymchng avatar Aug 01 '24 19:08 jymchng

I can't get your template working (the bootstrap script doesn't work). Once it's in a working state I can look a lil deeper.

BrianPugh avatar Aug 01 '24 19:08 BrianPugh

Hi Brian

I apologize for not informing you earlier that I don't use your bootstrap script, hence it should work without going through the bootstrap step.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Brian Pugh @.> Sent: Friday, August 2, 2024 3:41:55 AM To: BrianPugh/python-template @.> Cc: Jim Chng @.>; Author @.> Subject: Re: [BrianPugh/python-template] Unable to pip install from the local folder after poetry build --format sdist. (Issue #157)

I can't get your template working (the bootstrap script doesn't work). Once it's in a working state I can look a lil deeper.

— Reply to this email directly, view it on GitHubhttps://github.com/BrianPugh/python-template/issues/157#issuecomment-2263835138, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGU2NAR7XFB6XF7VT3ZGCJDZPKFQHAVCNFSM6AAAAABL3DSBY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRTHAZTKMJTHA. You are receiving this because you authored the thread.Message ID: @.***>

jymchng avatar Aug 02 '24 00:08 jymchng

After disabling the testpypi poetry source, it builds and installs fine for me.

BrianPugh avatar Aug 02 '24 13:08 BrianPugh

After disabling the testpypi poetry source, it builds and installs fine for me.

That's nice! Would you mind sharing what were the commands you ran?

Mine were:

poetry build --format sdist
# ./dist/simple_python_template-0.0.0.tar.gz is created
python -m pip install dist/simple_python_template-0.0.0.tar.gz

jymchng avatar Aug 02 '24 13:08 jymchng

same commands work on my machine.

BrianPugh avatar Aug 02 '24 13:08 BrianPugh

I am still facing the same problem sadly!

jymchng avatar Aug 02 '24 16:08 jymchng

when building the resulting tar should look like:

$ ls -alh dist/
total 224
drwxr-xr-x@  3 brianpugh  staff    96B Aug  2 09:48 .
drwxr-xr-x@ 26 brianpugh  staff   832B Aug  2 09:37 ..
-rw-r--r--@  1 brianpugh  staff   111K Aug  2 09:48 simple_python_template-0.0.0.post13+b2aab4a.tar.gz

BrianPugh avatar Aug 02 '24 18:08 BrianPugh

closing due to unable to reproduce.

BrianPugh avatar Aug 05 '24 14:08 BrianPugh