From d393ae78dbfff7648cc3d03e35fed13db920240b Mon Sep 17 00:00:00 2001 From: oliver Date: Fri, 1 Nov 2024 12:02:48 +0100 Subject: [PATCH] building --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 + .github/workflows/build_wheels.yml | 4 ++-- .github/workflows/unit-tests.yml | 24 +----------------------- README.md | 4 ++-- environment.yml | 2 +- meta.yaml | 2 +- pyproject.toml | 2 +- setup.py | 3 +-- unicorn_binance_websocket_api/api.py | 1 + unicorn_binance_websocket_api/manager.py | 1 + 10 files changed, 12 insertions(+), 32 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 7b2ebef6d0..079e3beabd 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -70,6 +70,7 @@ body: - Python3.10 - Python3.11 - Python3.12 + - Python3.13 validations: required: true diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 585bfe8102..3cd0879d8e 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -13,7 +13,7 @@ jobs: CIBW_SKIP: "pp36-* pp37-* pp38-*" strategy: matrix: - os: [ubuntu-20.04, windows-2019, macos-11] + os: [ubuntu-20.04, windows-2019, macos-12] steps: - name: GitHub Checkout uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: CIBW_BEFORE_ALL: "bash dev/tools/github/install_rust.sh" - name: Build wheels Mac - if: matrix.os == 'macos-11' + if: matrix.os == 'macos-12' uses: pypa/cibuildwheel@v2.16.5 - name: Build wheels Windows diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 02d27208bf..49d7d14449 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,29 +7,7 @@ on: branches: [ master ] jobs: - test_python_3_7: - runs-on: ubuntu-latest - steps: - - name: GitHub Checkout - uses: actions/checkout@v4 - - - uses: actions/setup-python@v4 - with: - python-version: "3.7" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install coveralls - - - name: Unit test - env: - LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }} - LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }} - run: coverage run --source unicorn_binance_websocket_api unittest_binance_websocket_api.py - - test_python_3_8: + test_python_3_8: runs-on: ubuntu-latest steps: - name: GitHub Checkout diff --git a/README.md b/README.md index c0fa3172c8..15b1d4ff00 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ Use the [UNICORN Binance REST API](https://www.lucit.tech/unicorn-binance-rest-a ### What are the benefits of the UNICORN Binance WebSocket API? - Fully managed websockets and 100% auto-reconnect! Also handles maintenance windows! -- No memory leaks from Python version 3.7 to 3.12! +- No memory leaks from Python version 3.8 to 3.12! - The full [UBS stack](https://www.lucit.tech/unicorn-binance-suite.html) is delivered as a compiled C extension for maximum performance. @@ -415,7 +415,7 @@ machine of [HETZNER CLOUD](https://hetzner.cloud/?ref=rKgYRMq0l8fd) (Refresh update once a minute!) ## Installation and Upgrade -The module requires Python 3.7 and runs smoothly up to and including Python 3.12. +The module requires Python 3.8 and runs smoothly up to and including Python 3.12. Anaconda packages are available from Python version 3.8 and higher, but only in the latest version! diff --git a/environment.yml b/environment.yml index 3cdef2c47d..8e5940480c 100644 --- a/environment.yml +++ b/environment.yml @@ -6,7 +6,7 @@ channels: - defaults dependencies: - - python>=3.7 + - python>=3.8 - lucit::lucit-licensing-python >=1.8.2 - lucit::unicorn-fy >=0.14.2 - lucit::unicorn-binance-rest-api >=2.5.1 diff --git a/meta.yaml b/meta.yaml index a55bdee90f..8ede269e05 100644 --- a/meta.yaml +++ b/meta.yaml @@ -336,7 +336,7 @@ about: ### What are the benefits of the UNICORN Binance WebSocket API? - Fully managed websockets and 100% auto-reconnect! Also handles maintenance windows! - - No memory leaks from Python version 3.7 to 3.12! + - No memory leaks from Python version 3.8 to 3.12! - The full [UBS stack](https://www.lucit.tech/unicorn-binance-suite.html) is delivered as a compiled C extension for maximum performance. diff --git a/pyproject.toml b/pyproject.toml index 7154e54e34..7ea797b6aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ repository = "https://github.com/LUCIT-Systems-and-Development/unicorn-binance-w 'LUCIT Online Shop' = 'https://shop.lucit.services/software/unicorn-binance-suite' [tool.poetry.dependencies] -python = ">=3.7.0" +python = ">=3.8.0" cheroot = "*" colorama = "*" Cython = "*" diff --git a/setup.py b/setup.py index b6739505b4..8d2579ff34 100644 --- a/setup.py +++ b/setup.py @@ -87,12 +87,11 @@ }, packages=find_packages(exclude=[f"dev/{source_dir}"], include=[source_dir]), ext_modules=cythonize(extensions, compiler_directives={'language_level': "3"}), - python_requires='>=3.7.0', + python_requires='>=3.8.0', package_data={'': ['*.so', '*.dll', '*.py', '*.pyd', '*.pyi']}, include_package_data=True, classifiers=[ "Development Status :: 5 - Production/Stable", - "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", diff --git a/unicorn_binance_websocket_api/api.py b/unicorn_binance_websocket_api/api.py index fca85e062e..55a971e9ec 100644 --- a/unicorn_binance_websocket_api/api.py +++ b/unicorn_binance_websocket_api/api.py @@ -21,6 +21,7 @@ from typing import Optional, Union try: + # Todo remove! # python <=3.7 support from typing import Literal except ImportError: diff --git a/unicorn_binance_websocket_api/manager.py b/unicorn_binance_websocket_api/manager.py index 943fc6fbf5..67cced4066 100644 --- a/unicorn_binance_websocket_api/manager.py +++ b/unicorn_binance_websocket_api/manager.py @@ -36,6 +36,7 @@ from operator import itemgetter from typing import Optional, Union, Callable, List, Set try: + # Todo: Remove! # python <=3.7 support from typing import Literal except ImportError: