File tree 1 file changed +9
-13
lines changed
1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,7 @@ PYTHON_MINORS:=$(shell \
24
24
# PyPI server name, as specified in ~/.pypirc
25
25
# See http://peterdowns.com/posts/first-time-with-pypi.html
26
26
PYPI =pypitest
27
-
28
- TWINE =$(shell \
29
- pyenv shell $(shell echo "$(PYTHONS ) " | tr ' ' '\n' | tail -n1) ;\
30
- if twine --version &>/dev/null; then \
31
- echo twine ;\
32
- elif [[ -x ~/Library/Python/3.7/bin/twine ]]; then \
33
- echo '~/Library/Python/3.7/bin/twine' ;\
34
- else \
35
- echo twine ;\
36
- fi \
37
- )
27
+ TWINE =twine
38
28
39
29
# default target
40
30
all : test
@@ -112,9 +102,15 @@ pyenv-install-versions: pyenv-is-installed
112
102
export PYENV_VERSION=$$ pyver; \
113
103
pip install -U pip; \
114
104
pip install -U pytest; \
115
- pip install -U twine; \
116
- pip install -U wheel; \
117
105
done | grep -v ' Requirement already satisfied, skipping upgrade'
106
+ # twine and wheel needed only under latest PYTHONS version for uploading to PYPI
107
+ export PYENV_VERSION=$(shell \
108
+ echo $(PYTHONS ) | \
109
+ tr ' ' ' \n' | \
110
+ tail -n1 \
111
+ )
112
+ pip install -U twine
113
+ pip install -U wheel
118
114
pyenv rehash
119
115
120
116
# for debugging the Makefile
You can’t perform that action at this time.
0 commit comments