Skip to content

Latest commit

 

History

History
65 lines (34 loc) · 2.28 KB

File metadata and controls

65 lines (34 loc) · 2.28 KB

UTBot Python packages managements

Current UTBot Python packages:

To be able to publish new releases on pypi, ask @tochilinak ot @tamarinvs19 to give you permissions.

Gradle tasks

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):

utbot_mypy_runner

How this module is stored in a separate repository: https://github.com/UnitTestBot/PythonTypesAPI.

Version

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.

Usage of local version

Add the following files locally (they are listed in .gitignore):

  • utbot-python/src/main/resources/local_pip_setup/local_utbot_mypy_path

    Add here absolute path to utbot_mypy_runner/dist directory.

  • utbot-python/src/main/resources/local_pip_setup/local_utbot_mypy_version

    Add 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_packages

    Write here true if you want to build utbot-python that uses local versions of UTBot Python packages.

utbot_executor

Version

Write version in file utbot-python-executor/src/main/resources/utbot_executor_version.

Gradle task utbot-python-executor:setVersion will update pyproject.toml.

Usage of local version

Add the following files locally (they are listed in .gitignore):

  • utbot-python/src/main/resources/local_pip_setup/local_utbot_executor_path

    Add here absolute path to utbot_executor/dist directory.

  • utbot-python/src/main/resources/local_pip_setup/use_local_python_packages

    Write here true if you want to build utbot-python that uses local versions of UTBot Python packages.