Merge branch 'master' of https://github.com/nicktimko/python-feedgen
This commit is contained in:
commit
d5e89ef807
4 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
3
Makefile
3
Makefile
|
@ -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
2
setup.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[bdist_wheel]
|
||||
universal=1
|
17
setup.py
17
setup.py
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue