diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..943a6fd --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README.md +include src/assets/*.png \ No newline at end of file diff --git a/launchers/albion-online-stats.bat b/launchers/albion-online-stats.bat index f5dd1f6..4335b8e 100644 --- a/launchers/albion-online-stats.bat +++ b/launchers/albion-online-stats.bat @@ -1,5 +1,10 @@ +TITLE Albion online stats launcher + python -m venv python_env call .\python_env\Scripts\activate.bat -python -m pip install aostats -start aostats \ No newline at end of file +python -m pip install --upgrade pip +python -m pip install aostats +python -m pip install --upgrade aostats + +call aostats \ No newline at end of file diff --git a/launchers/albion-online-stats.sh b/launchers/albion-online-stats.sh index 5f8720b..b1740a4 100644 --- a/launchers/albion-online-stats.sh +++ b/launchers/albion-online-stats.sh @@ -1,6 +1,10 @@ #!/bin/bash python -m venv python_env + source python_env/bin/activate -python -m pip install aostats -start aostats \ No newline at end of file + +python -m pip install aostats +python -m pip install --upgrade aostats + +aostats \ No newline at end of file diff --git a/setup.py b/setup.py index cbe5c14..a32cd79 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from os import path from setuptools import setup, find_packages -from src.utils import version +from src.version import version install_requires = [ "requests==2.26.0", @@ -17,13 +17,12 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: setup( name='aostats', author="Wiktor Mazur", - version=version.get_version(), + version=version, author_email="wiktormazur1@gmail.com", url="https://github.com/mazurwiktor/albion-online-stats", long_description=long_description, long_description_content_type='text/markdown', packages=find_packages('.', include=('src*')), - package_data={'': ['**/*.png']}, include_package_data=True, install_requires=install_requires, entry_points={ diff --git a/src/utils/version.py b/src/utils/version.py index 0c22329..36b7580 100644 --- a/src/utils/version.py +++ b/src/utils/version.py @@ -1,13 +1,13 @@ import os import requests -_version = "1.0.0" +from ..version import version latest_url = "https://github.com/mazurwiktor/albion-online-stats/releases/latest" def get_version(): - return _version + return version def latest_version(): @@ -18,4 +18,4 @@ def latest_version(): def current_version(): - return _version + return version diff --git a/src/version.py b/src/version.py new file mode 100644 index 0000000..48a4b53 --- /dev/null +++ b/src/version.py @@ -0,0 +1 @@ +version = "1.0.3" \ No newline at end of file