File tree 6 files changed +50
-9
lines changed
6 files changed +50
-9
lines changed Original file line number Diff line number Diff line change 1
- version =0.0.5a0
1
+ version =0.0.4a0
2
2
3
3
prepare :
4
- pip install twine
4
+ pip install -r requirements.txt
5
5
6
6
clean :
7
7
rm -rf ./dist
Original file line number Diff line number Diff line change @@ -35,6 +35,13 @@ print(memo.tags)
35
35
36
36
如有疑问,欢迎 issue。
37
37
38
+ ## Local Install 本地安装
39
+
40
+ ``` shell
41
+ git clone https://github.com/Benature/flomo.git
42
+ make all
43
+ ```
44
+
38
45
39
46
## Relative Project 相关项目
40
47
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+ env :
8
+ PYPI_PROJECT_NAME : flomo
9
+ jobs :
10
+ pypi-publish :
11
+ name : Upload release to PyPI
12
+ runs-on : ubuntu-latest
13
+ environment :
14
+ name : pypi
15
+ url : https://pypi.org/p/${{env.PYPI_PROJECT_NAME}}
16
+ permissions :
17
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
18
+ steps :
19
+ # retrieve your distributions here
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install setuptools wheel twine
24
+ - name : Build package
25
+ run : python setup.py sdist bdist_wheel
26
+
27
+ # - name: Publish package distributions to PyPI
28
+ # uses: pypa/gh-action-pypi-publish@release/v1
29
+ - name : Build and publish
30
+ env :
31
+ TWINE_USERNAME : __token__
32
+ TWINE_PASSWORD : ${{ secrets.TWINE_API_KEY }}
33
+ run : |
34
+ twine upload dist/*
Original file line number Diff line number Diff line change 1
- __version__ = '0.0.5 -alpha'
1
+ __version__ = '0.0.4 -alpha'
2
2
3
3
import platform
4
4
import requests
Original file line number Diff line number Diff line change 1
1
requests
2
2
bs4
3
+ twine
Original file line number Diff line number Diff line change 1
1
# -*- coding:utf-8 -*-
2
2
import setuptools
3
- import pathlib
4
3
import ast
5
- import typing as ty
4
+ from pathlib import Path
5
+ from typing import List
6
6
7
7
REQUIREMENTS_SPEC = 'requirements.txt'
8
8
PACKAGE_ENTRY = 'flomo'
12
12
long_description = fh .read ()
13
13
14
14
15
- def read_requirements () -> ty . List [str ]:
16
- p = pathlib . Path (__file__ ).parent / REQUIREMENTS_SPEC
15
+ def read_requirements () -> List [str ]:
16
+ p = Path (__file__ ).parent / REQUIREMENTS_SPEC
17
17
with open (str (p ), 'r' , encoding = 'utf-8' ) as f :
18
18
rows = f .readlines ()
19
19
@@ -32,7 +32,7 @@ def read_requirements() -> ty.List[str]:
32
32
33
33
34
34
def get_version () -> str :
35
- p = pathlib . Path (__file__ ).parent / PACKAGE_ENTRY / '__init__.py'
35
+ p = Path (__file__ ).parent / PACKAGE_ENTRY / '__init__.py'
36
36
37
37
version_row = None
38
38
with open (str (p ), 'r' , encoding = 'utf-8' ) as f :
@@ -74,7 +74,6 @@ def get_version() -> str:
74
74
),
75
75
python_requires = '>=3.7' ,
76
76
)
77
-
78
77
'''
79
78
pip uninstall flomo -y
80
79
rm -rf ./dist
You can’t perform that action at this time.
0 commit comments