Skip to content

Commit

Permalink
Fix pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
ppsimatikas committed Oct 18, 2024
1 parent 2577543 commit 31c1fe7
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 10 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/chainbase.py → chainbase_sdk/chainbase.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
from typing import Optional

from src.sql import ChainbaseSQL
from src.sql_alpha import ChainbaseSQLAlpha
from chainbase_sdk.sql import ChainbaseSQL
from chainbase_sdk.sql_alpha import ChainbaseSQLAlpha

MISSING_API_KEY_ERROR = """
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/sql.py → chainbase_sdk/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pandas as pd

from src.chainbase_api import ChainbaseAPI
from chainbase_sdk.chainbase_api import ChainbaseAPI

MAP_TYPES = {
"Int8": "int64",
Expand Down
2 changes: 1 addition & 1 deletion src/sql_alpha.py → chainbase_sdk/sql_alpha.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pandas as pd

from src.chainbase_api import ChainbaseAPI
from chainbase_sdk.chainbase_api import ChainbaseAPI

MAP_TYPES = {
"bigint": "int64",
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[project]
name = "chainbase_sdk"
dynamic = ["version", "description", "license", "dependencies"]

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
description="A Python SDK for interacting with Chainbase APIs.",
author="Panos",
url="https://github.com/ppsimatikas/chainbase_python_sdk",
packages=find_packages(include=["src"], exclude=["tests"]),
packages=find_packages(exclude=["tests"]),
install_requires=[
"requests==2.32.3",
"pandas==2.1.3"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/e2e.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from src.chainbase import Chainbase
from chainbase_sdk.chainbase import Chainbase
from tests.e2e.tables import tables


Expand Down
4 changes: 2 additions & 2 deletions tests/test_chainbase.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import unittest

from src.chainbase import MISSING_API_KEY_ERROR, Chainbase
from src.sql import ChainbaseSQL
from chainbase_sdk.chainbase import MISSING_API_KEY_ERROR, Chainbase
from chainbase_sdk.sql import ChainbaseSQL


class TestChainbase(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_chainbase_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import requests
import requests_mock

from src.chainbase_api import DEFAULT_ERROR, ChainbaseAPI
from chainbase_sdk.chainbase_api import DEFAULT_ERROR, ChainbaseAPI


@requests_mock.mock()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pandas as pd
from pandas.testing import assert_frame_equal

from src.sql import ChainbaseSQL
from chainbase_sdk.sql import ChainbaseSQL


@patch("src.sql.ChainbaseAPI.post")
Expand Down

0 comments on commit 31c1fe7

Please sign in to comment.