2012-06-20 19:58:13 +00:00
|
|
|
#!/usr/bin/env python
|
2012-06-20 20:41:04 +00:00
|
|
|
# -*- coding: iso-8859-1 -*-
|
2012-06-20 19:58:13 +00:00
|
|
|
# Copyright (C) 2004-2005 Tristan Seligmann and Jonathan Jacobs
|
2014-01-05 15:50:57 +00:00
|
|
|
# Copyright (C) 2012-2014 Bastian Kleineidam
|
2015-04-22 20:22:03 +00:00
|
|
|
# Copyright (C) 2015 Tobias Gruetzmacher
|
2013-03-16 16:19:36 +00:00
|
|
|
|
2012-12-12 16:41:29 +00:00
|
|
|
from __future__ import print_function
|
2012-06-20 19:58:13 +00:00
|
|
|
import os
|
2013-04-25 17:00:09 +00:00
|
|
|
import codecs
|
2015-04-22 20:22:03 +00:00
|
|
|
from setuptools import setup, find_packages
|
2012-12-17 20:28:20 +00:00
|
|
|
|
2013-04-25 17:00:09 +00:00
|
|
|
def get_authors():
|
|
|
|
"""Read list of authors from a text file, filtering comments."""
|
|
|
|
authors = []
|
|
|
|
authorfile = os.path.join('doc', 'authors.txt')
|
|
|
|
with codecs.open(authorfile, 'r', 'utf-8') as f:
|
|
|
|
for line in f:
|
|
|
|
line = line.strip()
|
|
|
|
if line and not line.startswith(u'#'):
|
|
|
|
authors.append(line)
|
|
|
|
return u", ".join(authors)
|
|
|
|
|
|
|
|
|
2015-04-22 20:22:03 +00:00
|
|
|
config = {}
|
|
|
|
with codecs.open(os.path.join('dosagelib', 'configuration.py')) as fp:
|
|
|
|
exec(fp.read(), config)
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name = config['AppName'],
|
|
|
|
version = config['Version'],
|
2013-03-25 18:46:48 +00:00
|
|
|
description = 'a comic strip downloader and archiver',
|
2013-03-06 19:00:30 +00:00
|
|
|
keywords = 'comic,webcomic,downloader,archiver',
|
2013-04-25 17:00:09 +00:00
|
|
|
author = get_authors(),
|
2015-04-22 20:22:03 +00:00
|
|
|
maintainer = config['Maintainer'],
|
|
|
|
maintainer_email = config['MaintainerEmail'],
|
2012-06-20 19:58:13 +00:00
|
|
|
license = 'MIT',
|
2015-04-22 20:22:03 +00:00
|
|
|
url = config['Url'],
|
|
|
|
packages = find_packages(exclude=['tests']),
|
2012-06-20 19:58:13 +00:00
|
|
|
scripts = (
|
|
|
|
'dosage',
|
|
|
|
),
|
2013-04-02 21:23:44 +00:00
|
|
|
classifiers = (
|
2013-03-04 18:10:27 +00:00
|
|
|
'Environment :: Console',
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'Topic :: Multimedia :: Graphics',
|
|
|
|
'Topic :: Internet :: WWW/HTTP',
|
|
|
|
'Development Status :: 4 - Beta',
|
2015-04-22 20:22:03 +00:00
|
|
|
'License :: OSI Approved :: MIT License',
|
2013-03-04 18:10:27 +00:00
|
|
|
'Programming Language :: Python',
|
2015-04-22 20:22:03 +00:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
|
|
|
'Programming Language :: Python :: 3',
|
|
|
|
'Programming Language :: Python :: 3.3',
|
|
|
|
'Programming Language :: Python :: 3.4',
|
2013-03-04 18:10:27 +00:00
|
|
|
'Operating System :: OS Independent',
|
2013-04-02 21:23:44 +00:00
|
|
|
),
|
2013-04-02 21:36:50 +00:00
|
|
|
install_requires = (
|
|
|
|
'requests',
|
2015-04-22 20:22:03 +00:00
|
|
|
),
|
|
|
|
extras_require = {
|
|
|
|
'xpath': ["lxml"],
|
|
|
|
'css': ['cssselect'],
|
|
|
|
},
|
|
|
|
setup_requires = [
|
|
|
|
"setuptools_git >= 1.0",
|
|
|
|
]
|
2012-06-20 19:58:13 +00:00
|
|
|
)
|