本文整理汇总了Python中pybuilder.core.use_plugin函数的典型用法代码示例。如果您正苦于以下问题:Python use_plugin函数的具体用法?Python use_plugin怎么用?Python use_plugin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了use_plugin函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: use_plugin
from pybuilder.core import use_plugin, init
use_plugin('python.core')
# build
use_plugin('python.install_dependencies')
use_plugin('python.pydev')
use_plugin('python.distutils')
# quality
use_plugin('python.unittest')
use_plugin('python.coverage')
use_plugin('python.frosted')
use_plugin('python.flake8')
use_plugin('python.pylint')
use_plugin('python.pep8')
# IDE
use_plugin('python.pycharm')
default_task = ['install_dependencies', 'analyze', 'publish']
@init
def set_properties(project):
project.set_property('frosted_break_build', True)
project.set_property('flake8_break_build', True)
project.set_property('pylint_options', ["--max-line-length=79"])
示例2: use_plugin
from pybuilder.core import Author, init, use_plugin, task, depends
import os
import shutil
import subprocess
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.distutils")
use_plugin("python.unittest")
use_plugin("source_distribution")
default_task = "publish"
name = "gitvotal"
summary = "Connecting GitHub Issue with Pivotal Tracker"
description = "This project will create new Pivotal Tracker story based on GitHub issue"
authors = [Author("jocki", "[email protected]")]
url = "https://github.com/jocki/gitvotal"
version = "0.1"
def _docker_build(project, logger):
profile = project.get_property('profile')
# Creating docker staging directory
docker_dir = project.expand("$dir_target/docker")
logger.info("Creating docker staging at {0}".format(docker_dir))
shutil.rmtree(docker_dir, True)
os.mkdir(docker_dir)
# Copying Dockerfile
示例3: import
from pybuilder.utils import assert_can_execute
from pybuilder.utils import execute_command
from pybuilder.errors import BuildFailedException
from pybuilder.core import NAME_ATTRIBUTE
from pybuilder.core import (after,
task,
init,
use_plugin,
depends)
__author__ = 'Marcel Wolf'
DEB_PACKAGE_MAINTAINER = "John Doe <[email protected]>"
use_plugin("core")
@init
def initialize_make_deb_plugin(project):
project.plugin_depends_on("stdeb")
package_name = project.name + "-" + project.version + ".tar.gz"
PATH_TO_SOURCE_TARBALL = project.expand_path(
"$dir_dist/dist/" + package_name)
PATH_FINAL_BUILD = project.expand_path("$dir_dist/dist/")
project.set_property_if_unset(
"deb_package_maintainer", DEB_PACKAGE_MAINTAINER)
示例4: use_plugin
import subprocess
from pybuilder.core import Author, init, use_plugin, task, before, after
use_plugin("filter_resources")
use_plugin("python.core")
use_plugin("python.install_dependencies")
use_plugin("python.distutils")
use_plugin("python.pycharm")
name = "fuct"
url = "https://github.com/MrOnion/fuct"
description = "Visit %s for more information." % url
authors = [Author("Ari Karhu", "[email protected]")]
license = "MIT License"
summary = "Unified commandline tools for FreeEMS"
default_task = ["install_dependencies", "publish"]
@init
def set_properties(project, logger):
project.get_property("filter_resources_glob").append("**/fuct/__init__.py")
project.depends_on("pyserial", ">=2.7")
project.depends_on("futures", ">=3.0.3")
project.depends_on("colorlog[windows]", ">=2.0.0")
logger.info("Executing git describe")
project.version = subprocess.check_output(
["git", "describe", "--abbrev=0"]).rstrip("\n")
project.set_property("gitdesc", subprocess.check_output(
["git", "describe", "--tags", "--always", "--long", "--dirty"]).rstrip("\n"))
示例5: bootstrap
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.insert(0, 'src/main/python') # This is only necessary in PyBuilder sources for bootstrap
from pybuilder import bootstrap
from pybuilder.core import Author, init, use_plugin
bootstrap()
use_plugin("python.core")
use_plugin("python.pytddmon")
use_plugin("python.distutils")
use_plugin("python.install_dependencies")
use_plugin("copy_resources")
use_plugin("filter_resources")
use_plugin("source_distribution")
use_plugin("python.unittest")
if sys.platform != "win32":
use_plugin("python.cram")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
示例6: use_plugin
from pybuilder.core import use_plugin, init
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
#use_plugin("python.flake8")
#use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('python.pydev')
name = "sample_pybuilder"
default_task = "publish"
@init
def set_properties(project):
pass
示例7: use_plugin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from pybuilder.core import use_plugin, init, Author
from pybuilder.vcs import VCSRevision
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
#use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('python.cram')
name = "snakepit"
default_task = "publish"
version = VCSRevision().get_git_revision_count()
summary = "Package Python software as an RPM including all dependencies " \
"(even the interpreter)."
authors = [Author('Valentin Haenel', '[email protected]')]
license = 'Apache'
url = 'https://github.com/ImmobilienScout24/snakepit'
@init
def set_properties(project):
project.set_property('install_dependencies_upgrade', True)
project.build_depends_on("unittest2")
project.build_depends_on("requests_mock")
project.depends_on("jinja2")
project.depends_on("pyyaml")
示例8: use_plugin
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from pybuilder.core import init, use_plugin, Author, before
# declare specific plugins we need to use:
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin("filter_resources")
use_plugin("copy_resources")
use_plugin("source_distribution")
use_plugin("python.sonarqube")
use_plugin("exec")
# define project level attributes:
name = 'clc-ansible-module'
version = '1.1.16'
summary = "Centurylink Cloud Ansible Modules"
description = "Ansible extension modules which allow users to interact with Centurylink Cloud to define and manage cloud components."
authors = [Author ("CenturyLink Cloud", "[email protected]")]
示例9: use_plugin
from pybuilder.core import use_plugin, init, Author
import os
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.install_dependencies")
use_plugin("python.flake8")
use_plugin("python.coverage")
use_plugin("python.distutils")
use_plugin('python.integrationtest')
use_plugin("pypi:pybuilder_aws_plugin")
name = "aws-set-sqs-permission-lambda"
version = "0.2"
summary = "aws-set-sqs-permission-lambda - Set SQS queue permissions for all ultimate source of accounts (usofa)"
description = """
Set SQS queue permissions for all ultimate source of accounts (usofa)
"""
authors = [Author("Enrico Heine", "[email protected]"),
Author("Tobias Vollmer", "[email protected]"),
Author("Tobias Hoeynck", "[email protected]")]
url = "https://github.com/ImmobilienScout24/aws-set-sqs-permission-lambda"
license = "Apache License 2.0"
default_task = ["clean", "analyze", "package"]
@init(environments='teamcity')
def set_properties_for_teamcity_builds(project):
project.set_property('teamcity_output', True)
project.set_property('teamcity_parameter', 'filename')
示例10: use_plugin
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from pybuilder.core import use_plugin, init, Author
use_plugin('filter_resources')
use_plugin('python.core')
use_plugin('python.coverage')
use_plugin('python.unittest')
use_plugin('python.integrationtest')
use_plugin('python.install_dependencies')
use_plugin('python.distutils')
name = 'shtub'
authors = [Author('Alexander Metzner', '[email protected]'),
Author('Michael Gruber', '[email protected]'),
Author('Maximilien Riehl', '[email protected]'),
Author('Marcel Wolf', '[email protected]'),
Author('Udo Juettner', '[email protected]')]
license = 'GNU GPL v3'
示例11: use_plugin
from pybuilder.core import use_plugin
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.pydev")
name = "ftdigpio"
default_task = "publish"
示例12: from
pyfix Principals
````````````````
pyfix aims to make tests easy to read and understand while it encourages the use of accepted software design principles
such as favor composition over inheritance. pyfix also tries to reduce the amount of syntactic "waste" that some other
frameworks suffer from (i.e. putting self in front of almost everything).
Links
`````
* pyfix Github repository <https://github.com/pyclectic/pyfix>
"""
from pybuilder.core import init, use_plugin, Author
use_plugin("filter_resources")
use_plugin("python.core")
use_plugin("python.unittest")
use_plugin("python.integrationtest")
use_plugin("python.coverage")
use_plugin("python.pychecker")
use_plugin("python.distutils")
use_plugin("python.install_dependencies")
default_task = ["analyze", "publish"]
version = "0.2.3"
summary = "A framework for writing automated software tests (non xUnit based)"
description = __doc__
示例13: use_plugin
from pybuilder.core import use_plugin, init, Author
use_plugin('python.core')
use_plugin('python.install_dependencies')
use_plugin('python.distutils')
use_plugin('python.flake8')
use_plugin('python.unittest')
use_plugin('copy_resources')
default_task = ['analyze', 'publish']
name = 'yadtbroadcast-client-wamp2'
version = '0.0.2'
summary = 'YADT - an Augmented Deployment Tool - The Broadcast Client Part'
description = """Yet Another Deployment Tool - The Broadcast Client Part
- sends state information to a Yadt Broadcast Server instance
- sends information on start/stop/status/update
- using the Wamp v2 protocol
"""
authors = [Author('Arne Hilmann', '[email protected]'),
Author('Maximilien Riehl', '[email protected]'),
Author('Marcel Wolf', '[email protected]')]
url = 'http://github.com/yadt/yadtbroadcast-client-wamp2'
license = 'GNU GPL v3'
@init
def set_properties(project):
project.build_depends_on('mock')
示例14: use_plugin
SCRIPT_DIR = os.path.dirname(__file__)
if sys.platform == 'win32':
SUBLIME_TEXT_DATA_PATH = os.environ.get('SUBLIME_TEXT_DATA')
elif sys.platform == 'darwin':
SUBLIME_TEXT_DATA_PATH = os.path.expanduser('~/Library/Application Support/Sublime Text 3')
else:
SUBLIME_TEXT_DATA_PATH = os.path.expanduser('~/.config/sublime-text-3')
# use_plugin("python.core")
# use_plugin("python.unittest")
# use_plugin("python.coverage")
# use_plugin("python.distutils")
use_plugin("python.flake8")
@init
def initialize(project):
project.version = "0.0.1"
project.set_property('dir_source_main_python', 'src')
@task
def develop():
# TODO: locate the path to ST from running process if any.
if sys.platform == 'win32':
if not (SUBLIME_TEXT_DATA_PATH and os.path.exists(SUBLIME_TEXT_DATA_PATH)):
print(r"Can't locate the Data folder. Please set %SUBLIME_TEXT_DATA%.")
return
示例15: use_plugin
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from pybuilder.core import use_plugin, init, Author, after
use_plugin('python.core')
use_plugin('python.install_dependencies')
use_plugin('python.coverage')
use_plugin('python.distutils')
use_plugin('python.unittest')
use_plugin('python.flake8')
use_plugin('python.frosted')
use_plugin('python.pydev')
use_plugin('filter_resources')
use_plugin('copy_resources')
name = 'fysom'
url = 'https://github.com/mriehl/fysom'
license = 'MIT'
authors = [Author('Mansour Behabadi', '[email protected]'),