Skip to content

Commit ef1da9c

Browse files
committed
refactor
1 parent 4784392 commit ef1da9c

File tree

13 files changed

+345
-266
lines changed

13 files changed

+345
-266
lines changed

.github/workflows/python-publish.yml

Lines changed: 9 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,16 @@
1-
# This workflow will upload a Python Package using Twine when a release is created
2-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
10-
1+
name: Python package
112
on:
123
workflow_dispatch:
134
release:
145
types: [published]
15-
166
jobs:
17-
deploy:
18-
7+
build:
198
runs-on: ubuntu-latest
20-
219
steps:
22-
- uses: actions/checkout@v2
23-
- name: Set up Python
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: '3.x'
27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install build
31-
- name: Build package
32-
run: python -m build
33-
- name: Publish package
34-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35-
with:
36-
user: __token__
37-
password: ${{ secrets.PYPI_API_TOKEN }}
10+
- uses: actions/checkout@v2
11+
- name: Build and publish to pypi
12+
uses: JRubics/[email protected]
13+
with:
14+
python_version: "3.10"
15+
pypi_token: ${{ secrets.PYPI_TOKEN }}
16+
ignore_dev_requirements: "yes"

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
sqconfig.toml
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]
@@ -129,4 +131,6 @@ dmypy.json
129131
.pyre/
130132

131133

132-
.vscode/
134+
.vscode/
135+
# Ignore dynaconf secret files
136+
.secrets.*

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,3 @@ repos:
7777
hooks:
7878
- id: black
7979
language_version: python3.10
80-
81-
- repo: https://github.com/pycqa/pydocstyle
82-
rev: 6.1.1
83-
hooks:
84-
- id: pydocstyle
85-
language_version: python3.10

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SiyuanYuque
22

3+
[Chinese Document](https://www.yuque.com/clouder0/siyuan/20210916225709-g7zckw3#533691a2)
4+
35
Sync SiYuanNote & Yuque.
46

57
- Sync Setting in doc attribute.

SiyuanYuque/__main__.py

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

SiyuanYuque/config.py

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

0 commit comments

Comments
 (0)