Skip to content

Commit f0f34f4

Browse files
committed
Testing fixes
1 parent d3625e3 commit f0f34f4

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ v0.1.9b0:
6969
2020-12-28 -- 1c1d32f Fix time name conflict.
7070
v0.1.9b1:
7171
2020-01-19 -- 53669fc Add missing hapitime.py file
72-
2020-01-20 -- 9f8b82f Use atol instead of rtol in readcompare.py.
72+
2020-01-19 -- Deleted v0.1.8 pip package b/c affected by above
73+
2020-01-20 -- 9f8b82f Use atol instead of rtol in readcompare.py
74+
2020-01-20 -- d3625e3 Fix for wrong error message (#24)

Makefile

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
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
@@ -25,6 +31,9 @@
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

2938
URL=https://upload.pypi.org/
3039
REP=pypi
@@ -44,19 +53,16 @@ SHELL:= /bin/bash
4453

4554
LONG_TESTS=false
4655

47-
# Select this to have anaconda installed for you.
4856
CONDA=./anaconda3
49-
# Use existing anaconda
50-
# CONDA=/opt/anaconda3
51-
# CONDA=~/anaconda3
5257

5358
# ifeq ($(shell uname -s),MINGW64_NT-10.0-18362)
5459
ifeq ($(TRAVIS_OS_NAME),windows)
5560
# CONDA=/c/tools/anaconda3
5661
CONDA=/c/tools/miniconda3
5762
endif
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)
6268
ifeq ($(TRAVIS_OS_NAME),windows)
@@ -69,22 +75,17 @@ test:
6975

7076
# Test contents in repository using different python versions
7177
repository-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

7783
repository-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

8990
ifeq (LONG_TESTS,true)
9091
$(CONDA_ACTIVATE) $(PYTHON); python -m pytest -v -m 'long' hapiclient/test/test_hapi.py

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
install_requires.append("pandas>=0.23,<0.25")
1515
install_requires.append("numpy<1.17")
1616
install_requires.append("pyparsing<3")
17-
install_requires.append("zipp<3")
1817
install_requires.append("kiwisolver<=1.1")
1918

2019
if sys.argv[1] == 'develop':

0 commit comments

Comments
 (0)