-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 772 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (21 loc) · 772 Bytes
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
clean:
rm -rf *.so urlparse4/*.so build urlparse4/*.c urlparse4/*.cpp urlparse4/*.html dist .cache tests/__pycache__ *.rst
benchmark:
python benchmarks/urls.py
test:
py.test tests/ -v
docker_build:
docker build -t commonsearch/urlparse4 .
docker_shell:
docker run -v "$(PWD):/cosr/urlparse4:rw" -w /cosr/urlparse4 -i -t commonsearch/urlparse4 bash
docker_test:
docker run -v "$(PWD):/cosr/urlparse4:rw" -w /cosr/urlparse4 -i -t commonsearch/urlparse4 make test
docker_benchmark:
docker run -v "$(PWD):/cosr/urlparse4:rw" -w /cosr/urlparse4 -i -t commonsearch/urlparse4 make benchmark
build_ext:
python setup.py build_ext --inplace
sdist:
python setup.py sdist
pypi: clean build_ext
pip install pypandoc
python setup.py sdist upload -r pypi-commonsearch