diff options
author | felics@felics-tablet | 2015-06-29 13:16:23 +0200 |
---|---|---|
committer | felics@felics-tablet | 2015-06-29 13:16:23 +0200 |
commit | 0f8cf8b8d5ea0617a0e17e30381b182b1fffec7f (patch) | |
tree | fcc1a285dffc13234665a997f732417cea1b9b25 | |
download | aur-0f8cf8b8d5ea0617a0e17e30381b182b1fffec7f.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | website.html | 434 |
3 files changed, 488 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..078dd78bd50c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-fortranformat + pkgdesc = Python module to read and write data with fortran format strings. + pkgver = 0.2.3 + pkgrel = 5 + url = https://pypi.python.org/pypi/fortranformat + arch = any + license = MIT + source = http://pypi.python.org/packages/source/f/fortranformat/fortranformat-0.2.3.tar.gz + source = website.html + md5sums = d78c5a320fedcbdf21f823cd18e28ac0 + md5sums = 444b8a8a633ac4db159165912e17e714 + sha512sums = 4f4470a58684143e95a53fedf1f8a925a9bb27eb472eae480aeedc59fa45924b8bde5b173795183e9d1c4ce8c211a62a7e401a90c11dd29e958793723dc94584 + sha512sums = b527d3fa53bea7abae6600da11fb271901940f8cb93a9a84237a6de548415c1f470b387d75fe76968480a148e11df4ec5be8e3e8cbc45dc94deadedab4ee59dd + +pkgname = python-fortranformat + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..63d8a128a46e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: dreieck <felix )dot( becker (at( zih )dot) tu-dresden |dot| de>. + +pkgname="python-fortranformat" +pkgver="0.2.3" +pkgrel="5" +pkgdesc="Python module to read and write data with fortran format strings." +arch=('any') +url='https://pypi.python.org/pypi/fortranformat' +license=('MIT') + +_srcfile="fortranformat-${pkgver}.tar.gz" + +source=("http://pypi.python.org/packages/source/f/fortranformat/${_srcfile}" "website.html") + +md5sums=('d78c5a320fedcbdf21f823cd18e28ac0' '444b8a8a633ac4db159165912e17e714') +sha512sums=('4f4470a58684143e95a53fedf1f8a925a9bb27eb472eae480aeedc59fa45924b8bde5b173795183e9d1c4ce8c211a62a7e401a90c11dd29e958793723dc94584' 'b527d3fa53bea7abae6600da11fb271901940f8cb93a9a84237a6de548415c1f470b387d75fe76968480a148e11df4ec5be8e3e8cbc45dc94deadedab4ee59dd') + +build() +{ + _extractdir="${srcdir}/fortranformat-${pkgver}" + + cd "${_extractdir}" + python setup.py build +} + +package() +{ + _extractdir="${srcdir}/fortranformat-${pkgver}" + + mkdir -p "usr/share/licenses/${pkgname}" + cd "${_extractdir}" + python setup.py install --prefix=/usr --root "${pkgdir}" + + _docdir="usr/share/doc/${pkgname}" + mkdir -p "${pkgdir}/${_docdir}" + cp -v "${srcdir}/website.html" "${pkgdir}/${_docdir}/usage.html" +} + diff --git a/website.html b/website.html new file mode 100644 index 000000000000..e51be6c57bc1 --- /dev/null +++ b/website.html @@ -0,0 +1,434 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + + <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + + <meta content="text/html; charset=utf-8" http-equiv="content-type"/> + <base href="https://pypi.python.org/pypi/fortranformat"/> + <title>fortranformat 0.2.3 : Python Package Index</title> + <meta content="fortran,io,interface,format"/> + <meta content="Mimics Fortran textual IO in Python"/> + <link rel="alternate" type="application/rss+xml" + title="RSS: 40 latest updates" + href="https://pypi.python.org/pypi?:action=rss"/> + <link rel="alternate" type="application/rss+xml" + title="RSS: 40 newest packages" + href="https://pypi.python.org/pypi?:action=packages_rss"/> + <link media="screen" type="text/css" + id="screen-switcher-stylesheet" + rel="stylesheet" + href="/styles/screen-switcher-default.css"/> + <link media="screen" type="text/css" rel="stylesheet" + href="/styles/netscape4.css"/> + <link media="print" type="text/css" rel="stylesheet" + href="/styles/print.css"/> + <link media="screen" type="text/css" + rel="alternate stylesheet" title="large text" + href="/styles/largestyles.css"/> + <link media="screen" type="text/css" + rel="alternate stylesheet" + title="default fonts" + href="/styles/defaultfonts.css"/> + <link rel="stylesheet" media="screen" href="/css/docutils.css" type="text/css"/> + <link rel="stylesheet" media="screen" href="/css/pygments.css" type="text/css"/> + + <!-- allow pypi to override the standard pydotorg/docutils/etc. styles --> + <link rel="stylesheet" href="/css/pypi.css" type="text/css"/> + <link media="screen" rel="stylesheet" href="/css/pypi-screen.css" type="text/css"/> + + + <meta name="keywords" content="fortran,io,interface,format"/> + <meta name="description" + content="Mimics Fortran textual IO in Python"/> + <link rel="meta" title="DOAP" type="application/rdf+xml" + href="/pypi?:action=doap&name=fortranformat&version=0.2.3"/> + <style type="text/css"> + table.form th {white-space: pre;} + </style> + + + <style type="text/css"> + </style> + </head> + <body> + + + <!-- Logo --> + <h1 id="logoheader"> + <a accesskey="1" href="http://www.python.org" id="logolink"> + + <img src="/python-3.png" alt="homepage" border="0" id="logo"/> + + + </a> + </h1> + <!-- Skip to Navigation --> + <div class="skiptonav"><a accesskey="2" href="#left-hand-navigation"><img + alt="skip to navigation" border="0" id="skiptonav" + src="/images/trans.gif"/></a></div> + <div class="skiptonav"><a accesskey="3" href="#content-body"><img + alt="skip to content" border="0" id="skiptocontent" + src="/images/trans.gif"/></a></div> + <!-- Utility Menu --> + + <div id="utility-menu"> + <!-- Search Box --> + <div id="searchbox"> + <form id="searchform" method="get" + name="searchform" action="/pypi"> + <input type="hidden" name=":action" value="search"/> + <div id="search"> + <input class="input-text" id="term" name="term"/> + <input class="input-button" type="submit" name="submit" value="search" id="submit"/> + </div> + </form> + </div> +<!-- XXX: reinstate this <div id="screen-switcher"></div> --> + </div> + <div id="left-hand-navigation"> + + <!-- Main Menu NEED LEVEL TWO HEADER AND FOOTER --> + <div id="menu"> + <ul class="level-one"> + <li class="selected"> + <a class="selected" href="/pypi">Package Index</a> + + <ul class="level-two"> + + + <li class=""><a class="" href="/pypi?%3Aaction=browse">Browse packages</a></li> + + + <li class=""><a class="" href="/pypi?%3Aaction=submit_form">Package submission</a></li> + + + <li class=""><a class="" href="/pypi?%3Aaction=list_classifiers">List trove classifiers</a></li> + + + <li class=""><a class="" href="/pypi?%3Aaction=index">List packages</a></li> + + + <li class=""><a class="" href="/pypi?%3Aaction=rss">RSS (latest 40 updates)</a></li> + + + <li class=""><a class="" href="/pypi?%3Aaction=packages_rss">RSS (newest 40 packages)</a></li> + + <li><a href="/pypi?:action=browse&c=533&show=all">Python 3 Packages</a></li> + <li><a href="http://wiki.python.org/moin/CheeseShopTutorial">PyPI Tutorial</a></li> + <li><a href="/security">PyPI Security</a></li> + <li><a href="http://sourceforge.net/tracker/?group_id=66150&atid=513504">PyPI Support</a></li> + <li><a href="http://sourceforge.net/tracker/?group_id=66150&atid=513503">PyPI Bug Reports</a></li> + <li><a href="http://www.python.org/sigs/catalog-sig/">PyPI Discussion</a></li> + <li><a href="http://wiki.python.org/moin/CheeseShopDev">PyPI Developer Info</a></li> + </ul> + + </li> + + + + + <li class=""><a href="http://www.python.org/about" class="" title="About The Python Language">About</a> + </li><li class=""><a href="http://www.python.org/news" class="" title="">News</a> + </li><li class=""><a href="http://www.python.org/doc" class="" title="">Documentation</a> + </li><li class=""><a href="http://www.python.org/download" title="">Download</a> + + + </li><li class=""><a href="http://www.python.org/community" class="" title="">Community</a> + </li><li class=""><a href="http://www.python.org/psf" class="" title="Python Software Foundation">Foundation</a> + </li><li class=""><a href="http://www.python.org/dev" class="" title="Python Core Language Development">Core Development</a> + </li><li class=""><a href="http://www.python.org/links" class="" title="">Links</a> + </li> + </ul> + </div> + + </div> + <div id="content-body"> + <div id="body-main"> + <div id="content"> + + <div id="breadcrumb"> + <a href="/pypi">Package Index</a> + + <span class="breadcrumb-separator">></span> + <a href="/pypi/fortranformat">fortranformat</a> + + + <span class="breadcrumb-separator">></span> + <a href="/pypi/fortranformat/0.2.3">0.2.3</a> + + + </div> + + <div id="document-floating"> + + <div id="document-navigation" style="overflow-y: auto; max-height: 15em; overflow-x: hidden;"> + + <h4>Not Logged In</h4> + + <ul> + + <li><a href="/pypi?%3Aaction=login">Login</a></li> + <li><a href="/pypi?%3Aaction=register_form">Register</a></li> + <li><a href="/pypi?%3Aaction=forgotten_password_form">Lost Login?</a></li> + <li>Use <a href="/pypi?:action=openid">OpenID</a> + + <a style="border: none;" + href="/pypi?:action=login&provider=Google"><img + width="16" height="16" + src="https://www.google.com/favicon.ico" alt="Google" + title="Google"/></a> + + + <a style="border: none;" + href="/pypi?:action=login&provider=myOpenID"><img + width="16" height="16" + src="https://www.myopenid.com/favicon.ico" + alt="myOpenID" title="myOpenID"/></a> + + + <a style="border: none;" + href="/pypi?:action=login&provider=Launchpad"><img + width="16" height="16" + src="https://launchpad.net/@@/launchpad.png" + alt="Launchpad" title="Launchpad"/></a> + + </li> + </ul> + + + + + + </div> + </div> + + + + <div class="section"> + <h1>fortranformat 0.2.3</h1> + + +<div id="download-button"> + + <a class="button green" style="float:right;" + href="https://pypi.python.org/packages/source/f/fortranformat/fortranformat-0.2.3.tar.gz">Download<br/> + <span style="font-size: 75%">fortranformat-0.2.3.tar.gz</span> + </a> + + +</div> + +<p style="font-style: italic">Mimics Fortran textual IO in Python</p> + + + + + + + + +<p>Generates text from a Python list of variables or will read a line of text into Python variables according to the FORTRAN format statement passed.</p> +<p>Licensed under the MIT license</p> +<p>The library is extensively unit-tested (but not yet extensively user-tested, <a class="reference external" href="https://bitbucket.org/brendanarnold/py-fortranformat/issues">please report bugs</a>!) against the Intel FORTRAN compiler on a Linux platform. Differences between platforms/compilers are generally minor.</p> +<p>To read Fortran records,:</p> +<blockquote> +<pre class="doctest-block"> +>>> from fortranformat import FortranRecordReader +>>> header_line = FortranRecordReader('(A15, A15, A15)') +>>> header_line.read(' x y z') + [' x', ' y', ' z'] +>>> line = FortranRecordReader('(3F15.3)') +>>> line.read(' 1.000 0.000 0.500') + [1.0, 0.0, 0.5] +>>> line.read(' 1.100 0.100 0.600') + [1.1, 0.1, 0.6] +</pre> +</blockquote> +<p>To write Fortran records,:</p> +<blockquote> +<pre class="doctest-block"> +>>> from fortranformat import FortranRecordWriter +>>> header_line = FortranRecordWriter('(A15, A15, A15)') +>>> header_line.write(['x', 'y', 'z']) + ' x y z' +>>> line = FortranRecordWriter('(3F15.3)') +>>> line.write([1.0, 0.0, 0.5]) + ' 1.000 0.000 0.500' +>>> line.write([1.1, 0.1, 0.6]) + ' 1.100 0.100 0.600' +</pre> +</blockquote> + + +<a name="downloads"> </a> +<table class="list" style="margin-bottom: 10px;"> +<tr> + <th>File</th> + <th>Type</th> + <th>Py Version</th> + <th>Uploaded on</th> + <th style="text-align: right;">Size</th> + <th style="text-align: right;"># downloads</th> +</tr> + +<tr class="odd"> + + <td> + <span style="white-space: nowrap;"> + <a href="https://pypi.python.org/packages/source/f/fortranformat/fortranformat-0.2.3.tar.gz#md5=d78c5a320fedcbdf21f823cd18e28ac0">fortranformat-0.2.3.tar.gz</a> + (<a title="MD5 Digest" + href="/pypi?:action=show_md5&digest=d78c5a320fedcbdf21f823cd18e28ac0">md5</a>) + </span> + + </td> + <td style="white-space: nowrap;"> + Source + </td> + <td> + + </td> + <td>2011-09-08</td> + <td style="text-align: right;">18KB</td> + <td style="text-align: right;">1000</td> + +</tr> + +<tr><td id="last" colspan="6"/></tr> + </table> + +<ul class="nodot"> + <li> + <strong>Author:</strong> + <span>Brendan Arnold</span> + </li> + + + + + +<!-- The <th> elements below are a terrible terrible hack for setuptools --> + <li> + <strong>Home Page:</strong> + <!-- <th>Home Page --> + <a href="http://bitbucket.org/brendanarnold/py-fortranformat">http://bitbucket.org/brendanarnold/py-fortranformat</a> + </li> + + + + + <li> + <strong>Download URL:</strong> + <!-- <th>Download URL --> + <a href="https://bitbucket.org/brendanarnold/py-fortranformat/downloads/fortranformat-0.2.3.tar.gz">https://bitbucket.org/brendanarnold/py-fortranformat/downloads/fortranformat-0.2.3.tar.gz</a> + </li> + + + <li> + <strong>Keywords:</strong> + <span>fortran,io,interface,format</span> + </li> + + + + + +<!-- TODO: add link to products in follow dependencies... --> + + + + + <li> + <strong>Categories</strong> + <ul class="nodot"> + <li> + <a href="/pypi?:action=browse&c=4">Development Status :: 4 - Beta</a> + </li> + <li> + <a href="/pypi?:action=browse&c=8">Environment :: Console</a> + </li> + <li> + <a href="/pypi?:action=browse&c=30">Intended Audience :: Developers</a> + </li> + <li> + <a href="/pypi?:action=browse&c=40">Intended Audience :: Science/Research</a> + </li> + <li> + <a href="/pypi?:action=browse&c=69">License :: OSI Approved :: MIT License</a> + </li> + <li> + <a href="/pypi?:action=browse&c=104">Natural Language :: English</a> + </li> + <li> + <a href="/pypi?:action=browse&c=156">Operating System :: OS Independent</a> + </li> + <li> + <a href="/pypi?:action=browse&c=193">Programming Language :: Fortran</a> + </li> + <li> + <a href="/pypi?:action=browse&c=527">Programming Language :: Python :: 2</a> + </li> + <li> + <a href="/pypi?:action=browse&c=533">Programming Language :: Python :: 3</a> + </li> + <li> + <a href="/pypi?:action=browse&c=385">Topic :: Scientific/Engineering</a> + </li> + <li> + <a href="/pypi?:action=browse&c=416">Topic :: Software Development :: Interpreters</a> + </li> + <li> + <a href="/pypi?:action=browse&c=492">Topic :: Text Processing :: General</a> + </li> + </ul> + </li> + + + + + + + + + + + + + + + <li> + <strong>Package Index Owner:</strong> + <span>brendanarnold</span> + </li> + + + + <li> + <strong><a href="http://usefulinc.com/doap">DOAP</a> record:</strong> + <a href="/pypi?:action=doap&name=fortranformat&version=0.2.3">fortranformat-0.2.3.xml</a> + </li> + +</ul> + + + + + + </div> + + + </div> + <div id="footer"><div id="credits"> + <a href="http://www.python.org/about/website">Website maintained by the Python community</a><br/> + <a href="http://osuosl.org/" title="Web and email hosting provided by OSU OSL">hosting by OSU OSL</a> / + <a href="http://www.timparkin.co.uk/" title="Design by Tim Parkin, Yorkshire man, photographer and developer">design by Tim Parkin</a> + </div> + Copyright © 1990-2013, <a href="http://www.python.org/psf">Python Software Foundation</a><br/> + <a href="http://www.python.org/about/legal">Legal Statements</a> + + </div> + </div> + </div> + </body> + </html> + |