This commit is contained in:
Lars Kiesow 2016-08-28 23:49:51 +02:00
commit d5e89ef807
4 changed files with 24 additions and 3 deletions

View file

@ -8,6 +8,9 @@ python:
- "3.4"
- "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

View file

@ -44,6 +44,9 @@ doc-latexpdf:
publish: sdist
python setup.py register sdist upload
publish_wheel: sdist
python setup.py bdist_wheel upload
test:
python -m unittest feedgen.tests.test_feed
python -m unittest feedgen.tests.test_entry

2
setup.cfg Normal file
View file

@ -0,0 +1,2 @@
[bdist_wheel]
universal=1

View file

@ -1,12 +1,25 @@
#!/usr/bin/env python
# -*- 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
from distutils.core import setup
import feedgen.version
packages = ['feedgen', 'feedgen/ext']
if with_tests:
packages.append('feedgen/tests')
setup(
name = 'feedgen',
packages = ['feedgen', 'feedgen/ext'],
packages = packages,
version = feedgen.version.version_full_str,
description = 'Feed Generator (ATOM, RSS, Podcasts)',
author = 'Lars Kiesow',
@ -14,7 +27,7 @@ setup(
url = 'http://lkiesow.github.io/python-feedgen',
keywords = ['feed','ATOM','RSS','podcast'],
license = 'FreeBSD and LGPLv3+',
install_requires = ['lxml', 'dateutils'],
install_requires = ['lxml', 'python-dateutil'],
classifiers = [
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',