 
      
    | You are here | dustingram.com | ||
| | | | | yasoob.me | |
| | | | | Oh hi there! Welcome to another useful post. This post is going to be about how to package your python scripts and packages for distribution on PyPI or some other place. Here I wont go too deep into explaining everything as most of us just need to know the basics of packaging. However i will provide you with different links for further study. Okay lets talk about setuptools first. What is it? | |
| | | | | yasha.solutions | |
| | | | | Goal Setup a basic command line package in python. Package Git: https://github.com/pallets/click/ Doc: https://click.palletsprojects.com/ Let's get to it Create a virtual environnement. 1 2 python -m venv my_env . my_env/bin/activate Then the setup.py file: (require setuptools) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 from setuptools import setup setup( name='myapp', version='1.0', py_modules=['myapp'], install_requires=[ 'Click', ], entry_points=""" [console_scripts] myapp=myapp:cli """, ) and the myapp. | |
| | | | | blog.meain.io | |
| | | | | How to publish a console application to pypi | |
| | | | | blog.aymenhamza.com | |
| | | Welcome to my developer blog! I'm a software developer with a passion for creating and building things. On this blog, I'll be sharing my thoughts, experiences, and insights on all things development. Whether you're just starting out in the field or you're a seasoned pro, I hope you'll find something | ||