-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathProjectfile
51 lines (43 loc) · 1.26 KB
/
Projectfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Project configuration for "bonobo_docker".
from medikit import listen, require
pytest = require('pytest')
python = require('python')
yapf = require('yapf')
python.setup(
name='bonobo_docker',
python_requires='>=3.5',
description='Docker extension for Bonobo',
license='Apache License, Version 2.0',
url='https://www.bonobo-project.org/with/docker',
download_url='https://github.com/python-bonobo/bonobo-docker/tarball/{version}',
author='Romain Dorgueil',
author_email='romain@dorgueil.net',
entry_points={'bonobo.commands': [
'runc = bonobo_docker.commands.runc:RuncCommand',
]},
)
bonobo_version = '~= 0.6.0'
python.add_requirements(
'bonobo ' + bonobo_version,
'docker ~=2.7',
'requests ~=2.16',
'semantic_version ~=2.6',
dev=[
'bonobo[dev] ' + bonobo_version,
],
)
@listen('edgy.project.feature.make.on_generate')
def on_make_generate(event):
event.makefile['BONOBO_VERSION'] = '$(shell bonobo version -qq)'
event.makefile.add_target(
'images',
'''
$(PYTHON) -m $(PACKAGE) build --version $(BONOBO_VERSION) --push
''',
deps=('install', ),
phony=True,
doc='''
Build an pushes docker images.
'''
)
# vi:set ft=python: