Skip to content

Commit 030c604

Browse files
committedAug 12, 2017
Setup CI and packaging
1 parent 40c333d commit 030c604

8 files changed

+61
-5
lines changed
 

‎.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
python:
3+
- "3.4"
4+
- "3.5"
5+
- "3.6"
6+
install:
7+
# Install BlobStash
8+
- export GOPATH="${TRAVIS_BUILD_DIR}/go/"
9+
- eval "$(curl -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme | GIMME_GO_VERSION=1.8 bash)"
10+
- go get github.com/tsileo/blobstash
11+
- export PATH="${TRAVIS_BUILD_DIR}/go/bin:$PATH"
12+
# Setup the Python package
13+
- pip install -r requirements.txt
14+
- pip install -r dev-requirements.txt
15+
- python setup.py install
16+
script: pytest -v

‎MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include LICENSE

‎README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# BlobStash Python DocStore
22

3-
Python 3.4+ only.
3+
[![Travis](https://img.shields.io/travis/tsileo/blobstash-python-docstore.svg?maxAge=2592000)](https://travis-ci.org/tsileo/blobstash-python-docstore)
4+
    [![PyPI](https://img.shields.io/pypi/v/blobstash-docstore.svg)](https://pypi.python.org/pypi/blobstash-docstore)
5+
    [![PyPI](https://img.shields.io/pypi/pyversions/blobstash-docstore.svg)](https://pypi.python.org/pypi/blobstash-docstore)
6+
   [![License](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/tsileo/blobstash-python-docstore/master/LICENSE)
47

58
Client for [BlobStash](https://github.com/tsileo/blobstash) JSON document store.
69

‎blobstash.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
listen: ':8050'
2+
api_key: '123'
3+
data_dir: 'blobstash_data/'

‎dev-requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest

‎requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
blobstash-base
2-
blobstash-filetree
1+
blobstash-base==0.0.3
2+
blobstash-filetree==0.0.2
33
requests
44
jsonpatch

‎setup.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
from distutils.core import setup
22

3+
with open('README.md') as f:
4+
long_description = f.read()
5+
36
setup(
47
name='blobstash-docstore',
58
version='0.0.1',
69
description='BlobStash DocStore client',
10+
long_description=long_description,
711
author='Thomas Sileo',
812
author_email='t@a4.io',
913
url='https://github.com/tsileo/blobstash-python-docstore',
1014
packages=['blobstash.docstore'],
1115
license='MIT',
1216
install_requires=[
13-
'blobstash-base',
14-
'blobstash-filetree',
17+
'blobstash-base==0.0.3',
18+
'blobstash-filetree==0.0.2',
1519
'requests',
1620
'jsonpatch',
1721
],
22+
python_requires='>=3.4',
23+
classifiers=[
24+
'Development Status :: 3 - Alpha',
25+
26+
'Intended Audience :: Developers',
27+
28+
'License :: OSI Approved :: MIT License',
29+
30+
'Programming Language :: Python :: 3',
31+
'Programming Language :: Python :: 3.4',
32+
'Programming Language :: Python :: 3.5',
33+
'Programming Language :: Python :: 3.6',
34+
],
35+
keywords='blobstash DocStore client JSON Lua document store',
1836
)

‎test_blobstash_docstore.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from blobstash.base.test_utils import BlobStash
2+
from blobstash.docstore import DocStoreClient
3+
4+
5+
def test_docstore():
6+
b = BlobStash()
7+
b.cleanup()
8+
try:
9+
b.run()
10+
client = DocStoreClient(api_key='123')
11+
finally:
12+
b.shutdown()
13+
b.cleanup()

0 commit comments

Comments
 (0)