baddowntown.blogg.se

Setuptools setup
Setuptools setup




setuptools setup

package_data: This is a dictionary where keys are package names and values are lists of glob patterns.For example, an extra mode could be test where the list of dependencies should include all the additional packages required in order to execute the tests of defined in the package. extras_require: A dictionary where the keys correspond to names of extra modes and values are lists containing the minimal dependencies required.install_requires: A list of strings containing the minimal dependencies required in order for the package to run successfully.python_requires: This is a comma-separate string that contains version specifiers for the Python version supported by the package.keywords: This is a comma-separated string (can also be a list of strings) that contains some keywords relevant to the package.

setuptools setup

  • url: A string indicating the URL to the package (usually the GitHub repository or the PyPI page).
  • long_description: A string for a longer description for the package.
  • description: This is a string for a short description of the package (usually a single-line description).
  • author: Indicates the author(s) of the package.
  • setuptools setup

    version: A string corresponding to the version number of the package.name: This is a string corresponding to the name of the package.Serves as the command line interface that enables the execution of packaging commands.Įxample setup.py file # setup.py placed at root directory from setuptools import setup setup( name='examplepackage' version='1.0.1', author='Giorgos Myrianthous', description='This is an example project', long_description='This is a longer description for the project', keywords='sample, example, setuptools', python_requires='>=3.7, It contains various information relevant to your package including options and metadata, such as package name, version, author, license, minimal dependencies, entry points, data files and many more.The setup.py file is probably the most important file that is supposed to be included at the root your Python project directory and it mostly serves two primary purposes:






    Setuptools setup