-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
26 lines (22 loc) · 847 Bytes
/
Makefile
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
publish-on-pypi:
@rm -rf build dist
@status=$$(git status --porcelain); \
if test "x$${status}" = x; then \
./venv/bin/python setup.py sdist bdist_wheel --universal; \
./venv/bin/twine upload dist/*; \
else \
echo Working directory is dirty >&2; \
fi;
test-pypi-install:
$(eval TEMPVENV := $(shell mktemp -d))
python3 -m venv $(TEMPVENV)
$(TEMPVENV)/bin/pip install pip --upgrade
$(TEMPVENV)/bin/pip install pandas_datapackage_reader
$(TEMPVENV)/bin/python -c "import sys; sys.path.remove(''); import pandas_datapackage_reader as pdr; print(pdr.__version__)"
venv:
[ -d ./venv ] || python3 -m venv venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install pytest pytest-cov
./venv/bin/pip install twine wheel setuptools geopandas --upgrade
./venv/bin/pip install -e .
.PHONY: publish-on-pypi test-pypi-install venv