Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Nov 21, 2023
1 parent c61d111 commit 5bdd97f
Show file tree
Hide file tree
Showing 64 changed files with 924 additions and 566 deletions.
37 changes: 24 additions & 13 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@ body:
Please post here only issues concerning this repository and follow the [Issue-Guidelines](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/wiki/Issue-Guidelines).
Most of these fields are not mandatory, but please provide as much information as possible.
- type: textarea
id: Version
attributes:
label: Version of this library.
description: |
Please control what version you are using with [this script](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/blob/master/tools/get_versions_of_unicorn_packages.py) and post the output:
validations:
required: true

- type: checkboxes
id: Confirmation
attributes:
label: Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
description: |
I have searched for other Issues with the same problem or similar feature requests and have looked in the documentation. This issue also affects the latest version of this library.
I have searched for other Issues with the same problem or similar feature requests and have looked in the documentation. This issue also affects the latest version of this library.
options:
- label: I checked the documentation and other Issues. I am using the latest version of this library.
required: true

- type: textarea
id: Version
attributes:
label: Version of this library.
description: |
Please control what version you are using with [this script](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-suite/blob/master/tools/get_versions_of_unicorn_packages.py) and post the output:
validations:
required: true

- type: dropdown
id: Hardware
attributes:
Expand Down Expand Up @@ -67,17 +68,28 @@ body:
- Python3.8
- Python3.9
- Python3.10
- Python3.11
- Python3.12
validations:
required: true

- type: textarea
id: WheelInfo
attributes:
label: Installed wheel files
description: |
Please share your installed wheel files of this library. Run `pip show unicorn-binance-rest-api --files |
grep ' '` or `conda list -f unicorn-binance-rest-api | grep ' '` and post the result:
render: shell
validations:
required: false

- type: textarea
id: Packages
attributes:
label: Installed packages
description: |
Please share your installed packages by running `pip list` or `conda list` and entering the output below:
_Note:_ This will be automatically formatted as code.
placeholder: "`pip list` or `conda list`"
render: shell
validations:
required: false
Expand Down Expand Up @@ -114,7 +126,6 @@ body:
- binance.org
- binance.org-testnet
- binance.us
- jex.com
- trbinance.com
validations:
required: true
Expand Down
5 changes: 4 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ contact_links:
about: The complete UNICORN Binance Local Depth Cache documentation.
- name: Get Professional and Fast Support
url: https://www.lucit.tech/get-support.html
about: Contact the LUCIT Development Team.
about: Contact the LUCIT Development Team.
- name: Get a UNICORN Binance Suite License
url: https://shop.lucit.services/software/unicorn-binance-suite
about: LUCIT Online Shop
115 changes: 115 additions & 0 deletions .github/workflows/build_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Build and Publish Anaconda

on:
workflow_dispatch:
branches:
- master

jobs:
build_conda_packages:
name: Build conda on ${{ matrix.os }} with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
exclude:
- os: windows-2019
python-version: "3.12"
steps:
- uses: actions/checkout@v4
- name: Conda environment creation and activation
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true

- name: Install Conda Tools
run: |
conda update --all
conda install -c conda-forge conda-build
conda install conda-verify
conda install -c anaconda anaconda-client
- name: Configure PATH
run: echo "$CONDA/bin" >> $GITHUB_PATH

- name: Install Python Tools
run: |
pip install setuptools wheel --upgrade
- name: Install macOS SDK (only on macOS)
if: runner.os == 'macOS'
run: |
sudo mkdir -p /opt/MacOSX10.10.sdk
sudo curl -L -o MacOSX10.10.sdk.tar.xz https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX10.10.sdk.tar.xz
sudo tar -xJf MacOSX10.10.sdk.tar.xz -C /opt/
- name: Set CONDA_BUILD_SYSROOT (only on macOS)
if: runner.os == 'macOS'
run: |
echo "CONDA_BUILD_SYSROOT: /opt/MacOSX10.10.sdk # [osx]" > conda_build_config.yaml
- name: Build and upload the conda packages
uses: uibcdf/[email protected]
with:
meta_yaml_dir: .
overwrite: False
python-version: ${{ matrix.python-version }}
user: lucit
label: main
token: ${{ secrets.ANACONDA_API_TOKEN }}

build_noarch_package:
name: Build conda noarch package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Conda
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
auto-update-conda: false
auto-activate-base: false
show-channel-urls: true

- name: Install Conda Tools
run: |
conda update --all
conda install -c conda-forge conda-build
conda install conda-verify
conda install -c anaconda anaconda-client
- name: Configure PATH
run: echo "$CONDA/bin" >> $GITHUB_PATH

- name: Create conda_build_config.yaml
run: |
echo "" > conda_build_config.yaml
- name: Add "noarch python" to meta.yaml
run: |
sed -i 's/^build:$/build:\n noarch: python/' meta.yaml
- name: "conda search: lucit::"
run: |
conda config --add channels conda-forge
conda config --add channels lucit
conda config --show channels
conda search lucit::lucit-licensing-python
conda search lucit::unicorn-binance-rest-api
conda search lucit::unicorn-binance-websocket-api
conda search lucit::unicorn-fy
- name: Build noarch Conda package
run: |
conda list
conda build -c lucit --output-folder ./build-output --python 3.9 --variant-config-files conda_build_config.yaml .
- name: Upload noarch Conda package
run: |
anaconda --token ${{ secrets.ANACONDA_API_TOKEN }} upload --user lucit ./build-output/noarch/*.tar.bz2
95 changes: 95 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Build and Publish GH+PyPi

on:
workflow_dispatch:
branches:
- master

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
CIBW_PYPY_VERSION: "7.3.10*"
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
steps:
- name: GitHub Checkout
uses: actions/checkout@v4

- name: Upgrade pip
run: python -m pip install --upgrade pip

- name: Set up Environment
run: echo "CIBW_SKIP=pp36-* pp37-*" >> $GITHUB_ENV

- name: Check ENV
if: matrix.os == 'ubuntu-20.04'
run: echo $PATH

- name: Build wheels Linux
if: matrix.os == 'ubuntu-20.04'
uses: pypa/[email protected]

- name: Build wheels Mac
if: matrix.os == 'macos-11'
uses: pypa/[email protected]

- name: Build wheels Windows
if: matrix.os == 'windows-2019'
uses: pypa/[email protected]

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- name: GitHub Checkout
uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

Release:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: write
discussions: write
id-token: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
body: |
Please read the [CHANGELOG](https://unicorn-binance-local-depth-cache.docs.lucit.tech/changelog.html) for further information.
discussion_category_name: releases
draft: false
files: |
dist/*.tar.gz
dist/*.whl
generate_release_notes: true
name: unicorn-binance-local-depth-cache
prerelease: false
tag_name: 1.0.0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create PyPi Release
uses: pypa/gh-action-pypi-publish@release/v1
26 changes: 18 additions & 8 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Unit Tests

on:
Expand All @@ -11,25 +8,38 @@ on:

jobs:
test:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- name: GitHub Checkout
uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: 3.11
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_local_depth_cache unittest_binance_local_depth_cache.py
- name: "Upload coverage to Codecov"

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
# token: ${{ secrets.CODECOV_TOKEN }}
# directory: ./coverage/reports/
# env_vars: OS,PYTHON
# fail_ci_if_error: true
# files: ./coverage.xml
flags: unittests
name: codecov-umbrella
# path_to_write_report: ./coverage/codecov_report.txt
verbose: true


4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to
[Semantic Versioning](http://semver.org/).

[Discussions about unicorn-binance-websocket-api releases!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/discussions/categories/releases)
[Discussions about unicorn-binance-local-depth-cache releases!](https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache/discussions/categories/releases)

[How to upgrade to the latest version!](https://unicorn-binance-local-depth-cache.docs.lucit.tech/README.html#installation-and-upgrade)
[How to upgrade to the latest version!](https://unicorn-binance-local-depth-cache.docs.lucit.tech/readme.html#installation-and-upgrade)

## 0.7.3.dev (development stage/unreleased/unstable)

Expand Down
Loading

0 comments on commit 5bdd97f

Please sign in to comment.