Skip to content

Commit 3ec3a46

Browse files
committed
Cloud build enabled
1 parent cc11d7c commit 3ec3a46

File tree

2 files changed

+151
-17
lines changed

2 files changed

+151
-17
lines changed

.travis.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
1-
language: python
2-
3-
branches:
4-
only:
5-
- master
6-
- stable
1+
sudo: required
2+
services:
3+
- docker
74

5+
language: python
86
cache: false
97

10-
notifications:
11-
email: false
12-
irc: false
8+
env:
9+
global:
10+
- OUT_REPO=tarantool/modules
11+
- GIT_REPO=https://github.com/$TRAVIS_REPO_SLUG.git
12+
- PROJECT=tarantool-pyhton
13+
matrix:
14+
- OS=el DIST=6 PACK=rpm
15+
- OS=el DIST=7 PACK=rpm
16+
- OS=fedora DIST=20 PACK=rpm
17+
- OS=fedora DIST=21 PACK=rpm
18+
- OS=fedora DIST=22 PACK=rpm
19+
- OS=fedora DIST=23 PACK=rpm
20+
- OS=ubuntu DIST=trusty PACK=deb
21+
- OS=ubuntu DIST=precise PACK=deb
22+
- OS=ubuntu DIST=vivid PACK=deb
23+
- OS=debian DIST=jessie PACK=deb
24+
- OS=debian DIST=wheezy PACK=deb
25+
- OS=debian DIST=stretch PACK=deb
26+
- PACK=none
1327

14-
before_script:
15-
- uname -a
16-
- lsb_release -a
17-
- curl http://tarantool.org/dist/public.key | sudo apt-key add -
18-
- echo "deb http://tarantool.org/dist/master/ubuntu `lsb_release -c -s` main" | sudo tee -a /etc/apt/sources.list.d/tarantool.list
28+
before_install:
29+
- git submodule update --init --recursive
1930
- sudo apt-get update
31+
- gem install package_cloud
2032

2133
script:
22-
- sudo apt-get -y install tarantool
23-
- pip install -r requirements.txt
24-
- python setup.py test
34+
- git clone https://github.com/tarantool/build.git
35+
- bash build/pack/travis.sh
36+
37+
notifications:
38+
email: true
39+
irc: false

rpm/tarantool-python.spec

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
%define name tarantool-python
2+
3+
Summary: Python client library for Tarantool Database
4+
Name: %{name}
5+
Version: 0.5.1
6+
Release: 1%{dist}
7+
Source0: %{version}.tar.gz
8+
License: BSD
9+
Group: Development/Libraries
10+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
11+
Prefix: %{_prefix}
12+
BuildArch: noarch
13+
Vendor: Konstantin Cherkasoff <k.cherkasoff@gmail.com>
14+
Requires: python-yaml python-msgpack
15+
Url: https://github.com/tarantool/tarantool-python
16+
17+
%description
18+
Python driver for Tarantool 1.6
19+
===============================
20+
21+
This package is a pure-python client library for `Tarantool`_.
22+
23+
`Documentation`_ | `Downloads`_ | `PyPI`_ | `GitHub`_ | `Issue tracker`_
24+
25+
.. _`Documentation`: http://tarantool-python.readthedocs.org/en/latest/
26+
.. _`Downloads`: http://pypi.python.org/pypi/tarantool#downloads
27+
.. _`PyPI`: http://pypi.python.org/pypi/tarantool
28+
.. _`GitHub`: https://github.com/tarantool/tarantool-python
29+
.. _`Issue tracker`: https://github.com/tarantool/tarantool-python/issues
30+
31+
.. image:: https://travis-ci.org/tarantool/tarantool-python.svg?branch=master
32+
:target: https://travis-ci.org/tarantool/tarantool-python
33+
34+
Download and Install
35+
--------------------
36+
37+
The recommended way to install ``tarantool`` package is using PIP
38+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39+
40+
For Tarantool version < 1.6.0 you must get ``0.3.*`` connector version::
41+
42+
$ pip install tarantool\<0.4
43+
44+
For later Tarantool use version ``0.5.*`` connector version::
45+
46+
$ pip install tarantool\>0.4
47+
48+
You can also download zip archive, unpack it and run
49+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50+
51+
::
52+
53+
$ python setup.py install
54+
55+
To install development version of the package using pip
56+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57+
58+
For Tarantool version < 1.6.0 you must get ``stable`` branch::
59+
60+
$ pip install git+https://github.com/tarantool/tarantool-python.git@stable
61+
62+
For later Tarantool use ``master`` branch::
63+
64+
$ pip install git+https://github.com/tarantool/tarantool-python.git@master
65+
66+
--------------------------------------------------------------------------------
67+
68+
What is Tarantool?
69+
------------------
70+
71+
`Tarantool`_ is a NoSQL database running inside a Lua program. It combines the network programming power of Node.JS with data persistency capabilities of Redis. It's open source, `BSD licensed`_.
72+
73+
Features
74+
--------
75+
76+
* Lua packages for non-blocking I/O, fibers and HTTP
77+
* MsgPack data format and MsgPack based client-server protocol
78+
* Two data engines:
79+
* 100% in-memory with optional persistence
80+
* 2-level disk-based B-tree, to use with large data sets (powered by `Sophia`_)
81+
* secondary key and index iterators support (can be non-unique and composite)
82+
* multiple index types: HASH, BITSET, TREE
83+
* asynchronous master-master replication
84+
* authentication and access control
85+
86+
87+
See More
88+
^^^^^^^^
89+
90+
* `Tarantool Homepage`_
91+
* `Tarantool at Github`_
92+
* `Tarantool User Guide`_
93+
* `Client-server Protocol Specification`_
94+
95+
96+
.. _`Tarantool`:
97+
.. _`Tarantool Database`:
98+
.. _`Tarantool Homepage`: http://tarantool.org
99+
.. _`Tarantool at Github`: https://github.com/tarantool/tarantool
100+
.. _`Tarantool User Guide`: http://tarantool.org/doc/user_guide.html
101+
.. _`Client-server protocol specification`: http://tarantool.org/doc/dev_guide/box-protocol.html
102+
.. _`Sophia`: http://sphia.org
103+
.. _`BSD licensed`: http://www.gnu.org/licenses/license-list.html#ModifiedBSD
104+
105+
106+
%prep
107+
%setup -q -c %{name}-%{version}
108+
109+
%build
110+
python setup.py build
111+
112+
%install
113+
python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
114+
115+
%clean
116+
rm -rf $RPM_BUILD_ROOT
117+
118+
%files -f INSTALLED_FILES
119+
%defattr(-,root,root)

0 commit comments

Comments
 (0)