![]() ![]() Para correr los comandos de este artículo, debes siniciar sesión en tu servidor a través de SSH con tu usuario de Shell. While a variety of ways to structure your distribution package exist, I like the approach of placing Python code in a src directory. setuptools es una colección de mejoras a las distutils de Python que te permiten construir y distribuir más fácilmente paquetes de Python, especialmente aquellos que tienen dependencias en otros paquetes. ![]() Now cd into that directory in your favorite terminal so that it is your current working directory. In this first article, we will set up a simple directory structure, write a Python module, configure the distribution package using setup.py, and install our new package in a virtual environment.Ĭreate a new directory for the project. Add a robust and well-documented Python test framework like pytest, as introduced in Part 2, and you are golden. The tools venv and pip, and pip's cousin dependency setuptools, are usually included in your Python distribution. While Poetry and similar tools are being utilized more and more, I sometimes find that my Python development needs are satisfied by built-in Python features. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |