Skip to content

Commit 9bbb6b6

Browse files
committed
chore: migrate from setup.py to pyproject.toml and add ProxyConfig import
1 parent 0d8a585 commit 9bbb6b6

File tree

3 files changed

+67
-88
lines changed

3 files changed

+67
-88
lines changed

pyproject.toml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "vnstock"
7+
version = "3.2.7"
8+
description = "A beginner-friendly yet powerful Python toolkit for financial analysis and automation — built to make modern investing accessible to everyone"
9+
readme = "README.md"
10+
authors = [
11+
{ name = "Thinh Vu", email = "[email protected]" },
12+
]
13+
license = { text = "Custom: Personal, research, non-commercial; contact [email protected] for other use" }
14+
requires-python = ">=3.10"
15+
keywords = ["vnstock", "finance", "vietnam", "stock market", "analysis", "API"]
16+
classifiers = [
17+
"Development Status :: 5 - Production/Stable",
18+
"Intended Audience :: Developers",
19+
"Intended Audience :: Education",
20+
"Intended Audience :: Financial and Insurance Industry",
21+
"Topic :: Software Development :: Libraries",
22+
"Topic :: Office/Business :: Financial :: Investment",
23+
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3.10",
25+
"Programming Language :: Python :: 3.11",
26+
"Programming Language :: Python :: 3.12",
27+
"Operating System :: OS Independent",
28+
"License :: Other/Proprietary License",
29+
"Natural Language :: English",
30+
"Natural Language :: Vietnamese",
31+
]
32+
dependencies = [
33+
"requests",
34+
"beautifulsoup4",
35+
"pandas",
36+
"seaborn",
37+
"openpyxl",
38+
"pydantic",
39+
"psutil",
40+
"fake_useragent",
41+
"click",
42+
"packaging>=20.0",
43+
"importlib-metadata>=1.0",
44+
"tenacity",
45+
"vnai>=2.1.7"
46+
]
47+
48+
[project.optional-dependencies]
49+
dev = ["flake8"]
50+
docs = ["sphinx", "sphinx_rtd_theme"]
51+
test = ["unittest"]
52+
53+
[project.urls]
54+
Documentation = "https://github.com/thinh-vu/vnstock"
55+
Source = "https://github.com/thinh-vu/vnstock"
56+
IssueTracker = "https://github.com/thinh-vu/vnstock/issues"
57+
58+
[tool.setuptools]
59+
include-package-data = true
60+
packages = ["vnstock"]
61+
62+
[tool.setuptools.package-data]
63+
vnstock = ["docs/*.txt", "docs/*.csv"]
64+
65+
[project.scripts]
66+
vnstock = "vnstock.common.cli:cli"

setup.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

vnstock/explorer/vci/quote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from vnstock.core.utils.parser import get_asset_type
1616
from vnstock.core.utils.validation import validate_symbol
1717
from vnstock.core.utils.user_agent import get_headers
18-
from vnstock.core.utils.client import send_request
18+
from vnstock.core.utils.client import send_request, ProxyConfig
1919
from vnstock.core.utils.transform import ohlc_to_df, intraday_to_df
2020

2121
logger = get_logger(__name__)

0 commit comments

Comments
 (0)