Skip to content

Commit 8b45d36

Browse files
committed
Update circleci
1 parent 74a39e6 commit 8b45d36

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.circleci/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
python3 -m venv venv
2121
. venv/bin/activate
2222
pip install -r requirements.txt
23+
2324
- save_cache:
2425
paths:
2526
- ./venv
@@ -30,6 +31,7 @@ jobs:
3031
command: |
3132
. venv/bin/activate
3233
python -m unittest test.py
34+
3335
- store_artifacts:
3436
path: test-reports
3537
destination: test-reports
@@ -53,6 +55,7 @@ jobs:
5355
. venv/bin/activate
5456
python setup.py verify
5557
pip install twine
58+
5659
- save_cache:
5760
key: v1-dependency-cache-{{ checksum "setup.py" }}-{{ checksum "Makefile" }}
5861
paths:
@@ -66,10 +69,12 @@ jobs:
6669
echo -e "[pypi]" >> ~/.pypirc
6770
echo -e "username = codertimo" >> ~/.pypirc
6871
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
72+
6973
- run:
7074
name: create packages
7175
command: |
7276
make package
77+
7378
- run:
7479
name: upload to pypi
7580
command: |

bert_pytorch/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
from .model import BERT
2-
3-
__version__ = "0.0.1a0"

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from setuptools import setup, find_packages
22
from setuptools.command.install import install
3-
from bert_pytorch import __version__
43
import os
54
import sys
65

6+
__version__ = "0.0.1a0"
7+
78
with open("requirements.txt") as f:
89
require_packages = [line[:-1] for line in f]
910

0 commit comments

Comments
 (0)