Skip to content

Commit

Permalink
Merge pull request #21 from iheartradio/pre-release-housekeeping
Browse files Browse the repository at this point in the history
Fix up README.rst and setup.py for first release, add release date
  • Loading branch information
dirn committed Mar 1, 2016
2 parents 86e9e59 + ab9b1f4 commit 889e9f7
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ Changelog
Version 0.1.0
=============

Released TBA
Released 2016-03-01

- Initial release
12 changes: 12 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include AUTHORS.rst
include LICENSE
include README.rst

recursive-include docs Makefile *.py *.rst

exclude .coveragerc
exclude .travis.yml
exclude tox.ini

prune docs/_build
prune tests
15 changes: 12 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
###########
Henson-AMQP
###########
##########################
Henson-AMQP |build status|
##########################

.. |build status| image:: https://travis-ci.org/iheartradio/Henson-AMQP.svg?branch=master
:target: https://travis-ci.org/iheartradio/Henson-AMQP


A library for interacting with AMQP with a Henson application.

* `Documentation <https://henson-amqp.rtfd.org>`_
* `Installation <https://henson-amqp.readthedocs.org/en/latest/#installation>`_
* `Changelog <https://henson-amqp.readthedocs.org/en/latest/changes.html>`_
* `Source <https://github.com/iheartradio/Henson-AMQP>`_
Empty file added docs/_static/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

31 changes: 30 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,45 @@
from setuptools import find_packages, setup

from setuptools.command.test import test as TestCommand
import sys


class PyTest(TestCommand):
def finalize_options(self):
super().finalize_options()
self.test_args = []
self.test_suite = True

def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))


def read(filename):
with open(filename) as f:
return f.read()

setup(
name='Henson-AMQP',
version='0.1.0',
author='Andy Dirnberger, Jon Banafato, and others',
author_email='[email protected]',
url='https://henson-amqp.rtfd.org',
description='A library for interacting with AMQP with a Henson application.',
long_description=read('README.rst'),
license='Apache License, Version 2.0',
packages=find_packages(exclude=['tests']),
install_requires=[
'Henson>=1.0.0,<2.0.0',
'aioamqp>=0.5.1,<1.0.0',
],
tests_require=[
'tox',
'pytest',
'pytest-asyncio',
],
cmdclass={
'test': PyTest,
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down
1 change: 1 addition & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@pytest.mark.asyncio
def test_read_write(test_consumer, test_producer, delivery_mode):
"""Test that reading from the consumer returns a message from amqp."""
yield from test_consumer._begin_consuming()
test_producer.app.settings['AMQP_DELIVERY_MODE'] = delivery_mode
message = json.dumps({'spam': 'eggs'}).encode()
yield from test_producer.send(message)
Expand Down

0 comments on commit 889e9f7

Please sign in to comment.