Skip to content

Commit

Permalink
Update circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
codertimo committed Oct 18, 2018
1 parent 74a39e6 commit 8b45d36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
paths:
- ./venv
Expand All @@ -30,6 +31,7 @@ jobs:
command: |
. venv/bin/activate
python -m unittest test.py
- store_artifacts:
path: test-reports
destination: test-reports
Expand All @@ -53,6 +55,7 @@ jobs:
. venv/bin/activate
python setup.py verify
pip install twine
- save_cache:
key: v1-dependency-cache-{{ checksum "setup.py" }}-{{ checksum "Makefile" }}
paths:
Expand All @@ -66,10 +69,12 @@ jobs:
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = codertimo" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc
- run:
name: create packages
command: |
make package
- run:
name: upload to pypi
command: |
Expand Down
2 changes: 0 additions & 2 deletions bert_pytorch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from .model import BERT

__version__ = "0.0.1a0"
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from setuptools import setup, find_packages
from setuptools.command.install import install
from bert_pytorch import __version__
import os
import sys

__version__ = "0.0.1a0"

with open("requirements.txt") as f:
require_packages = [line[:-1] for line in f]

Expand Down

0 comments on commit 8b45d36

Please sign in to comment.