Skip to content

Commit ee48c3a

Browse files
committed
切换到 pyproject.toml
1 parent d4f341c commit ee48c3a

File tree

5 files changed

+47
-66
lines changed

5 files changed

+47
-66
lines changed

efinance/__init__.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
"""
2-
.. include:: ../README.md
3-
"""
4-
5-
__docformat__ = "restructuredtext"
6-
from efinance.api import bond, fund, futures, stock
7-
8-
from efinance import utils
9-
10-
__all__ = ["stock", "fund", "bond", "futures", "utils"]
1+
"""
2+
.. include:: ../README.md
3+
"""
4+
5+
__docformat__ = "restructuredtext"
6+
from efinance.api import bond, fund, futures, stock
7+
8+
from efinance import utils
9+
10+
11+
__all__ = ["stock", "fund", "bond", "futures", "utils"]

efinance/__version__.py

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

pyproject.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools>=42", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "efinance"
7+
version = "0.5.5.2"
8+
description = "A finance tool to get stock,fund and futures data base on eastmoney"
9+
readme = "README.md"
10+
authors = [{ name = "micro sheep", email = "micro-sheep@outlook.com" }]
11+
license = { text = "MIT" }
12+
classifiers = [
13+
"License :: OSI Approved :: MIT License",
14+
"Programming Language :: Python :: 3.6",
15+
"Programming Language :: Python :: 3.7",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
]
22+
keywords = ["finance", "quant", "stock", "fund", "futures"]
23+
dynamic = ["dependencies"]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/Micro-sheep/efinance"
27+
Documentation = "https://efinance.readthedocs.io"
28+
Source = "https://github.com/Micro-sheep/efinance"
29+
30+
[tool.setuptools]
31+
packages = ["efinance"]
32+
33+
[tool.setuptools.dynamic]
34+
dependencies = { file = ["requirements.txt"] }

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ retry
55
multitasking
66
jsonpath
77
rich
8-
beautifulsoup4
8+
beautifulsoup4
9+
tomli

setup.py

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

0 commit comments

Comments
 (0)