Skip to content

Commit

Permalink
Merge pull request #1 from aoki-h-jp/feature/1.0.0/setup
Browse files Browse the repository at this point in the history
Feature/1.0.0/setup
  • Loading branch information
aoki-h-jp authored Aug 25, 2023
2 parents 4ec82f0 + 1edc1fc commit 21765be
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Formatter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Format code

on: push

jobs:
formatter:
name: formatter
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11.0]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install autoflake black isort
- name: autoflake
run: autoflake -r .
- name: black
run: black .
- name: isort
run: isort .
- name: Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply Code Formatter Change
27 changes: 27 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run pytest on all branches

on: push

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pip install git+https://github.com/aoki-h-jp/binance-bulk-downloader
pipenv install --dev
- name: Run pytest
run: |
pipenv run pytest -v -s
3 changes: 3 additions & 0 deletions bybit_bulk_downloader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
bybit bulk downloader: Python library to efficiently and concurrently download historical data files from Bybit. Supports all asset types (spot, USDT-M, COIN-M, options) and all data frequencies.
"""
Empty file.
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
requests~=2.28.2
setuptools~=68.1.2
rich~=10.16.2
pytest~=4.6.11
12 changes: 12 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from setuptools import setup

setup(
name="bybit-bulk-downloader",
version="1.0.0",
description=" Python library to efficiently and concurrently download historical data files from Binance. Supports all asset types (spot, USDT-M, COIN-M, options) and all data frequencies.",
install_requires=["requests", "rich", "pytest"],
author="aoki-h-jp",
author_email="[email protected]",
license="MIT",
packages=["bybit_bulk_downloader"],
)

0 comments on commit 21765be

Please sign in to comment.