From 8b45d36160cb86dd833a0b039178c7ec00499d70 Mon Sep 17 00:00:00 2001 From: codertimo Date: Fri, 19 Oct 2018 01:51:56 +0900 Subject: [PATCH] Update circleci --- .circleci/config.yml | 5 +++++ bert_pytorch/__init__.py | 2 -- setup.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d1613e..a70fba8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,7 @@ jobs: python3 -m venv venv . venv/bin/activate pip install -r requirements.txt + - save_cache: paths: - ./venv @@ -30,6 +31,7 @@ jobs: command: | . venv/bin/activate python -m unittest test.py + - store_artifacts: path: test-reports destination: test-reports @@ -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: @@ -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: | diff --git a/bert_pytorch/__init__.py b/bert_pytorch/__init__.py index f63a18a..478ced5 100644 --- a/bert_pytorch/__init__.py +++ b/bert_pytorch/__init__.py @@ -1,3 +1 @@ from .model import BERT - -__version__ = "0.0.1a0" diff --git a/setup.py b/setup.py index b9e2072..0230003 100644 --- a/setup.py +++ b/setup.py @@ -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]