Skip to content

Commit

Permalink
building
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Nov 1, 2024
1 parent 6a6393e commit d393ae7
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ body:
- Python3.10
- Python3.11
- Python3.12
- Python3.13
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]

- name: Build wheels Windows
Expand Down
24 changes: 1 addition & 23 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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!

Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "*"
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions unicorn_binance_websocket_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

from typing import Optional, Union
try:
# Todo remove!
# python <=3.7 support
from typing import Literal
except ImportError:
Expand Down
1 change: 1 addition & 0 deletions unicorn_binance_websocket_api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d393ae7

Please sign in to comment.