Merge pull request #1 from nicktimko/travis-test-wheel

Build and test wheel
This commit is contained in:
Nick Timkovich 2016-06-01 21:55:49 -05:00
commit aa283aaab1
2 changed files with 17 additions and 2 deletions

View file

@ -8,6 +8,9 @@ python:
- "3.4" - "3.4"
- "3.5" - "3.5"
before_install: pip install --quiet lxml python-dateutil before_install:
- python setup.py bdist_wheel --include-test-subpackage
- pip install dist/feedgen*
- rm -rf feedgen
script: make test script: make test

View file

@ -1,13 +1,25 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import sys
MAGIC_BUILD_FLAG = '--include-test-subpackage'
if MAGIC_BUILD_FLAG in sys.argv:
sys.argv.remove(MAGIC_BUILD_FLAG)
with_tests = True
else:
with_tests = False
import setuptools import setuptools
from distutils.core import setup from distutils.core import setup
import feedgen.version import feedgen.version
packages = ['feedgen', 'feedgen/ext']
if with_tests:
packages.append('feedgen/tests')
setup( setup(
name = 'feedgen', name = 'feedgen',
packages = ['feedgen', 'feedgen/ext'], packages = packages,
version = feedgen.version.version_full_str, version = feedgen.version.version_full_str,
description = 'Feed Generator (ATOM, RSS, Podcasts)', description = 'Feed Generator (ATOM, RSS, Podcasts)',
author = 'Lars Kiesow', author = 'Lars Kiesow',