Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for version 2.0.2 #34

Merged
merged 9 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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