Skip to content

Commit

Permalink
Fixes for PyPI publishing (already published)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsj committed Mar 9, 2016
1 parent dce1f73 commit f0cae64
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 11 deletions.
20 changes: 20 additions & 0 deletions LONG_DESCRIPTION.rst
@@ -0,0 +1,20 @@
Official Ably Bindings for Python
==================================

A Python client library for ably.io realtime messaging


Setup
-----

You can install this package by using the pip tool and installing:

pip install ably


Using Ably for Python
---------------------

- Sign up for Ably at https://www.ably.io/
- Get usage examples at https://github.com/ably/ably-python
- Visit https://www.ably.io/documentation for a complete API reference and more examples.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include LICENSE LONG_DESCRIPTION.rst
10 changes: 3 additions & 7 deletions README.md
Expand Up @@ -12,21 +12,17 @@ Visit https://www.ably.io/documentation for a complete API reference and more ex

## Installation

### From PyPI (soon)
### From PyPI

pip install ably

### From a git url

pip install -e git+https://github.com/ably/ably-python#egg=AblyPython

### Locally

git clone https://github.com/ably/ably-python.git
cd ably-python
python setup.py install

#### To run the tests
#### To run the tests after local install

git submodule init
git submodule update
Expand All @@ -52,7 +48,7 @@ channel.publish('event', 'message')
### Querying the History

```python
mesage_page = channel.history() # Returns a PaginatedResult
message_page = channel.history() # Returns a PaginatedResult
message_page.items # List with messages from this page
message_page.has_next() # => True, indicates there is another page
message_page.next().items # List with messages from the second page
Expand Down
28 changes: 24 additions & 4 deletions setup.py
@@ -1,17 +1,37 @@
from setuptools import setup

with open('LONG_DESCRIPTION.rst') as f:
long_description = f.read()

setup(
name='ably',
version='0.1.dev',
version='0.0.2',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages=['ably', 'ably.http', 'ably.rest', 'ably.transport', 'ably.types', 'ably.util'],
packages=['ably', 'ably.http', 'ably.rest', 'ably.transport',
'ably.types', 'ably.util'],
install_requires=['msgpack-python>=0.4.6',
'pycrypto>=2.6.1',
'requests>=2.7.0,<2.8',
'six>=1.9.0'], # remember to update these on tox.ini!
'six>=1.9.0'], # remember to update these
# according to requirements.txt!
# there's no easy way to reuse this.
long_description='',
author="Ably",
author_email='support@ably.io',
url='https://github.com/ably/ably-python',
description="A Python client library for ably.io realtime messaging",
long_description=long_description,
)

0 comments on commit f0cae64

Please sign in to comment.