diff --git a/.gitignore b/.gitignore index eca2919..6a67e79 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,15 @@ docs/build *.iml *~ .vscode -.pytest_cache \ No newline at end of file +.pytest_cache + +# pyenv +.python-version + +# uv +uv.lock +requirements.lock +requirements-dev.lock + +# build +/dist \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..158c9d5 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,60 @@ +[project] +name = "finance-datareader" +dynamic = ["version"] +description = "Financial data reader (price, stock list of markets)" +maintainers = [{ name = "FinanceData.KR", email = "plusjune@financedata.kr" }] +authors = [{ name = "FinanceData.KR", email = "plusjune@financedata.kr" }] +readme = "README.md" +license = { text = "MIT License" } +keywords = ["data", "finance"] +classifiers = [ + "Operating System :: OS Independent", + "Development Status :: 5 - Production/Stable", + "License :: OSI Approved :: MIT License", + "Programming Language :: Cython", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", +] +requires-python = ">= 3.9" +dependencies = [ + "pandas>=1.1.0", + "requests>=2.3.0", + "requests-file", + "lxml", + "tqdm", + "beautifulsoup4", + "plotly", +] + +[project.urls] +Repository = "https://github.com/financedata/financedatareader" + +[project.optional-dependencies] +notebook = ["ipykernel", "nbformat>=4.2.0"] +test = ["pytest"] +docs = ["sphinx"] + +[tool.uv] +managed = true +dev-dependencies = ["finance-datareader[notebook,test]"] + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.version] +path = "src/FinanceDataReader/__init__.py" + +[tool.hatch.build.targets.wheel] +packages = ["src/FinanceDataReader"] + +[tool.hatch.build.targets.sdist] +include = [ + "src/FinanceDataReader", + "README.md", + "LICENSE.txt", # FIXME +] diff --git a/__init__.py b/src/FinanceDataReader/__init__.py similarity index 100% rename from __init__.py rename to src/FinanceDataReader/__init__.py diff --git a/_utils.py b/src/FinanceDataReader/_utils.py similarity index 100% rename from _utils.py rename to src/FinanceDataReader/_utils.py diff --git a/back_chart.py b/src/FinanceDataReader/back_chart.py similarity index 100% rename from back_chart.py rename to src/FinanceDataReader/back_chart.py diff --git a/chart/__init__.py b/src/FinanceDataReader/chart/__init__.py similarity index 100% rename from chart/__init__.py rename to src/FinanceDataReader/chart/__init__.py diff --git a/chart/candle.py b/src/FinanceDataReader/chart/candle.py similarity index 100% rename from chart/candle.py rename to src/FinanceDataReader/chart/candle.py diff --git a/chart/plot.py b/src/FinanceDataReader/chart/plot.py similarity index 100% rename from chart/plot.py rename to src/FinanceDataReader/chart/plot.py diff --git a/data.py b/src/FinanceDataReader/data.py similarity index 100% rename from data.py rename to src/FinanceDataReader/data.py diff --git a/ecos/__init__.py b/src/FinanceDataReader/ecos/__init__.py similarity index 100% rename from ecos/__init__.py rename to src/FinanceDataReader/ecos/__init__.py diff --git a/ecos/data.py b/src/FinanceDataReader/ecos/data.py similarity index 100% rename from ecos/data.py rename to src/FinanceDataReader/ecos/data.py diff --git a/ecos/snap.py b/src/FinanceDataReader/ecos/snap.py similarity index 100% rename from ecos/snap.py rename to src/FinanceDataReader/ecos/snap.py diff --git a/fred/__init__.py b/src/FinanceDataReader/fred/__init__.py similarity index 100% rename from fred/__init__.py rename to src/FinanceDataReader/fred/__init__.py diff --git a/fred/data.py b/src/FinanceDataReader/fred/data.py similarity index 100% rename from fred/data.py rename to src/FinanceDataReader/fred/data.py diff --git a/investing/__init__.py b/src/FinanceDataReader/investing/__init__.py similarity index 100% rename from investing/__init__.py rename to src/FinanceDataReader/investing/__init__.py diff --git a/investing/data.py b/src/FinanceDataReader/investing/data.py similarity index 100% rename from investing/data.py rename to src/FinanceDataReader/investing/data.py diff --git a/investing/listing.py b/src/FinanceDataReader/investing/listing.py similarity index 100% rename from investing/listing.py rename to src/FinanceDataReader/investing/listing.py diff --git a/krx/__init__.py b/src/FinanceDataReader/krx/__init__.py similarity index 100% rename from krx/__init__.py rename to src/FinanceDataReader/krx/__init__.py diff --git a/krx/data.py b/src/FinanceDataReader/krx/data.py similarity index 100% rename from krx/data.py rename to src/FinanceDataReader/krx/data.py diff --git a/krx/listing.py b/src/FinanceDataReader/krx/listing.py similarity index 100% rename from krx/listing.py rename to src/FinanceDataReader/krx/listing.py diff --git a/krx/snap.py b/src/FinanceDataReader/krx/snap.py similarity index 100% rename from krx/snap.py rename to src/FinanceDataReader/krx/snap.py diff --git a/nasdaq/__init__.py b/src/FinanceDataReader/nasdaq/__init__.py similarity index 100% rename from nasdaq/__init__.py rename to src/FinanceDataReader/nasdaq/__init__.py diff --git a/nasdaq/listing.py b/src/FinanceDataReader/nasdaq/listing.py similarity index 100% rename from nasdaq/listing.py rename to src/FinanceDataReader/nasdaq/listing.py diff --git a/naver/__init__.py b/src/FinanceDataReader/naver/__init__.py similarity index 100% rename from naver/__init__.py rename to src/FinanceDataReader/naver/__init__.py diff --git a/naver/data.py b/src/FinanceDataReader/naver/data.py similarity index 100% rename from naver/data.py rename to src/FinanceDataReader/naver/data.py diff --git a/naver/listing.py b/src/FinanceDataReader/naver/listing.py similarity index 100% rename from naver/listing.py rename to src/FinanceDataReader/naver/listing.py diff --git a/naver/snap.py b/src/FinanceDataReader/naver/snap.py similarity index 100% rename from naver/snap.py rename to src/FinanceDataReader/naver/snap.py diff --git a/wikipedia/__init__.py b/src/FinanceDataReader/wikipedia/__init__.py similarity index 100% rename from wikipedia/__init__.py rename to src/FinanceDataReader/wikipedia/__init__.py diff --git a/wikipedia/listing.py b/src/FinanceDataReader/wikipedia/listing.py similarity index 100% rename from wikipedia/listing.py rename to src/FinanceDataReader/wikipedia/listing.py diff --git a/yahoo/__init__.py b/src/FinanceDataReader/yahoo/__init__.py similarity index 100% rename from yahoo/__init__.py rename to src/FinanceDataReader/yahoo/__init__.py diff --git a/yahoo/data.py b/src/FinanceDataReader/yahoo/data.py similarity index 100% rename from yahoo/data.py rename to src/FinanceDataReader/yahoo/data.py