From 90e6aeb61c05fe7d4ae1bc4ef08f46493b10e99b Mon Sep 17 00:00:00 2001 From: rex_divakar <15235122+rexdivakar@users.noreply.github.com> Date: Sun, 17 Mar 2024 20:08:05 +0530 Subject: [PATCH] Version fix (#78) * Update Python versions and package dependencies * Update Python version in GitHub workflow * Update Python version to 3.11 in GitHub workflow * Update tensorflow version to 2.15.0 * Refactor setup.py to use pathlib for file handling * Upgrade package version to support Python 3.11 and above --- .github/workflows/python-app.yml | 4 ++-- .github/workflows/python-test.yml | 2 +- CHANGELOG.txt | 4 ++++ req.txt | 9 ++++++++- setup.py | 11 +++++------ 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e750684..df412ce 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9d005fe..276e3b8 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7] + python-version: [3.11] steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6102074..b77a3d4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -31,3 +31,7 @@ Change Log ------------------ - Resolved Buffer Overflow in NumPy Package (CVE-2021-33430) - Updated Wiki pages + +1.3.3 (17/02/2024) +------------------ +- Upgraded the package version to support latest python 3.11 and above \ No newline at end of file diff --git a/req.txt b/req.txt index 6ba80e0..bdc2979 100644 --- a/req.txt +++ b/req.txt @@ -1,5 +1,12 @@ -tensorflow>2.0 +tensorflow==2.15.0 matplotlib slackclient python-dotenv psutil +aiohttp>=3.9.2 # not directly required, pinned by Snyk to avoid a vulnerability +fonttools>=4.43.0 # not directly required, pinned by Snyk to avoid a vulnerability +numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability +pillow>=10.2.0 # not directly required, pinned by Snyk to avoid a vulnerability +setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability +werkzeug>=2.3.8 # not directly required, pinned by Snyk to avoid a vulnerability +wheel>=0.38.0 # not directly required, pinned by Snyk to avoid a vulnerability \ No newline at end of file diff --git a/setup.py b/setup.py index 2476037..7d6fad0 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ from setuptools import setup -from os import path +from pathlib import Path classifiers = [ 'Development Status :: 5 - Production/Stable', @@ -10,14 +10,13 @@ ] # Get the long description from the README file -with open("README.md", encoding="utf-8") as f: - read_file = f.read() - +long_description = Path("README.md").read_text(encoding="utf-8") + setup( name='notifly', - version='1.3.2', + version='1.3.3', description='Notification on the fly !', - long_description=read_file, + long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/rexdivakar/Telegram-Notifly', author='Divakar R, Sanchit Jain',