beatzxbt / bybit-smm

bybit simple market maker
MIT License
457 stars 148 forks source link

exchange/base/types can not be find #25

Open graceyangfan opened 3 months ago

graceyangfan commented 3 months ago

when running meet this:

>>> import frameworks.exchange.base.type
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'frameworks.exchange.base.type'
graceyangfan commented 3 months ago

its better to add a pyproject.toml for build the project like this:

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "smm"
version = "0.1.0"
description = "smm"
readme = "README.md"
authors = [
    {name = "your", email = "you email"}
]
license = {file = "LICENSE"}
requires-python = ">=3.10"
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
]

dependencies = [
    # Network/IO
    "aiosonic",
    "aiohttp",
    "aiofiles",
    "uvloop",
    "orjson",
    "pyyaml",

    # Compute
    "numpy",
    "numpy_ringbuffer",
    "numba",

    # Misc
    "ciso8601",

    # DEX signing
    "msgpack",
    "eth_account",
    "eth_utils",

    # Official SDKs
    "dydx-v4-client"
]

[tool.setuptools.packages.find]
where = ["."]
include = ["*"]
exclude = ["tests*"]
namespaces = true

[tool.setuptools]
include-package-data = true
beatzxbt commented 3 months ago

will do! thanks :D