Skip to content

Commit

Permalink
bump version 0.0.4 => 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
marktennyson committed Oct 25, 2021
1 parent d42bf09 commit 968eca5
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@

## [0.0.5]

#### Changed
- Changed the check version system. Now anybody can get the `Navycut` version by simply executing this command: `navycut -V` or `navycut --version`

#### Bug Fixes
- Fixed static_server not working issue.
- Fixed static_server not working issue.
- Fixed paytm logo not found issue.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ python3 setup.py install

### check for installation
```bash
navycut version
0.0.3
navycut --version
0.0.5
```

### Introduction to Navycut
Expand Down
2 changes: 1 addition & 1 deletion examples/aditi/aniket/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Blog(sql.Model):
class Author(sql.Model):
# id = sql.fields.Integer(pk=True, unique=True)
name = sql.fields.Char(required=True, unique=True)
picture = sql.fields.Image(required=True)
picture = sql.fields.Image(required=False)
is_active = sql.fields.Boolean(default=True)

class ExtraUser(sql.Model):
Expand Down
Binary file added examples/aditi/uploads/images/1609533479162.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions navycut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"""
version_info = (0, 0, 4)
version_info = (0, 0, 5)


__version__ = ".".join([str(v) for v in version_info])
__author__ = "Aniket Sarkar"

def get_version(ctx=None, param=None):
def get_version():
"""
returns the default version.
"""
Expand Down
7 changes: 7 additions & 0 deletions navycut/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from .cli import print_version
import click


@click.command()
@click.option('-V', '--version', is_flag=True, callback=print_version,
expose_value=False, is_eager=True)
def _main():
from .cli import _execute_from_command_line
return _execute_from_command_line()
Expand Down
9 changes: 8 additions & 1 deletion navycut/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import click as c
from ._exec_cli import _create_boiler_project
from navycut import get_version
from navycut import __version__

def print_version(ctx, param, value):
if not value or ctx.resilient_parsing:
return
c.echo(__version__)
ctx.exit()


@c.group()
def _execute_from_command_line():
Expand Down

0 comments on commit 968eca5

Please sign in to comment.