Skip to content
Commits on Source (8)
Copyright (c) 2008-2018, Christoph Gohlke
Copyright (c) 2008-2018, The Regents of the University of California
Produced at the Laboratory for Fluorescence Dynamics
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
include LICENSE
include README.rst
include tiffile.py
include setup_tiffile.py
include tests/*.py
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * *-
recursive-exclude test/data *
recursive-exclude test/_tmp *
This diff is collapsed.
This diff is collapsed.
tifffile (20170929-2) UNRELEASED; urgency=medium
tifffile (20181128-1) UNRELEASED; urgency=medium
* New upstream version
* autopkgtest: Restrictions: allow-stderr
Closes: #895176
* Point Vcs fields to salsa.debian.org
......@@ -9,8 +10,12 @@ tifffile (20170929-2) UNRELEASED; urgency=medium
* The package does not really provide a Python module for inclusion into
other projects. Thus the binary is renamed to tifffile. It was
ported to Python3 by upstream - thus the Python3 Build-Depends
* Point watch file to PyPI
Closes: #912661
* Standards-Version: 4.2.1
* Use --buildsystem=pybuild
-- Andreas Tille <tille@debian.org> Mon, 09 Apr 2018 08:51:41 +0200
-- Andreas Tille <tille@debian.org> Sat, 01 Dec 2018 07:11:47 +0100
tifffile (20170929-1) unstable; urgency=medium
......
......@@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 11~),
dh-python,
python3-all-dev,
python3-numpy (>= 1:1.7.1)
Standards-Version: 4.1.4
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/tifffile
Vcs-Git: https://salsa.debian.org/med-team/tifffile.git
Homepage: http://www.lfd.uci.edu/~gohlke/
......@@ -19,7 +19,7 @@ Depends: ${python3:Depends},
${misc:Depends},
${shlibs:Depends},
python3
Recommends: python3-matplotlib (>= 1.3)
Recommends: python3-matplotlib
Conflicts: python-tifffile
Provides: ${python3:Provides}
Replaces: python-tifffile
......
Author: Mathieu Malaterre <mathieu.malaterre@gmail.com>
Description: Add setup.py to simplify building Python target
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,23 @@
+"""A Python script to build the _tifffile extension module.
+
+Usage:: ``python setup.py build_ext --inplace``
+
+"""
+
+from distutils.core import setup, Extension
+import numpy
+
+setup(name='_tifffile',
+ version="2013.11.03",
+ description="Reads image and meta-data from many bio-scientific formats such as plain TIFF, BigTIFF, OME-TIFF, STK, LSM, NIH, ImageJ, GEL, and FluoView files",
+ keywords="tiff,stk,lsm",
+ author="Christoph Gohlke",
+ url="http://www.lfd.uci.edu/~gohlke/",
+ license="BSD",
+ py_modules=['tifffile'],
+ ext_modules=[
+ Extension(
+ '_tifffile', ['tifffile.c'],
+ include_dirs=[numpy.get_include()]
+ )],
+)
......@@ -8,7 +8,7 @@ endif
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with python3
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
dh_numpy
......
version=3
version=4
opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/;s/^(\d{4}).(\d\d).(\d\d)$/$1$2$3/ \
https://github.com/malaterre/tifffile/tags .*/(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
https://pypi.python.org/simple/tifffile .*/tifffile-@ANY_VERSION@@ARCHIVE_EXT@#sha256=.*
#!/bin/sh
VERSIONOLD=`grep "^:Version" tifffile.py`
#wget -c http://www.lfd.uci.edu/~gohlke/code/tifffile.py.html
curl -s -o tifffile.py.html http://www.lfd.uci.edu/~gohlke/code/tifffile.py.html
#wget -c http://www.lfd.uci.edu/~gohlke/code/tifffile.c.html
curl -s -o tifffile.c.html http://www.lfd.uci.edu/~gohlke/code/tifffile.c.html
links -dump tifffile.py.html > tifffile.py
sed -i -e 's/^ //g' tifffile.py
links -dump tifffile.c.html > tifffile.c
sed -i -e 's/^ //g' tifffile.c
rm *.html
VERSION=`grep "^:Version" tifffile.py`
echo $VERSIONOLD
echo $VERSION
TAG=`echo $VERSION | cut -d' ' -f2`
if [ "$VERSION" != "$VERSIONOLD" ]; then
echo "Different"
echo "TAG: $TAG"
git commit -a -m"$VERSION"
git tag $TAG
git push --all
git push --tags
fi
[egg_info]
tag_build =
tag_date = 0
# -*- coding: utf-8 -*-
# tifffile/setup.py
"""Tifffile package setuptools script."""
import sys
import re
from setuptools import setup
buildnumber = ''
imagecodecs = 'imagecodecs>=2018.11.8'
with open('tifffile/tifffile.py') as fh:
code = fh.read()
version = re.search(r"__version__ = '(.*?)'", code).groups()[0]
version += ('.' + buildnumber) if buildnumber else ''
description = re.search(r'"""(.*)\.[\r\n?|\n]', code).groups()[0]
readme = re.search(r'[\r\n?|\n]{2}"""(.*)"""[\r\n?|\n]{2}from', code,
re.MULTILINE | re.DOTALL).groups()[0]
license = re.search(r'(# Copyright.*?[\r\n?|\n])[\r\n?|\n]+""', code,
re.MULTILINE | re.DOTALL).groups()[0]
readme = '\n'.join([description, '=' * len(description)]
+ readme.splitlines()[1:])
license = license.replace('# ', '').replace('#', '')
if 'sdist' in sys.argv:
with open('LICENSE', 'w') as fh:
fh.write(license)
with open('README.rst', 'w') as fh:
fh.write(readme)
setup(
name='tifffile',
version=version,
description=description,
long_description=readme,
author='Christoph Gohlke',
author_email='cgohlke@uci.edu',
url='https://www.lfd.uci.edu/~gohlke/',
license='BSD',
packages=['tifffile'],
python_requires='>=2.7',
install_requires=[
'numpy>=1.11.3',
'pathlib;python_version=="2.7"',
'enum34;python_version=="2.7"',
'futures;python_version=="2.7"',
# require imagecodecs on Windows only
imagecodecs + ';platform_system=="Windows"',
],
extras_require={
'all': ['matplotlib>=2.2', imagecodecs],
},
tests_require=['pytest', imagecodecs],
entry_points={
'console_scripts': [
'tifffile = tifffile:main',
'lsm2bin = tifffile.lsm2bin:main'
]},
platforms=['any'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)
# -*- coding: utf-8 -*-
# setup_tiffile.py
"""Tiffile module setuptools script."""
import re
from setuptools import setup
with open('tifffile/tifffile.py') as fh:
code = fh.read()
version = re.search(r"__version__ = '(.*?)'", code).groups()[0]
setup(
name='tiffile',
version=version,
description='The tiffile package is deprecated. '
'Please use the tifffile package instead.',
author='Christoph Gohlke',
author_email='cgohlke@uci.edu',
url='https://www.lfd.uci.edu/~gohlke/',
license='BSD',
py_modules=['tiffile'],
install_requires=['tifffile'],
platforms=['any'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)
# -*- coding: utf-8 -*-
# tifffile/tests/conftest.py
collect_ignore = ['_tmp', 'data']
def pytest_report_header(config):
try:
import numpy
import tifffile
import imagecodecs
return 'versions: tifffile-%s, imagecodecs-%s, numpy-%s' % (
tifffile.__version__, imagecodecs.__version__, numpy.__version__)
except Exception:
pass
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
LICENSE
MANIFEST.in
README.rst
setup.py
setup_tiffile.py
tiffile.py
tests/conftest.py
tests/test_tifffile.py
tifffile/__init__.py
tifffile/__main__.py
tifffile/lsm2bin.py
tifffile/tifffile.py
tifffile/tifffile_geodb.py
tifffile.egg-info/PKG-INFO
tifffile.egg-info/SOURCES.txt
tifffile.egg-info/dependency_links.txt
tifffile.egg-info/entry_points.txt
tifffile.egg-info/requires.txt
tifffile.egg-info/top_level.txt
\ No newline at end of file