File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 20
20
python3 -m venv venv
21
21
. venv/bin/activate
22
22
pip install -r requirements.txt
23
+
23
24
- save_cache :
24
25
paths :
25
26
- ./venv
30
31
command : |
31
32
. venv/bin/activate
32
33
python -m unittest test.py
34
+
33
35
- store_artifacts :
34
36
path : test-reports
35
37
destination : test-reports
53
55
. venv/bin/activate
54
56
python setup.py verify
55
57
pip install twine
58
+
56
59
- save_cache :
57
60
key : v1-dependency-cache-{{ checksum "setup.py" }}-{{ checksum "Makefile" }}
58
61
paths :
@@ -66,10 +69,12 @@ jobs:
66
69
echo -e "[pypi]" >> ~/.pypirc
67
70
echo -e "username = codertimo" >> ~/.pypirc
68
71
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
72
+
69
73
- run :
70
74
name : create packages
71
75
command : |
72
76
make package
77
+
73
78
- run :
74
79
name : upload to pypi
75
80
command : |
Original file line number Diff line number Diff line change 1
1
from .model import BERT
2
-
3
- __version__ = "0.0.1a0"
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
2
from setuptools .command .install import install
3
- from bert_pytorch import __version__
4
3
import os
5
4
import sys
6
5
6
+ __version__ = "0.0.1a0"
7
+
7
8
with open ("requirements.txt" ) as f :
8
9
require_packages = [line [:- 1 ] for line in f ]
9
10
You can’t perform that action at this time.
0 commit comments