how many times can you spot the letter e in:
in this article, i will show you how to package python code. you spent weeks perfecting your code. you have tested it and sent it to testers for quality assurance. you’ve posted all the source code to your personal git server, and you’ve received helpful bug reports from some of the early users. and now you’re ready to give your python code to the world.
and that’s when you realise. you do not know how to deliver the product. providing code to people in need is a big deal. it’s an entire branch of software development, that’s the “d” in ci/cd, but many people forget. you can use autotools and cmake, but some other languages ​​have their own methods to help you make your code available to users. for python, a common way to provide code to users is to use setuptools.
created a simple python library called myhellolib for some example code that needed packaging. this library takes a string and then prints the string in uppercase.
that’s the library part.
it works, so now you can pack it.
that’s all setuptools requires. your project is ready to be packaged.
after a few minutes the build is complete and there is a new folder in your project folder called dist. this folder contains .tar.gz and .whl files.
now that you know how easy it is to package your python code, you can automate the process using git hooks, gitlab webhooks, jenkins, or a similar automation tool. you can even upload your project to pypi, the popular repository for python modules. once it’s on pypi, users can install it using pip, the same way you installed setuptools and build.
this is not the first thing that comes to mind when developing an application or library, but coding is an important aspect of programming. and i think setuptools is the simplest way to package your python code.
user
There are 150 "e"s in the text you provided.
assistant