How to Build Python Packages for Pip

  Рет қаралды 43,053

James Briggs

James Briggs

Күн бұрын

Пікірлер: 49
@RudradeepMukherjee
@RudradeepMukherjee Жыл бұрын
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.
@bosra11
@bosra11 2 жыл бұрын
This is a brilliant tutorial. This is a must watch for anyone thinking about being a Python developer!
@uliuphoff1470
@uliuphoff1470 Жыл бұрын
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.
@frodethorsenbrseth5014
@frodethorsenbrseth5014 2 жыл бұрын
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?
@aavvironalex
@aavvironalex Жыл бұрын
Awesome video, made one of my goals for the summer of 2023 true! Thanks a lot!
@alphonseinbaraj7602
@alphonseinbaraj7602 3 жыл бұрын
I will do by following your procedure to create package soon. Thank you very much
@jamesbriggs
@jamesbriggs 3 жыл бұрын
that's awesome, feel free to share it here or on discord :) discord.gg/7t2CGNJdZm
@CrossK6
@CrossK6 3 жыл бұрын
Thank you for this video ! I love you VS Code thème 😍 Which one are you using ? Thank you very much !
@jamesbriggs
@jamesbriggs 3 жыл бұрын
Synthwave 84 x Flouromachine - find it here marketplace.visualstudio.com/items?itemName=webrender.synthwave-x-fluoromachine :)
@JoshvsData
@JoshvsData 3 жыл бұрын
This was a great tutorial! Hopefully I'll be able to share my first python package soon
@jamesbriggs
@jamesbriggs 3 жыл бұрын
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
@Stopinvadingmyhardware
@Stopinvadingmyhardware Жыл бұрын
Josh? This isn’t Texas. I’m not that girls Uncle.
@Diffyemo
@Diffyemo 2 жыл бұрын
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?
@baldmancodes9824
@baldmancodes9824 2 жыл бұрын
Great job on this tutorial. I tried some other tuts on KZbin. This one was by far the most clear on the subject.
@titusfx
@titusfx 2 жыл бұрын
Hi thanks for the video. What about the dependencies? How we specify that? Also what if we want to install it locally? Thanks
@foreach1
@foreach1 3 жыл бұрын
Thanks! I just post so that you can have more visibility ;-) #python #tutorial #Pip #Packages
@jamesbriggs
@jamesbriggs 3 жыл бұрын
Awesome thankyou!
@yawofori-addae3888
@yawofori-addae3888 3 жыл бұрын
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
@davidxcohen
@davidxcohen 2 жыл бұрын
Thank you James, Super digest How to ... video. Appreciated ....
@fabianabarca
@fabianabarca 2 жыл бұрын
Thanks! Very helpful and detailed
@platano5805
@platano5805 3 жыл бұрын
Great video! .....But I must know.... Where did you get those desktop wallpapers?!?
@jamesbriggs
@jamesbriggs 3 жыл бұрын
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 :)
@andrewdavies5722
@andrewdavies5722 2 жыл бұрын
how do you add requirements.txt file for larger projects?
@lethong5348
@lethong5348 2 жыл бұрын
Thank you very much!. I love you.
@snipzmattio5887
@snipzmattio5887 2 жыл бұрын
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
@proddrconi.232
@proddrconi.232 2 жыл бұрын
do pip install build.
@minecraftwithjpizza9929
@minecraftwithjpizza9929 2 жыл бұрын
@@proddrconi.232 I had the same Problem Thanks!
@lethong5348
@lethong5348 2 жыл бұрын
@@proddrconi.232 thanks. it worked
@themathforyou
@themathforyou Жыл бұрын
What is your theme?
@ShivamPatel-yg3kd
@ShivamPatel-yg3kd Жыл бұрын
Which vscode theme you are using?
@jamesbriggs
@jamesbriggs Жыл бұрын
Synthwave 84 - marketplace.visualstudio.com/items?itemName=RobbOwen.synthwave-vscode
@abhiwanders3607
@abhiwanders3607 3 жыл бұрын
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
@jamesbriggs
@jamesbriggs 3 жыл бұрын
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!
@willborucki4530
@willborucki4530 Жыл бұрын
great video!
@mrj1997
@mrj1997 3 жыл бұрын
Thanks, great content.
@jamesbriggs
@jamesbriggs 3 жыл бұрын
glad you enjoyed
@snipzmattio5887
@snipzmattio5887 2 жыл бұрын
Thank you
@kartikkumarsrivastava3288
@kartikkumarsrivastava3288 3 жыл бұрын
Awesome thanks
@Meowmeowcat312
@Meowmeowcat312 2 жыл бұрын
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
@ianyourgod
@ianyourgod 2 жыл бұрын
i got this too and nothing is helping.
@Meowmeowcat312
@Meowmeowcat312 2 жыл бұрын
@@ianyourgod its worked for me whenbi changed name
@ianyourgod
@ianyourgod 2 жыл бұрын
@@Meowmeowcat312yeah i managed to fix it by using a script to write the token for me
@PrivateKero
@PrivateKero Жыл бұрын
@@Meowmeowcat312 What name did you change? From the repository or the username?
@sureshg7124
@sureshg7124 Жыл бұрын
Not Clear
@thecoldlemonade3532
@thecoldlemonade3532 2 жыл бұрын
Are you divorced and was her name Abby?
@parththakkar4978
@parththakkar4978 2 жыл бұрын
wtf bro
@oumaimasouid5229
@oumaimasouid5229 Жыл бұрын
thank you
How to Create Python Package and Upload to PyPi
19:56
theurbanpenguin
Рет қаралды 3,6 М.
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 30 МЛН
How to Publish a Python Package to PyPI (pip)
11:38
pixegami
Рет қаралды 21 М.
Demystefying Setuptools Entry Points
38:27
Kiwi PyCon
Рет қаралды 9 М.
Protocol Or ABC In Python - When to Use Which One?
23:45
ArjanCodes
Рет қаралды 204 М.
Wheel Files: Packaging Python Applications & Modules
21:10
NeuralNine
Рет қаралды 24 М.
25 nooby Python habits you need to ditch
9:12
mCoding
Рет қаралды 1,8 МЛН
Python Packaging from Init to Deploy
36:09
Next Day Video
Рет қаралды 126 М.
Natural Language Processing with spaCy & Python - Course for Beginners
3:02:33
Create, Package & Publish your OWN Python Library
15:28
Joshua Lowe
Рет қаралды 96 М.
Data Analysis with Python for Excel Users - Full Course
3:57:46
freeCodeCamp.org
Рет қаралды 2,9 МЛН
Creating your first PyPI package
27:42
Carberra
Рет қаралды 8 М.
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН