Skip to content

Commit ddb439a

Browse files
authored
Merge pull request #8 from noranhe/noran-dev
[Mod] 更新到1.1.0
2 parents a43009b + e94a57b commit ddb439a

File tree

12 files changed

+172
-50
lines changed

12 files changed

+172
-50
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# 行为准则
2+
3+
这是一份VeighNa项目社区的行为准则,也是项目作者自己在刚入行量化金融行业时对于理想中的社区的期望:
4+
5+
* 为交易员而生:作为一款从金融机构量化业务中诞生的交易系统开发框架,设计上都优先满足机构专业交易员的使用习惯,而不是其他用户(散户、爱好者、技术人员等)
6+
7+
* 对新用户友好,保持耐心:大部分人在接触新东西的时候都是磕磕碰碰、有很多的问题,请记住此时别人对你伸出的援助之手,并把它传递给未来需要的人
8+
9+
* 尊重他人,慎重言行:礼貌文明的交流方式除了能得到别人同样的回应,更能减少不必要的摩擦,保证高效的交流

.github/ISSUE_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## 环境
2+
3+
* 操作系统: 如Windows 11或者Ubuntu 22.04
4+
* Python版本: 如VeighNa Studio-4.0.0
5+
* VeighNa版本: 如v4.0.0发行版或者dev branch 20250320(下载日期)
6+
7+
## Issue类型
8+
三选一:Bug/Enhancement/Question
9+
10+
## 预期程序行为
11+
12+
13+
## 实际程序行为
14+
15+
16+
## 重现步骤
17+
18+
针对Bug类型Issue,请提供具体重现步骤以及报错截图
19+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
建议每次发起的PR内容尽可能精简,复杂的修改请拆分为多次PR,便于管理合并。
2+
3+
## 改进内容
4+
5+
1.
6+
2.
7+
3.
8+
9+
## 相关的Issue号(如有)
10+
11+
Close #

.github/SUPPORT.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 获取帮助
2+
3+
在开发和使用VeighNa项目的过程中遇到问题时,获取帮助的渠道包括:
4+
5+
* Github Issues:[Issues页面](https://github.com/vnpy/vnpy/issues)
6+
* 官方QQ群: 262656087
7+
* 项目论坛:[VeighNa量化社区](http://www.vnpy.com/forum)
8+
* 项目邮箱: vn.py@foxmail.com

.github/workflows/pythonapp.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Python application
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up Python 3.13
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.13'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install ta-lib==0.6.3 --index=https://pypi.vnpy.com
20+
pip install vnpy ruff mypy uv
21+
- name: Lint with ruff
22+
run: |
23+
# Run ruff linter based on pyproject.toml configuration
24+
ruff check .
25+
- name: Type check with mypy
26+
run: |
27+
# Run mypy type checking based on pyproject.toml configuration
28+
mypy vnpy_postgresql
29+
- name: Build packages with uv
30+
run: |
31+
# Build source distribution and wheel distribution
32+
uv build

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.0版本
2+
3+
1. vnpy框架4.0版本升级适配
4+
15
# 1.0.3版本
26

37
1. 支持自动重用已经打开的数据库连接

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</p>
66

77
<p align="center">
8-
<img src ="https://img.shields.io/badge/version-1.0.3-blueviolet.svg"/>
8+
<img src ="https://img.shields.io/badge/version-1.1.0-blueviolet.svg"/>
99
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
10-
<img src ="https://img.shields.io/badge/python-3.10|3.11|3.12-blue.svg" />
10+
<img src ="https://img.shields.io/badge/python-3.10|3.11|3.12|3.13-blue.svg" />
1111
</p>
1212

1313
## 说明

pyproject.toml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
[project]
2+
name = "vnpy_postgresql"
3+
dynamic = ["version"]
4+
description = "PostgreSQL database adapter for VeighNa quant trading framework."
5+
readme = "README.md"
6+
license = {text = "MIT"}
7+
authors = [{name = "Xiaoyou Chen", email = "xiaoyou.chen@mail.vnpy.com"}]
8+
classifiers = [
9+
"Development Status :: 5 - Production/Stable",
10+
"License :: OSI Approved :: MIT License",
11+
"Operating System :: OS Independent",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.10",
14+
"Programming Language :: Python :: 3.11",
15+
"Programming Language :: Python :: 3.12",
16+
"Programming Language :: Python :: 3.13",
17+
"Topic :: Office/Business :: Financial :: Investment",
18+
"Programming Language :: Python :: Implementation :: CPython",
19+
"Natural Language :: Chinese (Simplified)",
20+
"Typing :: Typed"
21+
]
22+
requires-python = ">=3.10"
23+
dependencies = [
24+
"peewee>=3.17.9",
25+
]
26+
keywords = ["quant", "quantitative", "investment", "trading", "algotrading"]
27+
28+
[project.urls]
29+
"Homepage" = "https://www.vnpy.com"
30+
"Documentation" = "https://www.vnpy.com/docs"
31+
"Changes" = "https://github.com/vnpy/vnpy_postgresql/blob/master/CHANGELOG.md"
32+
"Source" = "https://github.com/vnpy/vnpy_postgresql/"
33+
"Forum" = "https://www.vnpy.com/forum"
34+
35+
[build-system]
36+
requires = ["hatchling>=1.27.0"]
37+
build-backend = "hatchling.build"
38+
39+
[tool.hatch.version]
40+
path = "vnpy_postgresql/__init__.py"
41+
pattern = "__version__ = ['\"](?P<version>[^'\"]+)['\"]"
42+
43+
[tool.hatch.build.targets.wheel]
44+
packages = ["vnpy_postgresql"]
45+
include-package-data = true
46+
47+
[tool.hatch.build.targets.sdist]
48+
include = ["vnpy_postgresql*"]
49+
50+
[tool.ruff]
51+
target-version = "py310"
52+
output-format = "full"
53+
54+
[tool.ruff.lint]
55+
select = [
56+
"B", # flake8-bugbear
57+
"E", # pycodestyle error
58+
"F", # pyflakes
59+
"UP", # pyupgrade
60+
"W", # pycodestyle warning
61+
]
62+
ignore = ["E501"]
63+
64+
[tool.mypy]
65+
python_version = "3.10"
66+
warn_return_any = true
67+
warn_unused_configs = true
68+
disallow_untyped_defs = true
69+
disallow_incomplete_defs = true
70+
check_untyped_defs = true
71+
disallow_untyped_decorators = true
72+
no_implicit_optional = true
73+
strict_optional = true
74+
warn_redundant_casts = true
75+
warn_unused_ignores = true
76+
warn_no_return = true
77+
ignore_missing_imports = true

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)