From 23610d43f6fa47b5d8a208153581d29e4bfb5ac3 Mon Sep 17 00:00:00 2001 From: Phil Elson Date: Sat, 2 Jun 2018 08:49:00 +0100 Subject: [PATCH] Rename cf_units to cf-units (#113) * Updated name to cf-units. * Updated the copyright and README/INSTALL. Copyright updated automatically with: ``` LC_ALL=C find . \ -path ./.git -prune \ -o -type f -name "*" \ -exec echo {} \; \ -exec sh -c 'perl -pi -e "s|This file is part of cf-units|This file is part of cf-units|g" {};' \; \ -exec sh -c 'perl -pi -e "s|cf-units is free software|cf-units is free software|g" {};' \; \ -exec sh -c 'perl -pi -e "s|cf-units is distributed in|cf-units is distributed in|g" {};' \; \ -exec sh -c 'perl -pi -e "s|along with cf-units|along with cf-units|g" {};' \; ``` --- INSTALL | 34 +++++++------------ README.md | 30 ++++++++-------- cf_units/__init__.py | 8 ++--- cf_units/_udunits2.pxd | 8 ++--- cf_units/_udunits2.pyx | 8 ++--- cf_units/config.py | 8 ++--- cf_units/tests/__init__.py | 8 ++--- cf_units/tests/integration/__init__.py | 10 +++--- .../test__num2date_to_nearest_second.py | 8 ++--- cf_units/tests/integration/test_date2num.py | 8 ++--- cf_units/tests/test_coding_standards.py | 16 ++++----- cf_units/tests/test_unit.py | 8 ++--- cf_units/tests/unit/__init__.py | 10 +++--- cf_units/tests/unit/test__udunits2.py | 8 ++--- cf_units/tests/unit/unit/test_Unit.py | 8 ++--- cf_units/tests/unit/unit/test_as_unit.py | 10 +++--- cf_units/util.py | 10 +++--- doc/source/conf.py | 10 +++--- doc/source/index.rst | 2 +- setup.py | 4 +-- 20 files changed, 104 insertions(+), 112 deletions(-) diff --git a/INSTALL b/INSTALL index eca1593c..11fbd379 100644 --- a/INSTALL +++ b/INSTALL @@ -1,20 +1,20 @@ -You can either install cf_units using the conda package manager or from source. +You can either install cf-units using the conda package manager or from source. Installing using conda ---------------------- -cf_units is available using conda for the following platforms: +cf-units is available using conda for the following platforms: * Linux 32-bit and 64-bit, * Mac OSX 64-bit, and * Windows 32-bit and 64-bit. -To install cf_units using conda, you must first download and install conda, +To install cf-units using conda, you must first download and install conda, for example from http://conda.pydata.org/miniconda.html. -Once conda is installed, you can install cf_units using conda on any platform with +Once conda is installed, you can install cf-units using conda on any platform with the following command:: - conda install -c conda-forge cf_units + conda install -c conda-forge cf-units Further documentation on using conda and the features it provides can be found at http://conda.pydata.org/docs/intro.html. @@ -23,13 +23,13 @@ at http://conda.pydata.org/docs/intro.html. Installing from source ---------------------- -The latest cf_units source release is available from -https://github.com/SciTools/cf_units. +The latest cf-units source release is available from +https://github.com/SciTools/cf-units. -cf_units makes use of Numpy, netCDF4-python, Cython, and Unidata udunits2. +cf-units makes use of Numpy, netCDF4-python, Cython, and Unidata udunits2. These dependencies must be in place before you can successfully install -cf_units. Once you have satisfied the requirements detailed below, -extract the cf_units source package, cd to the new directory, and enter:: +cf-units. Once you have satisfied the requirements detailed below, +extract the cf-units source package, cd to the new directory, and enter:: python setup.py install @@ -43,7 +43,7 @@ can be provided as per-usual at build_ext phase:: Build and runtime requirements ============================== These are external packages which you will need to have installed before -installing and running cf_units. +installing and running cf-units. Many of these packages are available in Linux package managers such as aptitude and yum. For example, it may be possible to install @@ -56,7 +56,7 @@ you may need to install the development packages (look for a "-dev" postfix) in addition to the core packages. python 2.7 or later (http://www.python.org/) - cf_units requires Python 2.7 or later, but is not currently compatible with + cf-units requires Python 2.7 or later, but is not currently compatible with Python 3. numpy 1.6 or later (http://numpy.scipy.org/) @@ -76,7 +76,7 @@ setuptools 0.6c11 or later (http://pypi.python.org/pypi/setuptools/) Optional '''''''' -These packages are required for the full cf_units test suite to run. +These packages are required for the full cf-units test suite to run. pep8 1.4.6* (https://pypi.python.org/pypi/pep8) Python package for software testing. @@ -99,11 +99,3 @@ specify a non-standard location for your udunits xml database:: An example configuration file is available in ``cf_units/etc/site.cfg.template``. See :py:func:`cf_units.config` for further configuration options. - -Packaged distributions -====================== -The Enthought Python Distribution (EPD) -http://www.enthought.com/products/epd.php for Windows, OS X or -Redhat provides some of the dependencies for cf_units as does `Python (x, y) -http://www.pythonxy.com/ which tends to be updated a -bit more frequently. diff --git a/README.md b/README.md index fd955d57..9a66ca39 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- cf_units + cf-units

@@ -9,20 +9,20 @@ conventions.

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