2016-10-17 11:19:24 +08:00
|
|
|
test:
|
2016-10-17 22:05:20 +08:00
|
|
|
python setup.py nosetests
|
2016-10-17 11:19:24 +08:00
|
|
|
|
|
|
|
clean:
|
2016-10-17 14:32:41 +08:00
|
|
|
$(RM) -r build dist src/cchardet/__pycache__ src/cchardet/*.cpp src/cchardet/*.pyc src/cchardet/*.so src/cchardet.egg-info src/tests/__pycache__ src/tests/*.pyc
|
|
|
|
|
2017-01-08 11:17:58 +08:00
|
|
|
sdist:
|
2017-04-05 11:00:46 +08:00
|
|
|
python setup.py sdist --formats=gztar
|
2016-10-17 14:32:41 +08:00
|
|
|
|
|
|
|
pip:
|
|
|
|
pip install -U pip cython tox nose chardet
|
|
|
|
|
|
|
|
twine:
|
2017-04-05 11:00:46 +08:00
|
|
|
twine upload dist/cchardet-*.whl dist/cchardet-*.tar.gz
|
2016-10-17 22:21:48 +08:00
|
|
|
|
|
|
|
install: clean
|
|
|
|
python setup.py install
|
2016-10-17 23:24:49 +08:00
|
|
|
|
|
|
|
build-manylinux1-wheel:
|
2017-04-05 10:30:32 +08:00
|
|
|
docker pull quay.io/pypa/manylinux1_i686
|
|
|
|
docker pull quay.io/pypa/manylinux1_x86_64
|
2018-01-10 00:11:21 +08:00
|
|
|
docker run --rm -ti -v `pwd`:/project \
|
|
|
|
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
|
|
|
|
-e LDFLAGS="$(LDFLAGS) -flto" \
|
|
|
|
-w /project \
|
|
|
|
quay.io/pypa/manylinux1_i686 \
|
|
|
|
bash dockerfiles/buildwheel.sh
|
|
|
|
docker run --rm -ti -v `pwd`:/project \
|
|
|
|
-e CFLAGS="-mtune=generic -pipe -fPIC -flto" \
|
|
|
|
-e LDFLAGS="$(LDFLAGS) -flto" \
|
|
|
|
-w /project \
|
|
|
|
quay.io/pypa/manylinux1_x86_64 \
|
|
|
|
bash dockerfiles/buildwheel.sh
|
2017-01-08 11:17:58 +08:00
|
|
|
|
|
|
|
build: clean pip test sdist build-manylinux1-wheel
|