[segyio] 36/376: Added Python packaging

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

jokva-guest pushed a commit to branch debian
in repository segyio.

commit fd5bc13549c0b291efdd41c3d14242e29630e6bf
Author: jeanpaul <jpb at prador.net>
Date:   Sat Oct 15 10:41:28 2016 +0200

    Added Python packaging
---
 MANIFEST.in |  3 +++
 setup.py    | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 0000000..f7abb48
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,3 @@
+include License.md
+include README.md
+recursive-include src *.h
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..af0ab64
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,82 @@
+#!/usr/bin/env python
+
+from distutils.core import setup, Extension
+
+_segyio = Extension('segyio._segyio',
+                    sources=['python/segyio/_segyio.c', 'src/segyio/segy.c', 'src/spec/segyspec.c'],
+                    include_dirs=['src'])
+
+long_description = """
+=======
+SEGY IO
+=======
+
+Introduction
+------------
+
+Segyio is a small LGPL licensed C library for easy interaction with SEG Y
+formatted seismic data, with language bindings for Python and Matlab. Segyio is
+an attempt to create an easy-to-use, embeddable, community-oriented library for
+seismic applications. Features are added as they are needed; suggestions and
+contributions of all kinds are very welcome.
+
+Feature summary
+---------------
+ * A low-level C interface with few assumptions; easy to bind to other
+   languages.
+ * Read and write binary and textual headers.
+ * Read and write traces, trace headers.
+ * Easy to use and native-feeling python interface with numpy integration.
+
+Project goals
+-------------
+
+Segyio does necessarily attempt to be the end-all of SEG-Y interactions;
+rather, we aim to lower the barrier to interacting with SEG-Y files for
+embedding, new applications or free-standing programs.
+
+Additionally, the aim is not to support the full standard or all exotic (but
+correctly) formatted files out there. Some assumptions are made, such as:
+
+ * All traces in a file are assumed to be of the same sample size.
+ * It is assumed all lines have the same number of traces.
+
+The writing functionality in Segyio is largely meant to *modify* or adapt
+files. A file created from scratch is not necessarily a to-spec SEG-Y file, as
+we only necessarily write the header fields segyio needs to make sense of the
+geometry. It is still highly recommended that SEG-Y files are maintained and
+written according to specification, but segyio does not mandate this.
+
+"""
+
+setup(name='SegyIO',
+      version='1.0.2',
+      description='IO library for SEG-Y files',
+      long_description=long_description,
+      author='Statoil ASA',
+      author_email='ert at statoil.com',
+      url='https://github.com/Statoil/SegyIO',
+      packages=['segyio'],
+      package_dir={'': 'python'},
+      package_data={'': ['License.md']},
+      license='LGPL-3.0',
+      ext_modules=[_segyio],
+      platforms='any',
+      requires=['numpy'],
+      install_requires=['numpy'],
+      classifiers=[
+          'Development Status :: 5 - Production/Stable',
+          'Environment :: Other Environment',
+          'Intended Audience :: Developers',
+          'Intended Audience :: Science/Research',
+          'License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)',
+          'Natural Language :: English',
+          'Operating System :: OS Independent',
+          'Programming Language :: C',
+          'Programming Language :: Python :: 2.7',
+          'Topic :: Scientific/Engineering',
+          'Topic :: Scientific/Engineering :: Physics',
+          'Topic :: Software Development :: Libraries',
+          'Topic :: Utilities'
+      ]
+      )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git



More information about the debian-science-commits mailing list