From ede2d4b149872f916d254c271920c0631ddf8f97 Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Mon, 21 May 2018 17:40:30 +0100 Subject: [PATCH] Updated the readme to use markdown. Added an example to the readme. --- README.md | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.rst | 34 --------------------- setup.py | 5 ++-- 3 files changed, 90 insertions(+), 37 deletions(-) create mode 100644 README.md delete mode 100644 README.rst diff --git a/README.md b/README.md new file mode 100644 index 00000000..1f83f3b8 --- /dev/null +++ b/README.md @@ -0,0 +1,88 @@ +

+ cf_units +

+ +

+Units of measure as defined by the Climate and Forecast (CF) metadata +conventions. +

+ +

+ + +conda-forge downloads + +Latest version + +Commits since last release + +# contributors + +Travis-CI + +

+
+ +# Table of contents + + + + + +- [Overview](#overview) + - [Example](#example) +- [Get in touch](#get-in-touch) +- [License and copyright](#license-and-copyright) + + + +## Overview + +Units of measure as required by the Climate and Forecast (CF) metadata +conventions. + +Provision of a wrapper class to support Unidata/UCAR UDUNITS-2 library, and the +cftime calendar functionality. + +Documentation can be found at . + +### Example + + >>> from cf_units import Unit + >>> km = Unit('kilometers') + >>> m = Unit('meters') + >>> m.convert(1500, km) + 1.5 + +## Get in touch + +- Questions, ideas, general discussion or announcements + of related projects use the + [Google Group](https://groups.google.com/forum/#!forum/scitools-iris). +- Report bugs, suggest features or view the source code on + [GitHub](https://github.com/SciTools/cf_units). + +## License and copyright + +Cartopy is licensed under GNU Lesser General Public License (LGPLv3). + +Development occurs on GitHub at , with a +contributor's license agreement (CLA) that can be found at +. + +(C) British Crown Copyright, Met Office diff --git a/README.rst b/README.rst deleted file mode 100644 index d18e5c76..00000000 --- a/README.rst +++ /dev/null @@ -1,34 +0,0 @@ -cf\_units -========= - -|Travis|_ |Coveralls|_ - -\(C) British Crown Copyright 2015 - 2018, Met Office - -Introduction ------------- -Units of measure as required by the Climate and Forecast (CF) metadata -conventions. - -Provision of a wrapper class to support Unidata/UCAR UDUNITS-2, and the -netcdftime calendar functionality. - - -Code ----- -cf_units is licenced under the GNU Lesser General Public License (LGPLv3). -The full text of the licence can be found in the COPYING and COPYING.LESSER -files. - -See also --------- - -* Development occurs at https://github.com/SciTools/cf_units. -* Documentation for cf_units can be found at http://scitools.org.uk/cf_units/index.html. -* The library wrapped by cf_units: `UDUNITS-2 `_. - -.. |Travis| image:: https://travis-ci.org/SciTools/cf_units.svg?branch=master -.. _Travis: https://travis-ci.org/SciTools/cf_units - -.. |Coveralls| image:: https://coveralls.io/repos/github/SciTools/cf_units/badge.svg?branch=master -.. _Coveralls: https://coveralls.io/github/SciTools/cf_units?branch=master diff --git a/setup.py b/setup.py index 76325fd1..b893f087 100644 --- a/setup.py +++ b/setup.py @@ -47,8 +47,6 @@ def read(*parts): libraries=['udunits2'], **extra_extension_args) -long_description = '{}'.format(read('README.rst')) - cmdclass = {'build_ext': build_ext} cmdclass.update(versioneer.get_cmdclass()) @@ -62,7 +60,8 @@ def read(*parts): url='https://github.com/SciTools/{}'.format(NAME), author='Met Office', description='Units of measure as required by the Climate and Forecast (CF) metadata conventions', - long_description='{}'.format(read('README.rst')), + long_description='{}'.format(read('README.md')), + long_description_content_type='text/markdown', packages=find_packages(), package_data={'cf_units': list(file_walk_relative('cf_units/etc', remove='cf_units/'))},