花卉服务客户
service-flower的Python项目详细描述
[![构建状态](https://travis-ci.org/puntonim/service-flower.svg?branch=master)(https://travis ci.org/puntonim/service flower)
基本URL='https://inspire-qa-worker3-task1.cern.ch/api',
请求超时=30,
HTTP_AUTH_USERNAME='user',
HTTP_AUTH_PASSWORD='pass',
)
service_flower.conf.settings.configure(**d)
使用客户机。
从service_flower.client导入flowerclient
client=flowerclient()
response=client.get_workers(workername='celeri@inspire-qa-worker3-task5.cern.ch')
response.raise for_result()
队列=响应。获取活跃的队列的名称('celeriry@inspire-qa-worker3-worker3-task5.cern.ch.cern.ch')
```````
```` bash
``创建一个venv并安装需求:
$make venv
``运行isort和lint:
$make isort
$make lint
<
/>``运行所有的测试,运行所有的测试,运行所有的测试,运行所有的测试,运行所有的测试,创建一个venv,并安装需求:
$make test针对Python27和Python36的毒性。
$tox-针对特定的Python版本进行测试。
$py test对活动的venv进行测试。
运行特定的测试:
$make test/tests/test/test-client.py对Python27和Python36进行测试。
$tox-e py27-tests/test-client.py对特定的Python版本进行测试。
$pytesttesttest/test-e py27-tests/test-client.py对特定的Python版本进行测试。
$pytesttesttest/test-client.pytest对特定的Python版本进行测试。
$pytest/>$pytesttesttesttest/test/test-client.pytest是的active venv.
```
若要在PyPi上发布,请首先设置PyPi凭据:
``bash
version=pep440_version('1.1.1'),
```
基本URL='https://inspire-qa-worker3-task1.cern.ch/api',
请求超时=30,
HTTP_AUTH_USERNAME='user',
HTTP_AUTH_PASSWORD='pass',
)
service_flower.conf.settings.configure(**d)
使用客户机。
从service_flower.client导入flowerclient
client=flowerclient()
response=client.get_workers(workername='celeri@inspire-qa-worker3-task5.cern.ch')
response.raise for_result()
队列=响应。获取活跃的队列的名称('celeriry@inspire-qa-worker3-worker3-task5.cern.ch.cern.ch')
```````
```` bash
``创建一个venv并安装需求:
$make venv
``运行isort和lint:
$make isort
$make lint
<
/>``运行所有的测试,运行所有的测试,运行所有的测试,运行所有的测试,运行所有的测试,创建一个venv,并安装需求:
$make test针对Python27和Python36的毒性。
$tox-针对特定的Python版本进行测试。
$py test对活动的venv进行测试。
运行特定的测试:
$make test/tests/test/test-client.py对Python27和Python36进行测试。
$tox-e py27-tests/test-client.py对特定的Python版本进行测试。
$pytesttesttest/test-e py27-tests/test-client.py对特定的Python版本进行测试。
$pytesttesttest/test-client.pytest对特定的Python版本进行测试。
$pytest/>$pytesttesttesttest/test/test-client.pytest是的active venv.
```
若要在PyPi上发布,请首先设置PyPi凭据:
``bash
version=pep440_version('1.1.1'),
```