Skipping a test that segfaults only on 1.5.0 and 2.0.0. The test was test_NR_DEC_issue188_beach_64bitsbox_jp2_41_decode. It was not introduced until the 2.1.x series and the fix was backported to 2.0.1. glymur.test.test_jp2k.TestJp2k.test_no_cxform_pclr_jpx was failing on 1.5.2 only. It's a pretty obscure test, so just skipping it on that release. Some tests for warnings are being skipped.
47 lines
1.9 KiB
Python
47 lines
1.9 KiB
Python
from setuptools import setup, find_packages
|
|
import os
|
|
import re
|
|
import sys
|
|
|
|
kwargs = {'name': 'glymur',
|
|
'description': 'Tools for accessing JPEG2000 files',
|
|
'long_description': open('README.md').read(),
|
|
'author': 'John Evans',
|
|
'author_email': 'john.g.evans.ne@gmail.com',
|
|
'url': 'https://github.com/quintusdias/glymur',
|
|
'packages': ['glymur', 'glymur.data', 'glymur.test', 'glymur.lib',
|
|
'glymur.lib.test'],
|
|
'package_data': {'glymur': ['data/*.jp2', 'data/*.j2k', 'data/*.jpx']},
|
|
'scripts': ['bin/jp2dump'],
|
|
'license': 'MIT',
|
|
'test_suite': 'glymur.test'}
|
|
|
|
instllrqrs = ['numpy>=1.4.1', 'lxml>=2.3.2']
|
|
if sys.hexversion < 0x03030000:
|
|
instllrqrs.append('contextlib2>=0.4')
|
|
instllrqrs.append('mock>=1.0.1')
|
|
kwargs['install_requires'] = instllrqrs
|
|
|
|
clssfrs = ["Programming Language :: Python",
|
|
"Programming Language :: Python :: 2.7",
|
|
"Programming Language :: Python :: 3.3",
|
|
"Programming Language :: Python :: 3.4",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Operating System :: MacOS",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: Microsoft :: Windows :: Windows XP",
|
|
"Intended Audience :: Science/Research",
|
|
"Intended Audience :: Information Technology",
|
|
"Topic :: Software Development :: Libraries :: Python Modules"]
|
|
kwargs['classifiers'] = clssfrs
|
|
|
|
# Get the version string. Cannot do this by importing glymur!
|
|
version_file = os.path.join('glymur', 'version.py')
|
|
with open(version_file, 'rt') as fptr:
|
|
contents = fptr.read()
|
|
match = re.search('version\s*=\s*"(?P<version>\d*.\d*.\d*.*)"\n', contents)
|
|
kwargs['version'] = match.group('version')
|
|
|
|
setup(**kwargs)
|