Skip to content

Commit

Permalink
Feature/Pypi Upload (#7)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sxamit authored and avihad committed Jun 26, 2016
1 parent 8d979cb commit 4d5914d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
twisted==16.2.0
treq==15.1.0
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion twistes/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1'
__version__ = '0.1.2'

0 comments on commit 4d5914d

Please sign in to comment.