Current UTBot Python packages:
utbot_mypy_runner: https://pypi.org/project/utbot-mypy-runner/utbot_executor: https://pypi.org/project/utbot-executor/
To be able to publish new releases on pypi, ask @tochilinak ot @tamarinvs19 to give you permissions.
To use Gradle tasks for Python packages, add the following properties in gradle.properties in your GRADLE_USER_HOME directory (about: https://docs.gradle.org/current/userguide/directory_layout.html#dir:gradle_user_home):
pythonInterpreter(for example,python3)pypiToken(about: https://pypi.org/help/#apitoken)
How this module is stored in a separate repository: https://github.com/UnitTestBot/PythonTypesAPI.
Write version in file src/main/resources/utbot_mypy_runner_version.
Gradle task setVersion will update pyproject.toml.
If you want to use some other version locally (for example, version that is not yet published), set the version
in file utbot-python/src/main/resources/local_pip_setup/local_utbot_mypy_version.
Add the following files locally (they are listed in .gitignore):
-
utbot-python/src/main/resources/local_pip_setup/local_utbot_mypy_pathAdd here absolute path to
utbot_mypy_runner/distdirectory. -
utbot-python/src/main/resources/local_pip_setup/local_utbot_mypy_versionAdd here the version of local package. This will override the version from module
PythonTypesAPI. -
utbot-python/src/main/resources/local_pip_setup/use_local_python_packagesWrite here
trueif you want to buildutbot-pythonthat uses local versions of UTBot Python packages.
Write version in file utbot-python-executor/src/main/resources/utbot_executor_version.
Gradle task utbot-python-executor:setVersion will update pyproject.toml.
Add the following files locally (they are listed in .gitignore):
-
utbot-python/src/main/resources/local_pip_setup/local_utbot_executor_pathAdd here absolute path to
utbot_executor/distdirectory. -
utbot-python/src/main/resources/local_pip_setup/use_local_python_packagesWrite here
trueif you want to buildutbot-pythonthat uses local versions of UTBot Python packages.