-
Notifications
You must be signed in to change notification settings - Fork 7
/
py.common.mk
31 lines (22 loc) · 1001 Bytes
/
py.common.mk
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
# This is a collection of "must have" targets for Python repositories.
#
# ------------------------------------------------------------------------------
# NOTE might be enough with core.common.mk
ifndef YP_GENERIC_COMMON_INCLUDES_DEFAULT
$(error Please include generic.common.mk, before including py.common.mk)
endif
YP_PY_COMMON_INCLUDES_DEFAULT += \
$(YP_DIR)/build.mk/py.deps.pipenv.mk \
YP_PY_COMMON_INCLUDES = $(filter-out $(YP_INCLUDES_IGNORE), $(YP_PY_COMMON_INCLUDES_DEFAULT))
include $(YP_PY_COMMON_INCLUDES)
# ------------------------------------------------------------------------------
# .py filename should not contain dots or hyphens, but it can have underscores
YP_PATH_LINT_RE := ^[a-z0-9/.-]\+\|[a-z0-9/.-]*/[a-z0-9_]\+\.py$$
YP_PATH_FILES_IGNORE += \
-e "^Pipfile$$" \
-e "/Pipfile$$" \
-e "^Pipfile.lock$$" \
-e "/Pipfile.lock$$" \
PKG_NAME := unknown # FIXME
PKG_VSN := 0.0.0 # FIXME
# ------------------------------------------------------------------------------