From fe9c8e16043651d8aa6acf65bff7aa9a0855a7dc Mon Sep 17 00:00:00 2001 From: tinyboxvk Date: Sat, 26 Oct 2024 17:07:53 -0300 Subject: [PATCH] Bump pipenv, remove Python 3.8, add Python 3.13 (#2413) --- .github/workflows/documentation.yml | 2 +- .github/workflows/lint.yml | 4 ++-- deploy/windows/create_exe.py | 2 +- setup.py | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 8a80966..112549f 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -18,7 +18,7 @@ jobs: cache: 'pipenv' - name: "Install Dependencies" run: | - python -m pip install pipenv==2024.0.1 + python -m pip install pipenv==2024.2.0 pipenv --python `python --version | grep -Eo '3\.[0-9]+'` sync --dev - name: "Build Documentation" run: pipenv --python `python --version | grep -Eo '3\.[0-9]+'` run make -C docs html SPHINXOPTS="-W -n" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5b23aad..a84d016 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Checkout Instaloader Repository uses: actions/checkout@v4 @@ -20,7 +20,7 @@ jobs: cache: 'pipenv' - name: Install Dependencies run: | - python -m pip install pipenv==2024.0.1 + python -m pip install pipenv==2024.2.0 pipenv --python `python --version | grep -Eo '3\.[0-9]+'` sync --dev - name: PyLint run: pipenv --python `python --version | grep -Eo '3\.[0-9]+'` run pylint instaloader diff --git a/deploy/windows/create_exe.py b/deploy/windows/create_exe.py index 40878a8..9e09c9a 100644 --- a/deploy/windows/create_exe.py +++ b/deploy/windows/create_exe.py @@ -44,7 +44,7 @@ with open('__main__.py', 'w+') as f: f.writelines(lines) # install dependencies and invoke PyInstaller -commands = ["pip install pipenv==2024.0.1", +commands = ["pip install pipenv==2024.2.0", f"pipenv --python {sys.version_info.major}.{sys.version_info.minor} sync --dev", "pipenv run pyinstaller --log-level=DEBUG instaloader.spec"] diff --git a/setup.py b/setup.py index 159fb63..7591c45 100755 --- a/setup.py +++ b/setup.py @@ -18,10 +18,10 @@ def get_version(): raise SystemExit("Could not find version string.") -if sys.version_info < (3, 8): - sys.exit('Instaloader requires Python >= 3.8.') +if sys.version_info < (3, 9): + sys.exit('Instaloader requires Python >= 3.9.') -requirements = ['requests>=2.4'] +requirements = ['requests>=2.25'] optional_requirements = { 'browser_cookie3': ['browser_cookie3>=0.19.1'], } @@ -46,7 +46,7 @@ setup( 'from Instagram.', long_description=open(os.path.join(SRC, 'README.rst')).read(), install_requires=requirements, - python_requires='>=3.8', + python_requires='>=3.9', extras_require=optional_requirements, entry_points={'console_scripts': ['instaloader=instaloader.__main__:main']}, zip_safe=False, @@ -58,11 +58,11 @@ setup( 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.13', 'Programming Language :: Python :: 3 :: Only', 'Topic :: Internet', 'Topic :: Multimedia :: Graphics'