22# make repository-test # Test using $(PYTHON)
33# make repository-test-all # Test on all versions in $(PYTHONVERS)
44#
5+ # Beta releases:
6+ # 1. Run make repository-test-all
7+ # 2. For non-doc/formatting changes, update version in CHANGES.txt.
8+ # 3. run `make version-update` if version changed in CHANGES.txt.
9+ # 3. Commit and push
10+ #
511# Making a local package:
612# 1. Update CHANGES.txt to have a new version line
713# 2. make package
2531# 1. make repository-test tests with Anaconda virtual environment
2632# make package-test and release-test tests with native Python virtual
2733# environment.
34+ # 2. Switch to using tox and conda-tox
35+ # 3. 'pip install --editable . does not install develop dependencies, so
36+ # 'python setup.py develop' is used. Won't need figure out when 2. is finished.
2837
2938URL =https://upload.pypi.org/
3039REP =pypi
@@ -44,19 +53,16 @@ SHELL:= /bin/bash
4453
4554LONG_TESTS =false
4655
47- # Select this to have anaconda installed for you.
4856CONDA =./anaconda3
49- # Use existing anaconda
50- # CONDA=/opt/anaconda3
51- # CONDA=~/anaconda3
5257
5358# ifeq ($(shell uname -s),MINGW64_NT-10.0-18362)
5459ifeq ($(TRAVIS_OS_NAME ) ,windows)
5560 # CONDA=/c/tools/anaconda3
5661 CONDA=/c/tools/miniconda3
5762endif
5863
59- CONDA_ACTIVATE =source $(CONDA ) /etc/profile.d/conda.sh; conda activate
64+ SOURCE_CONDA =source $(CONDA ) /etc/profile.d/conda.sh
65+ CONDA_ACTIVATE =$(SOURCE_CONDA ) ; conda activate
6066
6167# ifeq ($(shell uname -s),MINGW64_NT-10.0-18362)
6268ifeq ($(TRAVIS_OS_NAME ) ,windows)
@@ -69,22 +75,17 @@ test:
6975
7076# Test contents in repository using different python versions
7177repository-test-all :
72- - rm -rf $(CONDA )
78+ rm -rf $(CONDA )
7379 @ for version in $( PYTHONVERS) ; do \
7480 make repository-test PYTHON=$$ version ; \
7581 done
7682
7783repository-test :
7884 @make clean
79-
85+ rm -rf $( CONDA )
8086 make condaenv PYTHON=$(PYTHON )
81- conda remove --name $(PYTHON) --all -y
8287
83- # https://stackoverflow.com/questions/30306099/pip-install-editable-vs-python-setup-py-develop
84- $(CONDA_ACTIVATE) $(PYTHON); \
85- pip install pytest deepdiff; pip install --editable .
86- # Previously used:
87- # $(CONDA_ACTIVATE) $(PYTHON); $(PYTHON) setup.py develop | grep "Best"
88+ $(CONDA_ACTIVATE) $(PYTHON); pip install pytest deepdiff; pip install .
8889
8990ifeq (LONG_TESTS,true)
9091 $(CONDA_ACTIVATE) $(PYTHON); python -m pytest -v -m 'long' hapiclient/test/test_hapi.py
0 commit comments