diff --git a/remi/__init__.py b/remi/__init__.py index c4d041d9..74378e4f 100644 --- a/remi/__init__.py +++ b/remi/__init__.py @@ -1,6 +1,40 @@ -from .gui import Widget, Button, TextInput, \ - SpinBox, Label, GenericDialog, InputDialog, ListView, ListItem, DropDown, DropDownItem, \ - Image, Table, TableRow, TableItem, TableTitle, Input, Slider, ColorPicker, Date, GenericObject, \ - FileFolderNavigator, FileFolderItem, FileSelectionDialog, Menu, MenuItem, FileUploader, FileDownloader, VideoPlayer +from .gui import ( + Widget, + Button, + TextInput, + SpinBox, + Label, + GenericDialog, + InputDialog, + ListView, + ListItem, + DropDown, + DropDownItem, + Image, + Table, + TableRow, + TableItem, + TableTitle, + Input, + Slider, + ColorPicker, + Date, + GenericObject, + FileFolderNavigator, + FileFolderItem, + FileSelectionDialog, + Menu, + MenuItem, + FileUploader, + FileDownloader, + VideoPlayer, +) from .server import App, Server, start +from pkg_resources import get_distribution, DistributionNotFound + +try: + __version__ = get_distribution(__name__).version +except DistributionNotFound: + # package is not installed + pass diff --git a/setup.py b/setup.py index 281ea259..7df2bb56 100644 --- a/setup.py +++ b/setup.py @@ -6,17 +6,18 @@ with open("README.md", "r") as fh: long_description = fh.read() -setup(name='remi', - version='2020.08.06', - description='Python REMote Interface library', +setup( + name="remi", + description="Python REMote Interface library", + use_scm_version=True, long_description=long_description, long_description_content_type="text/markdown", - url='https://github.com/dddomodossola/remi', - download_url='https://github.com/dddomodossola/remi/archive/master.zip', - keywords=['gui-library','remi','platform-independent','ui','gui'], - author='Davide Rosa', - author_email='dddomodossola@gmail.com', - license='Apache', + url="https://github.com/dddomodossola/remi", + download_url="https://github.com/dddomodossola/remi/archive/master.zip", + keywords=["gui-library", "remi", "platform-independent", "ui", "gui"], + author="Davide Rosa", + author_email="dddomodossola@gmail.com", + license="Apache", packages=setuptools.find_packages(), include_package_data=True, )