From d7b1e2bdd162ef4dfd71de9d105545e2ff7ea4e1 Mon Sep 17 00:00:00 2001 From: Andy Dirnberger Date: Wed, 2 Mar 2016 00:27:49 -0500 Subject: [PATCH] Packaging cleanup --- MANIFEST.in | 12 ++++++++++++ docs/_static/.gitkeep | 0 docs/conf.py | 2 +- setup.cfg | 2 -- setup.py | 33 ++++++++++++++++++++++++++++++--- 5 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 MANIFEST.in create mode 100644 docs/_static/.gitkeep delete mode 100644 setup.cfg diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..2f11356 --- /dev/null +++ b/MANIFEST.in @@ -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 diff --git a/docs/_static/.gitkeep b/docs/_static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/docs/conf.py b/docs/conf.py index eb11d5b..0e063ca 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 2a9acf1..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal = 1 diff --git a/setup.py b/setup.py index 1c5ba2b..5678133 100644 --- a/setup.py +++ b/setup.py @@ -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='andy@dirnberger.me', + 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',