Skip to content

Commit

Permalink
Added __version__ and better tracking of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fbdesignpro committed Jul 24, 2020
1 parent 2a7b793 commit 46e08b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import setuptools
from sweetviz import __title__, __version__, __author__, __license__

with open("README.md", "r") as fh:
long_description_from_file = fh.read()

setuptools.setup(
name="sweetviz",
version="1.0beta3",
author="Francois Bertrand",
name=__title__,
version=__version__,
author=__author__,
author_email="[email protected]",
description="A pandas-based library to visualize and compare datasets.",
long_description=long_description_from_file,
long_description_content_type="text/markdown",
url="https://github.com/fbdesignpro/sweetviz",
packages=setuptools.find_packages(),
license="MIT",
license=__license__,
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
Expand Down
5 changes: 5 additions & 0 deletions sweetviz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# sweetviz public interface
# -----------------------------------------------------------------------------------
__title__ = 'sweetviz'
__version__ = "1.0beta3"
__author__ = "Francois Bertrand"
__license__ = 'MIT'

# These are the main API functions
from sweetviz.sv_public import analyze, compare, compare_intra
from sweetviz.feature_config import FeatureConfig
Expand Down
2 changes: 1 addition & 1 deletion sweetviz/sv_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def generate_html_dataframe_page(dataframe_report):

def generate_html_dataframe_summary(dataframe_report):
template = jinja2_env.get_template('dataframe_summary.html')
output = template.render(dataframe=dataframe_report)
output = template.render(dataframe=dataframe_report, version=sweetviz.__version__)
return output

def generate_html_associations(dataframe_report, which):
Expand Down
2 changes: 1 addition & 1 deletion sweetviz/templates/dataframe_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="pos-logo-group">
<div class="pos-logo im-logo"></div>
<div class="pos-credits text-credits">
v1.0beta3<br>
{{ version }}<br>
<a href="https://github.com/fbdesignpro/sweetviz">Check for updates</a> <br>
Created & maintained by <a href="https://www.fbdesignpro.com">Francois Bertrand</a> <br>
Graphic design by <a href="https://www.fbdesignpro.com" data-reach="Jeff is working on his contact info :)">Jean-Francois Hains</a>
Expand Down

0 comments on commit 46e08b8

Please sign in to comment.