Skip to content

Commit

Permalink
Prepare release for v1.1.0 (#16)
Browse files Browse the repository at this point in the history
* Prepare release for v1.1.0

Bump up version numbers for release 1.1.0

* Remove test that checks for version

Remove test that is checking and asserting the project version. This
test is not needed.

* Remove unused import
  • Loading branch information
EmilMaric authored Sep 7, 2020
1 parent f9f1fce commit 9f88119
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,12 @@ poetry run capgains ...
```

## Creating a release
To be added.
Once you have all the changes you desire for a release, do the following. Note that
we follow [semantic versioning](https://semver.org/) for our projects.

1. Create a new branch
2. Bump up the release numbers in `pyproject.toml` and `capgains/__init__.py`
3. Push + create PR. Once PR is ready, merge it into the master branch.
4. Create an annotated tag `git tag -a <VERSION>`, and push the tag with
`git push <VERSION>`. The ensuing CI build will notice that this is a tagged commit
and will package the project and push it to PyPI.
2 changes: 1 addition & 1 deletion capgains/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.1.0'
2 changes: 1 addition & 1 deletion 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 = "1.0.0"
version = "1.1.0"
description = "A CLI tool to calculate your capital gains"
license = "MIT"
readme = "README.md"
Expand Down
5 changes: 0 additions & 5 deletions tests/test_capgains.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
from capgains import __version__
from click.testing import CliRunner
from capgains.cli import capgains

from tests.helpers import create_csv_file, transactions_to_list


def test_version():
assert __version__ == '1.0.0'


def test_show_file_not_found(testfiles_dir):
"""Testing the capgains show command with a file that doesn't exist"""
filepath = create_csv_file(testfiles_dir,
Expand Down

0 comments on commit 9f88119

Please sign in to comment.