Thank you James. Appreciate it. Created my first python package with your help. For people reading this, the install url has a space between simple/ and your package name. Good luck and have a great day/night everyone.
Thanks for this great tutorial. After being a simple user of packages for a long time I now get the the pieces of the puzzle together how to create usable python packages. Everything is well explained and due to the step by step approach I can now try to program, setup, built and upload my own packages.
I've been trying to get my head around this stuff the past couple of days, and found this video very helpful, especially about which files are uploaded to pypi and how to. The only thing I would add here is that, I read about PEP-621, where it seems that the community now has chosen the pypackage.toml file to contain all metadata. I was surprised to see the setup.cfg file in this. Could the contents of setup.cfg be slightly reformatted and instead put inside pypackage.toml?
First off, super great tutorial. It’s made creating packages really easy for me. A question I had was, if I wanted to include a whole folder that had things I needed for my package, how would I do this? I tried using the approach you used for the images, but maybe I am doing it wrong because I keep getting errors when I do a ‘pip install .’ to test things before building the wheel. I have a folder with files needed for an ML package I am building, but I’m having problems including the folder as a whole in the wheel package, so I can easily point a function to the folder
Haha, I don't remember these exact pictures but a google search for something like '4K landscapes', '4K desktop backgrounds', or '4K desktop backgrounds abstract' is probably the source :)
Thank you. I really needed this video. I had been trying to figure out why my relative paths break on install. Instead of using resources and io I used import os. I made a simple function: def get_dir() -> str: return os.path.dirname(os.path.realpath(__file__)) Then used that to get the path needed to retrieve any files (in this case .sql files). Do you see any disadvantage to this approach compared to the approach you use?
james! i have my import nltk in my main.py file ... when i try i to build my package i get the error saying that no module named nltk.. how to resolve this please help
Do you have NLTK installed on your machine? You will need to specify NLTK in the setup.cfg file under the 'install_requires' parameter - there's an example here: setuptools.readthedocs.io/en/latest/userguide/declarative_config.html Hope that helps!
HTTPError: 403 Forbidden from upload.pypi.org/legacy/ Invalid or non-existent authentication information. See pypi.org/help/#invalid-auth for more information. PyPI upload failed
Thank you James. Appreciate it. Created my first python package with your help. For people reading this, the install url has a space between simple/ and your package name. Good luck and have a great day/night everyone.
This is a brilliant tutorial. This is a must watch for anyone thinking about being a Python developer!
Thanks for this great tutorial. After being a simple user of packages for a long time I now get the the pieces of the puzzle together how to create usable python packages. Everything is well explained and due to the step by step approach I can now try to program, setup, built and upload my own packages.
I will do by following your procedure to create package soon. Thank you very much
that's awesome, feel free to share it here or on discord :) discord.gg/7t2CGNJdZm
Awesome video, made one of my goals for the summer of 2023 true! Thanks a lot!
I've been trying to get my head around this stuff the past couple of days, and found this video very helpful, especially about which files are uploaded to pypi and how to.
The only thing I would add here is that, I read about PEP-621, where it seems that the community now has chosen the pypackage.toml file to contain all metadata. I was surprised to see the setup.cfg file in this. Could the contents of setup.cfg be slightly reformatted and instead put inside pypackage.toml?
Thank you for this video !
I love you VS Code thème 😍
Which one are you using ?
Thank you very much !
Synthwave 84 x Flouromachine - find it here marketplace.visualstudio.com/items?itemName=webrender.synthwave-x-fluoromachine :)
This was a great tutorial! Hopefully I'll be able to share my first python package soon
hey John yes please do that'd be awesome to see, we have a discord chat too so if you like you can share it there :)
discord.gg/c5QtDB9RAP
Josh? This isn’t Texas. I’m not that girls Uncle.
Thanks! Very helpful and detailed
Thanks! I just post so that you can have more visibility ;-) #python #tutorial #Pip #Packages
Awesome thankyou!
First off, super great tutorial. It’s made creating packages really easy for me.
A question I had was, if I wanted to include a whole folder that had things I needed for my package, how would I do this? I tried using the approach you used for the images, but maybe I am doing it wrong because I keep getting errors when I do a ‘pip install .’ to test things before building the wheel. I have a folder with files needed for an ML package I am building, but I’m having problems including the folder as a whole in the wheel package, so I can easily point a function to the folder
Hi thanks for the video. What about the dependencies? How we specify that? Also what if we want to install it locally? Thanks
Great video! .....But I must know.... Where did you get those desktop wallpapers?!?
Haha, I don't remember these exact pictures but a google search for something like '4K landscapes', '4K desktop backgrounds', or '4K desktop backgrounds abstract' is probably the source :)
16:17
I cant do python -m build
It says that /usr/bin/python: No module named build.__main__; 'build' is a package and cannot be directly executed
do pip install build.
@@proddrconi.232 I had the same Problem Thanks!
@@proddrconi.232 thanks. it worked
Thank you. I really needed this video. I had been trying to figure out why my relative paths break on install. Instead of using resources and io I used import os.
I made a simple function:
def get_dir() -> str:
return os.path.dirname(os.path.realpath(__file__))
Then used that to get the path needed to retrieve any files (in this case .sql files).
Do you see any disadvantage to this approach compared to the approach you use?
how do you add requirements.txt file for larger projects?
Thank you very much!. I love you.
Thank you James, Super digest How to ... video. Appreciated ....
Which vscode theme you are using?
Synthwave 84 - marketplace.visualstudio.com/items?itemName=RobbOwen.synthwave-vscode
What is your theme?
thank you
Great job on this tutorial. I tried some other tuts on UA-cam. This one was by far the most clear on the subject.
james! i have my import nltk in my main.py file ... when i try i to build my package i get the error saying that no module named nltk.. how to resolve this please help
Do you have NLTK installed on your machine? You will need to specify NLTK in the setup.cfg file under the 'install_requires' parameter - there's an example here: setuptools.readthedocs.io/en/latest/userguide/declarative_config.html
Hope that helps!
great video!
Thanks, great content.
glad you enjoyed
Not Clear
Awesome thanks
HTTPError: 403 Forbidden from upload.pypi.org/legacy/
Invalid or non-existent authentication information. See pypi.org/help/#invalid-auth for more information.
PyPI upload failed
i got this too and nothing is helping.
@@ianyourgod its worked for me whenbi changed name
@@Meowmeowcat312yeah i managed to fix it by using a script to write the token for me
@@Meowmeowcat312 What name did you change? From the repository or the username?
Are you divorced and was her name Abby?
wtf bro
Thank you