Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exchange/base/types can not be find #25

Open
graceyangfan opened this issue Aug 4, 2024 · 2 comments
Open

exchange/base/types can not be find #25

graceyangfan opened this issue Aug 4, 2024 · 2 comments

Comments

@graceyangfan
Copy link

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
Copy link
Author

graceyangfan commented Aug 4, 2024

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
Copy link
Owner

beatzxbt commented Aug 9, 2024

will do! thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants