# setup.py

Считается **deprecated**, используем секцию в `pyproject.toml`. Используют только в том случае, если нужна программируемая установка пакета (например, для расширений для `C`)\
Конфиг для `setuptools` build backend.&#x20;

Пример

```python
from setuptools import setup, find_packages


__title__ = 'asman'
__description__ = 'The package with core functionality for Asman'
__url__ = 'https://github.com/asman-go/core'
__version__ = '0.0.1'
__author__ = 'Petrakov Oleg'
__author_email__ = 'test@gmail.com'
__license__ = 'MIT'

print(find_packages(where="src"))

# https://xebia.com/blog/a-practical-guide-to-using-setup-py/
setup(
    name=__title__,
    version=__version__,

    url=__url__,
    author=__author__,
    author_email=__author_email__,

    packages=find_packages(where="src"),
    package_dir={
        "": "src"
        # "asman.bbprograms": "src/bbprograms",
        # "asman.core": "src/core",
        # "asman.domains": "src/domains",
    },
    python_requires=">=3.10",
    install_requires=[
        'boto3',
        'grpcio',
        'grpcio-tools',
        'pydantic',
        'pydantic_settings',
    ],
    setup_requires=[
        'grpcio-tools',
        'setuptools',
    ],
    # tests_require=[
    #     'mock',
    #     'moto[all]',
    #     'pytest'
    # ],
    extras_require={
        'dev': [
            'check-manifest'
        ],
        'test': [
            'coverage'
        ]
    },
    license=__license__,
    description=__description__
)

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://appsecurity.gitbook.io/devops/ppc/ppc-langs/backend/python/packaging/konfiguraciya/setup.py.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
