Python gradle wrapper
Project description
Python gradle wrapper
Overview
pygradle is an wrapper for gradle, the modern open source build automation system. Its goal is to call gradle command and configuration from python script.
Usage
It’s helpful to use pygradle and pytractor <https://github.com/kpodl/pytractor/> for testing ex. java web application in python.
Basic
You can create Gradle wrapper from factory
from pygradle import gradlew gradle = GradleFactory.create(gradle_cmd='/path/to/gradle') gradle.build()
GradleFactory reads all tasks from gradle. Creation of gradle wrapper with factory is slow because factory is asking real gradle for tasks. Instead of that you can use:
from pygradle import gradlew gradle = gradlew.Gradle(gradle_cmd='/path/to/gradle') gradle.clean() gradle.add_tasks('package:build', 'package2:build').parallel().execute()
Which is quicker.
Missing Features
Gradle task configuration
Rest options
Finds better way to check exection status.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pygradle-0.1.dev0.tar.gz
.
File metadata
- Download URL: pygradle-0.1.dev0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 504cde93561719ac796be5866d3beb617e6aff56df1660afe9d5161436b4153e |
|
MD5 | 1df0c83a459ddd865648dcdf48dd4723 |
|
BLAKE2b-256 | 896c19b1eca903958010528f7f16a56f22e11ff946345780bb97c593aa7bf856 |