Skip to content

Commit

Permalink
Packaging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dirn committed Mar 2, 2016
1 parent 9932b0e commit d7b1e2b
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 6 deletions.
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
Empty file added docs/_static/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = pkg_resources.get_distribution('henson').version
release = pkg_resources.get_distribution('henson-sentry').version
# The short X.Y version.
version = release.rsplit('.', 1)[0]

Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

33 changes: 30 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,45 @@
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
import sys

from henson_sentry import __version__

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-Sentry',
version=__version__,
version='0.1.0',
author='Andy Dirnberger',
author_email='[email protected]',
url='https://henson-sentry.rtfd.org',
description='A library for integrating Sentry into a Henson application',
long_description=read('README.rst'),
license='MIT',
packages=find_packages(exclude=['tests']),
zip_safe=False,
install_requires=[
'Henson',
'raven',
],
tests_require=[
'tox',
'pytest',
'pytest-asyncio',
],
cmdclass={
'test': PyTest,
},
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
Expand Down

0 comments on commit d7b1e2b

Please sign in to comment.