Skip to content

Commit 0c8bb08

Browse files
authored
Merge pull request #74 from jdebacker/version_bump
Bump version to include 3.8
2 parents 81bda32 + 3c04e04 commit 0c8bb08

6 files changed

Lines changed: 15 additions & 9 deletions

File tree

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ language: python
33
python:
44
- "3.6"
55
- "3.7"
6+
- "3.8"
67

78
install:
89
# Install conda
@@ -14,15 +15,15 @@ install:
1415
- conda create -n behresp-dev python=$TRAVIS_PYTHON_VERSION;
1516
- source activate behresp-dev
1617
- conda env update -f environment.yml
18+
- pip install pytest-pycodestyle
1719
- pip install pyyaml
18-
- pip install pytest-pep8
1920
- pip install coverage
2021
- pip install codecov
2122
- python setup.py install
2223

2324
# command to run tests
2425
script:
25-
- python -c "import behresp"; coverage run -m pytest -v -m "not requires_pufcsv and not pre_release and not local" --pep8
26+
- python -c "import behresp"; coverage run -m pytest -v -m "not requires_pufcsv and not pre_release and not local" --pycodestyle
2627

2728
after_success:
2829
- codecov

behresp/tests/test_behavior.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def test_nondefault_response_function(be_inc, cps_subsample):
7676
del df1
7777
del df2
7878
if be_inc == 0.0:
79-
assert np.allclose([itax1, itax2], [1461.002, 1407.800])
79+
assert np.allclose([itax1, itax2], [1355.556, 1304.984])
8080
elif be_inc == -0.1:
81-
assert np.allclose([itax1, itax2], [1461.002, 1406.627])
81+
assert np.allclose([itax1, itax2], [1355.556, 1303.898])
8282

8383

8484
def test_alternative_behavior_parameters(cps_subsample):
@@ -107,7 +107,7 @@ def test_alternative_behavior_parameters(cps_subsample):
107107
itax2 = round((df2['iitax'] * df2['s006']).sum() * 1e-9, 3)
108108
del df1
109109
del df2
110-
assert np.allclose([itax1, itax2], [1461.002, 1402.725])
110+
assert np.allclose([itax1, itax2], [1355.556, 1302.09])
111111

112112

113113
def test_quantity_response():

conda.recipe/meta.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ package:
55
requirements:
66
build:
77
- python
8-
- "taxcalc>=2.3.0"
8+
- "taxcalc>=3.0.0"
9+
- pytest
910

1011
run:
1112
- python
12-
- "taxcalc>=2.3.0"
13+
- "taxcalc>=3.0.0"
14+
- pytest
1315

1416
test:
1517
imports:

environment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: behresp-dev
22
channels:
33
- PSLmodels
4+
- conda-forge
45
dependencies:
56
- python
6-
- "taxcalc>=2.3.0"
7+
- "taxcalc>=3.0.0"
8+
- pytest
File renamed without changes.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from distutils.core import setup
55

66
with open('README.md') as f:
7-
longdesc = f.read()
7+
longdesc = f.read()
88

99
version = '0.0.0'
1010

@@ -30,6 +30,7 @@
3030
'Programming Language :: Python :: 3',
3131
'Programming Language :: Python :: 3.6',
3232
'Programming Language :: Python :: 3.7',
33+
'Programming Language :: Python :: 3.8',
3334
'Topic :: Software Development :: Libraries :: Python Modules'],
3435
'tests_require': ['pytest']
3536
}

0 commit comments

Comments
 (0)