1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# Copyright (c) 2016, Science and Technology Facilities Council
# This software is distributed under a BSD licence. See LICENSE.txt.
import os.path
from setuptools import setup
base_url = 'https://github.com/ccpem/mrcfile'
def version():
"""Get the version number without importing the mrcfile package."""
namespace = {}
with open(os.path.join('mrcfile', 'version.py')) as f:
exec(f.read(), namespace)
return namespace['__version__']
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='mrcfile',
version=version(),
packages=['mrcfile'],
install_requires=['numpy >= 1.16.0'],
test_suite='tests',
entry_points = {
'console_scripts': [
'mrcfile-header = mrcfile.command_line:print_headers',
'mrcfile-validate = mrcfile.validator:main'
],
},
author='Colin Palmer',
author_email='colin.palmer@stfc.ac.uk',
description='MRC file I/O library',
long_description=readme(),
license='BSD',
url=base_url,
download_url='{0}/releases'.format(base_url),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)
|