Build and test wheel
This commit is contained in:
parent
2e2c23d9ae
commit
542dade8fa
3 changed files with 21 additions and 6 deletions
|
@ -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*
|
||||||
|
|
||||||
script: make test
|
script:
|
||||||
|
make test
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -48,7 +48,7 @@ publish_wheel: sdist
|
||||||
python setup.py bdist_wheel upload
|
python setup.py bdist_wheel upload
|
||||||
|
|
||||||
test:
|
test:
|
||||||
python -m unittest feedgen.tests.test_feed
|
python -I -m unittest feedgen.tests.test_feed
|
||||||
python -m unittest feedgen.tests.test_entry
|
python -I -m unittest feedgen.tests.test_entry
|
||||||
python -m unittest feedgen.tests.test_extension
|
python -I -m unittest feedgen.tests.test_extension
|
||||||
@rm -f tmp_Atomfeed.xml tmp_Rssfeed.xml
|
@rm -f tmp_Atomfeed.xml tmp_Rssfeed.xml
|
||||||
|
|
14
setup.py
14
setup.py
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue