Skip to content

Commit 3d4c39e

Browse files
committed
build fixes
1 parent 8ca18d9 commit 3d4c39e

File tree

10 files changed

+25
-19
lines changed

10 files changed

+25
-19
lines changed

.ci/travis-before-install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
1010
echo "deb https://packagecloud.io/tarantool/${TARANTOOL_VERSION}/ubuntu/ $release main" | sudo tee /etc/apt/sources.list.d/tarantool_${TARANTOOL_VERSION}.list
1111
echo "deb-src https://packagecloud.io/tarantool/${TARANTOOL_VERSION}/ubuntu/ $release main" | sudo tee -a /etc/apt/sources.list.d/tarantool_${TARANTOOL_VERSION}.list
1212
sudo apt-get -qq update
13-
sudo apt-get -y install tarantool
13+
sudo apt-get -y install tarantool tarantool-queue
1414
sudo tarantoolctl stop example || exit 0
1515
sudo apt-get install pandoc
1616
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
@@ -19,4 +19,7 @@ elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
1919
else
2020
brew install tarantool
2121
fi
22+
23+
brew install [email protected]
24+
luarocks-5.1 install https://raw.githubusercontent.com/tarantool/rocks/gh-pages/queue-scm-1.rockspec
2225
fi

.ci/travis-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
1717
pyenv rehash
1818
fi
1919

20-
sudo pip install --upgrade pip wheel
21-
sudo pip install --upgrade setuptools
20+
pip install --upgrade pip wheel
21+
pip install --upgrade setuptools
2222
pip install -r requirements.txt
2323
pip install coveralls
2424
pip install -e .

.ci/travis-tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
1212
fi
1313

1414
if [[ "${BUILD}" == *quicktests* ]]; then
15-
make && make quicktest
15+
make && make quicktest || exit 1
1616
else
17-
make && make test
18-
make clean && make debug && make test
17+
make && make test || exit 1
18+
make clean && make debug && make test || exit 1
1919
fi
2020

2121
if [[ "${BUILD}" == *coverage* ]]; then

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ deploy:
7171
api_key:
7272
secure: CJ6KqhcxNx9seTTk5bXyoEC4tyQu1stquP2E1DWn7F5rhRmuR5ApKuJfgVOZDcy3S59jTuAperW/He3CHghkHcm7JspB8270zh/rwxFx6Viw3hPXsJFAB4GbBKXSRxc6XTTa0Jh3cC3yIwNSfm2BbcJb6HiLnyeqOjoHs83fZYVK/eFeWQQc9VGSdsop7urOQC7iKLM0BXIivOVuuFGJPSCz2VvvDpx/CKbr1qJ3qHbkCJhze/D+IAudbvEmgO1IhFEQHe7oo+cBN1aTgrbZqFM55V5WH48s/CWlVb3SE+RISiPLN3fY9edbi4UKm1SFz43LQ6BNG77fttdN4sKXz7zy5/73mENt1oavhx0l0tnIMUgoEPCb3rUD4BgJaFcSAFdiX1Kv5TU5A5Yu/BsrRdaScwdDw+vpvdQCoucFBn2lXVotyOHT/fFKiEjQ6WRRxMnaukvQcIhoLn4N+jHEh2txFTyDE5iMeXDuqf730xTjwC34Bixru0NANzJsT+MJBZTND7rWA19M6TLxHcAeDgePYVdfgMZt+944eN/qeQcYgDSaKM5KGW3pibG8M4hhqfr1Zcm0LI8kZA9zVV9fahK2Gt6UIbMI/1PzzVLRYF7lFYfePsmToj6QoRWmn5+hQ8EfuJwsiF9nQ+cr1WzpcH5ccsB2KDfIzwWF6L2ThF4=
7373
file_glob: true
74-
file: dist/asynctnt_queue*.tar.gz
74+
file: dist/asynctnt-queue*.tar.gz
7575
on:
76-
repo: igorcoding/asynctnt_queue
76+
repo: igorcoding/asynctnt-queue
7777
tags: true
7878
condition: '"${BUILD}" == *release*'
7979

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
## asynctnt_queue
1+
## asynctnt-queue
22

33
Tarantool Queue python/asyncio bindings

asynctnt_queue/queue.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ async def statistics(self, tube_name=None):
4040
args = (tube_name,)
4141

4242
res = await self._conn.call('queue.statistics', args)
43+
if self._conn.version < (1, 7):
44+
return res.body[0][0]
4345
return res.body[0]

docs/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
==============
2-
asynctnt_queue
2+
asynctnt-queue
33
==============
44

5-
.. image:: https://travis-ci.org/igorcoding/asynctnt_queue.svg?branch=master
6-
:target: https://travis-ci.org/igorcoding/asynctnt_queue
5+
.. image:: https://travis-ci.org/igorcoding/asynctnt-queue.svg?branch=master
6+
:target: https://travis-ci.org/igorcoding/asynctnt-queue
77

8-
.. image:: https://img.shields.io/pypi/v/asynctnt_queue.svg
9-
:target: https://pypi.python.org/pypi/asynctnt_queue
8+
.. image:: https://img.shields.io/pypi/v/asynctnt-queue.svg
9+
:target: https://pypi.python.org/pypi/asynctnt-queue
1010

1111

12-
asynctnt_queue is a bindings library for
12+
asynctnt-queue is a bindings library for
1313
`tarantool-queue <https://github.com/tarantool/queue>`__ package in
1414
`Tarantool Database <https://tarantool.org/>`__. It is integrated with
1515
`asynctnt <https://github.com/igorcoding/asynctnt/>`__ module
1616

1717

1818
License
1919
-------
20-
asynctnt_queue is developed and distributed under the Apache 2.0 license.
20+
asynctnt-queue is developed and distributed under the Apache 2.0 license.
2121

2222

2323
.. toctree::

docs/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To install asynctnt through **pip** run:
88

99
.. code-block:: bash
1010
11-
$ pip install asynctnt_queue
11+
$ pip install asynctnt-queue
1212
1313
1414
Running tests

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def find_version():
2525

2626

2727
setup(
28-
name="asynctnt_queue",
28+
name="asynctnt-queue",
2929
packages=["asynctnt_queue"],
3030
include_package_data=True,
3131
version=find_version(),
3232
author="igorcoding",
3333
author_email="[email protected]",
34-
url='https://github.com/igorcoding/asynctnt_queue',
34+
url='https://github.com/igorcoding/asynctnt-queue',
3535
license='Apache Software License',
3636
classifiers=[
3737
"Programming Language :: Python :: 3 :: Only",

tests/files/app.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ queue.create_tube('test_tube', 'fifottl', {temporary = true})
3939
function truncate()
4040
box.space.test_tube:truncate()
4141
end
42+
box.schema.func.create('truncate', {setuid=true})

0 commit comments

Comments
 (0)