Skip to content
Snippets Groups Projects
Select Git revision
  • 6f5d5f2465f137725d6097c971516744111e2a33
  • master default protected
  • gec-95-add-filter-skymodel
  • gec-95-migrate-filter-skymodel-utils
  • add-coverage-badge
  • releases/1.6
  • releases/1.5
  • rap-457-implement-ci-v2
  • test_heroku
  • action-python-publish
  • v1.7.1
  • v1.7.0
  • v1.6.2
  • v1.6.1
  • v1.6.post1
  • v1.6
  • v1.5.1
  • v1.5.0
  • v1.4.11
  • v1.4.10
  • v1.4.9
  • v1.4.8
  • v1.4.7
  • v1.4.6
  • v1.4.5
  • v1.4.4
  • v1.4.3
  • v1.4.2
  • v1.4.1
  • v1.4.0
30 results

setup.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    setup.py 1.36 KiB
    from __future__ import print_function
    from setuptools import setup, Command
    import os
    import sys
    import lsmtool._version
    
    
    class PyTest(Command):
        user_options = []
        def initialize_options(self):
            pass
    
        def finalize_options(self):
            pass
    
        def run(self):
            import sys,subprocess
            errno = subprocess.call([sys.executable, 'runtests.py'])
            raise SystemExit(errno)
    
    # Handle Python 3-only dependencies
    if sys.version_info < (3, 0):
        reqlist = ['numpy','astropy >= 0.4, <3.0']
    else:
        reqlist = ['numpy','astropy >= 0.4']
    
    setup(
        name='lsmtool',
        version=lsmtool._version.__version__,
        url='http://github.com/darafferty/lsmtool/',
        author='David Rafferty',
        author_email='drafferty@hs.uni-hamburg.de',
        description='The LOFAR Local Sky Model Tool',
        platforms='any',
        classifiers=[
            'Programming Language :: Python',
            'Development Status :: 4 - Beta',
            'Natural Language :: English',
            'Intended Audience :: Science/Research',
            'Operating System :: POSIX :: Linux',
            'Topic :: Scientific/Engineering :: Astronomy',
            'Topic :: Software Development :: Libraries :: Python Modules',
            ],
        install_requires=reqlist,
        scripts=['bin/lsmtool'],
        packages=['lsmtool','lsmtool.operations'],
        setup_requires=['pytest-runner'],
        tests_require=['pytest']
        )