Skip to content

Commit d9c0e51

Browse files
committed
setting up releases
1 parent 56e2ea2 commit d9c0e51

File tree

11 files changed

+108
-75
lines changed

11 files changed

+108
-75
lines changed

.ci/travis-before-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
1212
sudo apt-get -qq update
1313
sudo apt-get -y install tarantool
1414
sudo tarantoolctl stop example || exit 0
15+
sudo apt-get install pandoc
1516
elif [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
1617
if [[ "${TARANTOOL_VERSION}" == "1_7" ]]; then
1718
brew install tarantool --HEAD

.ci/travis-release.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e -x
4+
5+
6+
if [ -z "${TRAVIS_TAG}" ]; then
7+
# Not a release
8+
exit 0
9+
fi
10+
11+
12+
python setup.py sdist
13+
twine upload dist/*

.travis.yml

Lines changed: 69 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,82 @@
11
language: python
2-
32
matrix:
43
fast_finish: true
54
include:
6-
# osx
7-
- os: osx
8-
language: generic
9-
env: BUILD=tests PYTHON_VERSION=3.5.2 TARANTOOL_VERSION=1_6
10-
11-
- os: osx
12-
language: generic
13-
env: BUILD=tests PYTHON_VERSION=3.6.0 TARANTOOL_VERSION=1_6
14-
15-
- os: osx
16-
language: generic
17-
env: BUILD=tests PYTHON_VERSION=3.5.2 TARANTOOL_VERSION=1_7
18-
19-
- os: osx
20-
language: generic
21-
env: BUILD=tests PYTHON_VERSION=3.6.0 TARANTOOL_VERSION=1_7
22-
23-
# precise
24-
- os: linux
25-
dist: precise
26-
sudo: required
27-
language: python
28-
python: "3.5"
29-
env: BUILD=quicktests TARANTOOL_VERSION=1_6
30-
31-
- os: linux
32-
dist: precise
33-
sudo: required
34-
language: python
35-
python: "3.5"
36-
env: BUILD=quicktests TARANTOOL_VERSION=1_7
37-
38-
# trusty
39-
- os: linux
40-
dist: trusty
41-
sudo: required
42-
language: python
43-
python: "3.5"
44-
env: BUILD=quicktests TARANTOOL_VERSION=1_6
45-
46-
- os: linux
47-
dist: trusty
48-
sudo: required
49-
language: python
50-
python: "3.5"
51-
env: BUILD=quicktests TARANTOOL_VERSION=1_7
52-
53-
# latest tarantool
54-
- os: linux
55-
dist: trusty
56-
sudo: required
57-
language: python
58-
python: "3.5"
59-
env: BUILD=tests TARANTOOL_VERSION=1_7
60-
61-
- os: linux
62-
dist: trusty
63-
sudo: required
64-
language: python
65-
python: "3.6"
66-
env: BUILD=tests TARANTOOL_VERSION=1_7
5+
- os: osx
6+
language: generic
7+
env: BUILD=tests PYTHON_VERSION=3.5.2 TARANTOOL_VERSION=1_6
8+
- os: osx
9+
language: generic
10+
env: BUILD=tests PYTHON_VERSION=3.6.0 TARANTOOL_VERSION=1_6
11+
- os: osx
12+
language: generic
13+
env: BUILD=tests PYTHON_VERSION=3.5.2 TARANTOOL_VERSION=1_7
14+
- os: osx
15+
language: generic
16+
env: BUILD=tests PYTHON_VERSION=3.6.0 TARANTOOL_VERSION=1_7
17+
- os: linux
18+
dist: precise
19+
sudo: required
20+
language: python
21+
python: '3.5'
22+
env: BUILD=quicktests TARANTOOL_VERSION=1_6
23+
- os: linux
24+
dist: precise
25+
sudo: required
26+
language: python
27+
python: '3.5'
28+
env: BUILD=quicktests TARANTOOL_VERSION=1_7
29+
- os: linux
30+
dist: trusty
31+
sudo: required
32+
language: python
33+
python: '3.5'
34+
env: BUILD=quicktests TARANTOOL_VERSION=1_6
35+
- os: linux
36+
dist: trusty
37+
sudo: required
38+
language: python
39+
python: '3.5'
40+
env: BUILD=quicktests TARANTOOL_VERSION=1_7
41+
- os: linux
42+
dist: trusty
43+
sudo: required
44+
language: python
45+
python: '3.5'
46+
env: BUILD=tests TARANTOOL_VERSION=1_7
47+
- os: linux
48+
dist: trusty
49+
sudo: required
50+
language: python
51+
python: '3.6'
52+
env: BUILD=tests,release TARANTOOL_VERSION=1_7
6753

6854
cache:
6955
- pip
7056

7157
before_install:
72-
- .ci/travis-before-install.sh
58+
- ".ci/travis-before-install.sh"
7359

7460
install:
75-
- .ci/travis-install.sh
61+
- ".ci/travis-install.sh"
7662

7763
script:
78-
- .ci/travis-tests.sh
64+
- ".ci/travis-tests.sh"
65+
66+
deploy:
67+
- provider: releases
68+
skip_cleanup: true
69+
api_key:
70+
secure: QldT0BfRC5AiavTIQqB9TkRK30J0UVd0yfLll2UjgJIB615jSbr/9NLLjI50x3TXyyeD80I9N+EvyGWl0sX1aWZE/sFYalbfCPFWfbpZ3XnsvNxgbzAhKrWbW0F7Vyb2hccq8fBuCo7m9WaTfFfTFe3ziEpFLDtZqkWKvv3GPqQxqrDW4tgq2dcyqZKTDX2XTN/SQNsHFZtaIvSyNRYCd1Z4ZrnOEnRZH7nxNKWR5lQ25o2Z9u4lukaq//M5rlphQQU74y3O8oYq/FiR6PzmSoH2+AKzJ2MiLqdbH/VhmAU+nsMwLPbSM8YnIICJh4lRVw7Ug5YNUogXHWyiCg6ztOQhPAL8v4/TTMteGT/8oMt7kc/w1EENaaMRhyfaLOC9glkJWcamnGBsJ2OJR1ogqNzmJvvWbSMHZB8fi/xWjWJ5YonGbR+MSh5h5q7h0yr7uO6M4PUVdpqKgQCfvowwyJPC5udgtGnBR3GE9g85jquVPdK+oCHZsJFBKB96Hci6AejlM0eRWV/RZI2fzv5/2UUkwQnnpF8pejtw9y3cG6kyJABdQSQjb/2illv8HXZe5m9orcSvjS2t6zpPYPWvqBJn2PTRwnq4Djl1Wo8PcwBLgjtN8JhM2NhXl3JrN7aLUtcBUqlmBgA5LWPHvaQtq6MA466rOV8x+pVNfEo0sL4=
71+
file_glob: true
72+
file: dist/asynctnt*.tar.gz
73+
on:
74+
repo: igorcoding/asynctnt
75+
tags: true
76+
condition: '"${BUILD}" == *release*'
77+
78+
- provider: script
79+
script: .ci/travis-release.sh
80+
on:
81+
tags: true
82+
condition: '"${BUILD}" == *release*'
File renamed without changes.

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
recursive-include tests *.py
2+
recursive-include asynctnt *.pyx *.pxd *.pxi *.py *.c *.h
3+
recursive-include third_party *
4+
include LICENSE.txt README.md Makefile

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# asynctnt
22

3-
[![Build Status](https://travis-ci.com/igorcoding/asynctnt.svg?token=rFNDyy6cdNgiTQaxXzt8&branch=master)](https://travis-ci.com/igorcoding/asynctnt)
4-
53
asynctnt is a high-performance [Tarantool](https://tarantool.org/) database
64
connector library for Python/asyncio. It was highly inspired by
75
[asyncpg](https://github.com/MagicStack/asyncpg) module.
@@ -48,6 +46,7 @@ RPS on running 200k requests in 300 parallel coroutines (no `uvloop`):
4846
Let's enable uvloop. This is where asynctnt shines.
4947
RPS on running 200k requests in 300 parallel coroutines (with `uvloop`):
5048

49+
5150
| Request | aiotarantool | asynctnt |
5251
| ------------- |:-------------:| ---------:|
5352
| ping | 30050.55 | 131317.35 |
@@ -56,6 +55,7 @@ RPS on running 200k requests in 300 parallel coroutines (with `uvloop`):
5655
| select | 22346.14 | 88748.47 |
5756
| insert | 25811.84 | 82526.94 |
5857
| update | 21914.15 | 80865.00 |
58+
5959

6060
## Roadmap
6161

asynctnt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .connection import Connection, connect
22
from .iproto.protocol import Iterator, Response
33

4-
__version__ = '0.0.1'
4+
__version__ = '0.0.6'

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
psutil==5.0.1
1+
PyYAML>=3.12
2+
uvloop>=0.6.7
23
cython==0.25.2
34
pep8==1.7.0
45
flake8==3.2.1
5-
PyYAML>=3.12
6-
uvloop>=0.6.7
6+
pypandoc
7+
twine

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
1616

17+
description = "A fast Tarantool Database connector for Python/asyncio."
18+
try:
19+
import pypandoc
20+
long_description = pypandoc.convert('README.md', 'rst')
21+
except (IOError, ImportError):
22+
long_description = description
23+
1724

1825
def find_version():
1926
for line in open("asynctnt/__init__.py"):
@@ -176,8 +183,10 @@ def _patch_cfile(self, cfile):
176183
version=find_version(),
177184
author="igorcoding",
178185
author_email="igorcoding@gmail.com",
186+
url='https://github.com/igorcoding/asynctnt',
187+
license='Apache Software License',
179188
classifiers=[
180-
"Programming Language :: Python :: Only",
189+
"Programming Language :: Python :: 3 :: Only",
181190
"Programming Language :: Python :: 3.5",
182191
"Programming Language :: Python :: 3.6",
183192
"Intended Audience :: Developers",
@@ -188,7 +197,7 @@ def _patch_cfile(self, cfile):
188197
install_requires=[
189198
'PyYAML>=3.12'
190199
],
191-
description="A fast Tarantool Database connector for Python/asyncio.",
192-
long_description=open("README.md").read(),
200+
description=description,
201+
long_description=long_description,
193202
test_suite='run_tests.discover_tests'
194203
)

0 commit comments

Comments
 (0)