annotate Makefile @ 221:a2afbf236ca8

hglib tests: remove deprecated constructions This mostly removes usage of 'assertEquals' (replaced with 'assertEqual'), as well as opening files without closing them (fixed using a 'with' statement).
author Mathias De Mare <mathias.de_mare@nokia.com>
date Thu, 09 Mar 2023 14:00:02 +0100
parents 8341f2494b3f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
219
8341f2494b3f hglib tests: migrate away from (unmaintained) nose
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 204
diff changeset
1 PYTHON=python3
0
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
2 help:
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
3 @echo 'Commonly used make targets:'
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
4 @echo ' tests - run all tests in the automatic test suite'
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
5
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
6 all: help
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
7
204
b8edcb693518 make: dist, all, and help should also be phony rules
Augie Fackler <raf@durin42.com>
parents: 82
diff changeset
8 .PHONY: tests dist all help
0
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
9
82
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
10 MANIFEST.in:
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
11 hg manifest | sed -e 's/^/include /' > MANIFEST.in
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
12
5484cfdc2d59 setup: build MANIFEST.in from hg manifest
Matt Mackall <mpm@selenic.com>
parents: 81
diff changeset
13 dist: MANIFEST.in
81
b3c2f0e6bda2 Makefile: add dist target
Matt Mackall <mpm@selenic.com>
parents: 76
diff changeset
14 TAR_OPTIONS="--owner=root --group=root --mode=u+w,go-w,a+rX-s" $(PYTHON) setup.py -q sdist
b3c2f0e6bda2 Makefile: add dist target
Matt Mackall <mpm@selenic.com>
parents: 76
diff changeset
15
0
79f88b4db15f Initial commit
Idan Kamara <idankk86@gmail.com>
parents:
diff changeset
16 tests:
219
8341f2494b3f hglib tests: migrate away from (unmaintained) nose
Mathias De Mare <mathias.de_mare@nokia.com>
parents: 204
diff changeset
17 $(PYTHON) -m unittest discover