Skip to content

Commit 87c5b26

Browse files
committed
[CD] pypi auto release
1 parent 31b25cc commit 87c5b26

File tree

5 files changed

+32
-6
lines changed

5 files changed

+32
-6
lines changed

.github/workflows/pypi_publish.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to PyPI.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
pypi:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- run: python3 -m pip install --upgrade build && python3 -m build
14+
- name: Publish package
15+
uses: pypa/gh-action-pypi-publish@release/v1
16+
with:
17+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ Our OpenChat V3 models are licensed under the [Llama 2 Community License](https:
276276

277277
💌 We are a student team from Tsinghua University, working on OpenChat, a project that requires additional computing power or LLMs API keys for further development. If you are interested in our project and would like to offer support, please feel free to reach out to us:
278278

279-
* Wang Guan (Project Leader; imonenext@gmail.com)
280-
* Cheng Sijie (LeslieCheng0701@outlook.com)
279+
* Wang Guan (Project Leader) [imonenext at gmail dot com]
280+
* Cheng Sijie [LeslieCheng0701 at outlook dot com]
281281

282282
We look forward to hearing from you and collaborating on this exciting project!
283283

SECURITY.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@
99

1010
## Reporting a Vulnerability
1111

12-
TODO
12+
We take security vulnerabilities in our open-source project seriously and appreciate responsible disclosure from users.
13+
14+
If you believe you have found a security vulnerability in our project, please report it to us by creating a Github issue with the label "security" or "vulnerability". Please do not publicly disclose the vulnerability until it has been addressed by our project team.
15+
16+
We will acknowledge receipt of your vulnerability report and will keep you informed of our progress in addressing the vulnerability. If you would like to communicate with us about the vulnerability, please email [imonenext at gmail dot com].
17+
18+
We will not take legal action against users who report vulnerabilities in good faith and in accordance with this disclosure policy.
19+
20+
Thank you for helping us keep our open-source project secure!

ochat/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
__version__ = "3.1.0"

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[build-system]
2-
requires = ["setuptools>=61.0"]
2+
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ochat"
7-
version = "3.1.0"
87
description = "An efficient framework for training and serving top-tier, open-source conversational LLMs."
98
readme = "README.md"
109
requires-python = ">=3.8"
10+
dynamic = ["version"]
1111
classifiers = [
1212
"Programming Language :: Python :: 3",
1313
"License :: OSI Approved :: Apache Software License",
@@ -47,3 +47,5 @@ exclude = ["assets*", "ochat/experimental*"]
4747

4848
[tool.wheel]
4949
exclude = ["assets*", "ochat/experimental*"]
50+
51+
[tool.setuptools_scm]

0 commit comments

Comments
 (0)