-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathProjectfile
41 lines (32 loc) · 1.2 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
# mondrian (see github.com/python-medikit)
from medikit import listen, require, pipeline
from medikit.steps.exec import System
require("pytest")
require("sphinx")
require("format")
with require("python") as python:
python.setup(
name="mondrian",
description="Mondrian helps you to configure and use python's logging module once and for ever.",
license="Apache License, Version 2.0",
url="https://python-mondrian.github.io/",
download_url="https://github.com/python-mondrian/mondrian/archive/{version}.tar.gz",
author="Romain Dorgueil",
author_email="[email protected]",
)
python.add_requirements("colorama >=0.3.7,<0.5", dev=["pre-commit ~=2.9.2"],)
with require("make") as make:
# Pipelines
@listen(make.on_generate)
def on_make_generate_pipelines(event):
# Releases
event.makefile.add_target(
"release",
"$(MEDIKIT) pipeline release start",
deps=("medikit",),
phony=True,
doc='Runs the "release" pipeline.',
)
with pipeline("release") as release:
release.add(System('pre-commit run || true'), before="System('git add -p .', True)")
# vim: ft=python: