Skip to content

Commit

Permalink
Prepare for version 2.0.2 (#34)
Browse files Browse the repository at this point in the history
- Upgrade python version supported to 3.8 and 3.9 (earlier was 3.6 and 3.7) in order to have travis builds pass.
- Force urllib3 to be 1.26.6 to have travis builds pass.
  • Loading branch information
EmilMaric authored Jul 24, 2024
1 parent d0b125c commit 13b2469
Show file tree
Hide file tree
Showing 6 changed files with 403 additions and 414 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: python
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
before_install:
- pip install poetry
- pip install codecov
- pip uninstall -y urllib3
- pip install urllib3==1.26.6
install:
- poetry install -v
- pip install tox-travis
Expand Down
2 changes: 1 addition & 1 deletion capgains/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.1'
__version__ = '2.0.2'
798 changes: 392 additions & 406 deletions poetry.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Store the file as 'cad-capgains' on PyPi, but have the CLI command be named
# 'capgains'
name = "cad-capgains"
version = "2.0.1"
version = "2.0.2"
description = "A CLI tool to calculate your capital gains"
license = "MIT"
readme = "README.md"
Expand Down Expand Up @@ -34,10 +34,11 @@ keywords = [
]

[tool.poetry.dependencies]
python = "^3.6"
python = "^3.8"
click = "^7.1.2"
tabulate = "^0.8.7"
requests = "^2.23.0"
urllib3 = "1.26.6"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_exchange_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def test_exchange_rate_after_max_date():
tmr = today + timedelta(days=1)
with pytest.raises(ClickException) as excinfo:
ExchangeRate('USD', today, tmr)
assert(excinfo.value.message ==
"We do not support having transactions past today's date")
assert (excinfo.value.message ==
"We do not support having transactions past today's date")


def test_exchange_rate_ok_date(USD_exchange_rates_mock):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
isolated_build = true
skipsdist=true
envlist = py{36,37},flake8
envlist = py{38,39},flake8

[testenv]
whitelist_externals = poetry
Expand Down

0 comments on commit 13b2469

Please sign in to comment.