2016-10-17 03:19:24 +00:00
|
|
|
test:
|
2016-10-17 14:05:20 +00:00
|
|
|
python setup.py nosetests
|
2016-10-17 03:19:24 +00:00
|
|
|
|
|
|
|
clean:
|
2016-10-17 06:32:41 +00: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 03:17:58 +00:00
|
|
|
sdist:
|
2017-04-05 03:00:46 +00:00
|
|
|
python setup.py sdist --formats=gztar
|
2016-10-17 06:32:41 +00:00
|
|
|
|
|
|
|
pip:
|
|
|
|
pip install -U pip cython tox nose chardet
|
|
|
|
|
|
|
|
twine:
|
2017-04-05 03:00:46 +00:00
|
|
|
twine upload dist/cchardet-*.whl dist/cchardet-*.tar.gz
|
2016-10-17 14:21:48 +00:00
|
|
|
|
|
|
|
install: clean
|
|
|
|
python setup.py install
|
2016-10-17 15:24:49 +00:00
|
|
|
|
|
|
|
build-manylinux1-wheel:
|
2017-04-05 02:30:32 +00:00
|
|
|
docker pull quay.io/pypa/manylinux1_i686
|
|
|
|
docker pull quay.io/pypa/manylinux1_x86_64
|
2018-01-09 16:11:21 +00: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 03:17:58 +00:00
|
|
|
|
|
|
|
build: clean pip test sdist build-manylinux1-wheel
|