diff --git a/Makefile b/Makefile index c58390e..c6ec7dc 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,14 @@ test: python setup.py test clean: - $(RM) -r build dist src/cchardet/*.cpp src/cchardet.egg-info + $(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 + +sdist: clean + python setup.py sdist + +pip: + pip install -U pip cython tox nose chardet + +twine: + twine upload dist/*.whl + twine upload dist/*.tar.gz