From 4d5914d5318a36f8b209649e6e44e20fe0618572 Mon Sep 17 00:00:00 2001 From: sxamit Date: Sun, 26 Jun 2016 12:13:42 +0300 Subject: [PATCH] Feature/Pypi Upload (#7) * Upload to pypi * separate requirements from setup.py * setup.cfg to README.md * upgrade version * bump version * fix - setup.py not getting the requirements from requirements.txt * add pypi badge --- README.md | 1 + requirements.txt | 2 ++ setup.cfg | 2 ++ setup.py | 5 +++-- twistes/version.py | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 requirements.txt create mode 100644 setup.cfg diff --git a/README.md b/README.md index 166b825..cdf2d4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ #TwistEs ###Asynchronous elastic search client using Twisted +[![Pypi Status](https://img.shields.io/pypi/v/twistes.svg)](https://pypi.python.org/pypi/twistes) [![Coverage Status](https://coveralls.io/repos/github/avihad/twistes/badge.svg?branch=feature%2Fadd_travis_ci)](https://coveralls.io/github/avihad/twistes?branch=feature%2Fadd_travis_ci) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6b7b6fd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +twisted==16.2.0 +treq==15.1.0 \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..224a779 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py index 9edaeb6..46d4f2a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python from setuptools import setup, find_packages +from pip.req import parse_requirements from distutils.util import convert_path import codecs import sys @@ -11,8 +12,7 @@ with codecs.open(ver_path, 'rb', 'utf8') as ver_file: exec (ver_file.read(), main_ns) -install_requires = ['twisted', 'treq'] - +install_requires = ['twisted==16.2.0', 'treq==15.1.0'] if sys.version_info < (2, 7): # python 2.6 isn't supported @@ -43,6 +43,7 @@ 'Topic :: Software Development :: Testing' ], packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), + download_url='https://github.com/avihad/twistes/tarball/{version}'.format(version=main_ns['__version__']), zip_safe=False, include_package_data=True, install_requires=install_requires, diff --git a/twistes/version.py b/twistes/version.py index 11d27f8..10939f0 100644 --- a/twistes/version.py +++ b/twistes/version.py @@ -1 +1 @@ -__version__ = '0.1' +__version__ = '0.1.2'