Codebase list python-asset / 525b1698-6377-404a-8fee-82ae9ba06519/main setup.py
525b1698-6377-404a-8fee-82ae9ba06519/main

Tree @525b1698-6377-404a-8fee-82ae9ba06519/main (Download .tar.gz)

setup.py @525b1698-6377-404a-8fee-82ae9ba06519/mainraw · history · blame

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# auth: metagriffin <[email protected]>
# date: 2013/10/29
# copy: (C) Copyright 2013-EOT metagriffin -- see LICENSE.txt
#------------------------------------------------------------------------------
# This software is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This software is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#------------------------------------------------------------------------------

import os, sys, setuptools
from setuptools import setup, find_packages

# require python 2.7+
if sys.hexversion < 0x02070000:
  raise RuntimeError('This package requires python 2.7 or better')

heredir = os.path.abspath(os.path.dirname(__file__))
def read(*parts, **kw):
  try:    return open(os.path.join(heredir, *parts)).read()
  except: return kw.get('default', '')

test_dependencies = [
  'nose                 >= 1.3.0',
  'coverage             >= 3.5.3',
  # note: `pxml` should be installed as an egg, i.e.:
  #         easy_install --zip-ok pxml
  #       for the unit tests to be able to test that.
  'pxml                 >= 0.2.13',
]

dependencies = [
  # note: `globre` should be installed unzipped, i.e.:
  #         easy_install --always-unzip globre
  #       for the unit tests to be able to test that.
  'globre               >= 0.1.5',
  'six                  >= 1.10.0',
  'aadict               >= 0.2.2',
]

entrypoints = None

classifiers = [
  'Development Status :: 5 - Production/Stable',
  'Intended Audience :: Developers',
  'Programming Language :: Python',
  'Operating System :: OS Independent',
  'Natural Language :: English',
  'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
]

setup(
  name                  = 'asset',
  version               = read('VERSION.txt', default='0.0.1').strip(),
  description           = 'A package resource and symbol loading helper library.',
  long_description      = read('README.rst'),
  classifiers           = classifiers,
  author                = 'metagriffin',
  author_email          = '[email protected]',
  url                   = 'http://github.com/metagriffin/asset',
  keywords              = 'python package pkg_resources asset resolve lookup loader',
  packages              = find_packages(),
  platforms             = ['any'],
  include_package_data  = True,
  zip_safe              = True,
  install_requires      = dependencies,
  tests_require         = test_dependencies,
  test_suite            = 'asset',
  entry_points          = entrypoints,
  license               = 'GPLv3+',
)

#------------------------------------------------------------------------------
# end of $Id$
#------------------------------------------------------------------------------