Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7450835
Makefile.python
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Subscribers
None
Makefile.python
View Options
# -*- mode: Makefile -*-
PYMODULE
:
=
$
(
shell
basename
`pwd`
|
sed
's/-/./g'
)
PYDIR
:
=
$
(
shell
basename
`pwd`
|
sed
's
%-%
/
%g
'
)
PYTHON_BIN
:
=
$
(
shell
test
-
d
bin
/
&&
find
bin
/
-
type
f
-
executable
|
xargs
egrep
-
H
'^\#.*python'
|
cut
-
f
1
-
d
:)
TEST_DIRS
:
=
.
TEST
=
python3
-
m
pytest
TESTFLAGS
=
LINT
=
pylint3
LINTFLAGS
=
--
rcfile
=../
pylintrc
MYPY
=
mypy
MYPYFLAGS
=
all
:
.
PHONY
:
test
test
:
$
(
TEST
)
$
(
TESTFLAGS
)
$
(
TEST_DIRS
)
.
PHONY
:
coverage
coverage
:
$
(
TEST
)
$
(
TESTFLAGS
)
--
cov
=
$
(
PYMODULE
)
--
cov
-
branch
$
(
TEST_DIRS
)
.
PHONY
:
check
check
:
pre
-
commit
run
--
all
-
files
.
PHONY
:
lint
lint
:
$
(
LINT
)
$
(
LINTFLAGS
)
$
(
PYMODULE
)
.
PHONY
:
docs
docs
:
make
-
C
docs
.
PHONY
:
distclean
# Clean up Python bytecode files and a bunch of Python tool caches.
distclean
:
find
.
-
type
d
-
name
__pycache__
|
xargs
rm
-
rf
find
.
-
type
f
-
name
'*.pyc'
-
delete
rm
-
rf
.
tox
/
.
mypy_cache
/
File Metadata
Details
Attached
Mime Type
text/x-makefile
Expires
Thu, Apr 17, 8:52 AM (5 d, 5 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3237880
Attached To
rDENV Development environment
Event Timeline
Log In to Comment