dosage/setup.py

69 lines
2 KiB
Python
Raw Normal View History

2012-06-20 19:58:13 +00:00
#!/usr/bin/env python
# -*- 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
# 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
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)
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',
keywords = 'comic,webcomic,downloader,archiver',
2013-04-25 17:00:09 +00:00
author = get_authors(),
maintainer = config['Maintainer'],
maintainer_email = config['MaintainerEmail'],
2012-06-20 19:58:13 +00:00
license = 'MIT',
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 = (
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Topic :: Multimedia :: Graphics',
'Topic :: Internet :: WWW/HTTP',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'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-21 19:56:54 +00:00
'pycountry',
),
extras_require = {
'xpath': ["lxml"],
'css': ['cssselect'],
},
setup_requires = [
"setuptools_git >= 1.0",
]
2012-06-20 19:58:13 +00:00
)