Skip to content

Commit

Permalink
[fix;chore]: add a version flag for the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
marouenes committed Jan 20, 2023
1 parent 72d2f90 commit 6ea3325
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ tested using tox as an environment orchestrator and GitHub Actions.
- [ ] Add more features
- [X] Publish the package on PyPI
- [ ] Add oscar awards or nominations for the movies
- [X] Add a version switch for the cli

## License

Expand Down
5 changes: 5 additions & 0 deletions imdb_rating_classifier/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""
imdb_rating_classifier
~~~~~~~~~~~~~~~~~~~~~~
"""
__version__ = '0.1.4'
2 changes: 2 additions & 0 deletions imdb_rating_classifier/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import pandas as pd

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from imdb_rating_classifier import __version__ # noqa: E402
from imdb_rating_classifier.penalizer import penalize_reviews # noqa: E402
from imdb_rating_classifier.schema import MovieChart, validate # noqa: E402
from imdb_rating_classifier.scraper import Scraper, logger # noqa: E402
Expand All @@ -25,6 +26,7 @@
context_settings=CONTEXT_SETTINGS,
help='Application entry point for IMDB rating classifier.',
)
@click.version_option(version=__version__, prog_name='IMDB Rating Classifier')
@click.pass_context
def main(ctx: click.Context) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = imdb_rating_classifier
version = 0.1.3
version = attr: imdb_rating_classifier.__version__
description = An application that scrapes data from IMDB and adjusts rating based on some rulesets.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down

0 comments on commit 6ea3325

Please sign in to comment.