blob: eda02f2d6f284cdd6622273d37df41c46b71f854 (
plain)
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
52
53
54
55
56
57
58
59
60
|
# Some simple testing tasks (sorry, UNIX only).
PYTHON=python3
VERBOSE=$(V)
V= 0
FLAGS=
test:
$(PYTHON) runtests.py -v $(VERBOSE) $(FLAGS)
vtest:
$(PYTHON) runtests.py -v 1 $(FLAGS)
testloop:
while sleep 1; do $(PYTHON) runtests.py -v $(VERBOSE) $(FLAGS); done
# See runtests.py for coverage installation instructions.
cov coverage:
$(PYTHON) runtests.py --coverage -v $(VERBOSE) $(FLAGS)
check:
$(PYTHON) check.py
# Requires "pip install pep8".
pep8: check
pep8 --ignore E125,E127,E226 tests asyncio
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -f `find . -type f -name '*~' `
rm -f `find . -type f -name '.*~' `
rm -f `find . -type f -name '@*' `
rm -f `find . -type f -name '#*#' `
rm -f `find . -type f -name '*.orig' `
rm -f `find . -type f -name '*.rej' `
rm -rf dist
rm -f .coverage
rm -rf htmlcov
rm -rf build
rm -rf asyncio.egg-info
rm -f MANIFEST
# For distribution builders only!
# Push a source distribution for Python 3.3 to PyPI.
# You must update the version in setup.py first.
# A PyPI user configuration in ~/.pypirc is required;
# you can create a suitable confifuration using
# python setup.py register
pypi: clean
python3.3 setup.py sdist upload
# The corresponding action on Windows is pypi.bat. For that to work,
# you need to install wheel and setuptools. The easiest way is to get
# pip using the get-pip.py script found here:
# https://pip.pypa.io/en/latest/installing.html#install-pip
# That will install setuptools and pip; then you can just do
# \Python33\python.exe -m pip install wheel
# after which the pypi.bat script should work.
|