[yt-svn] commit/yt: 6 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon May 15 10:28:27 PDT 2017


6 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/0f14d29ed891/
Changeset:   0f14d29ed891
User:        MatthewTurk
Date:        2017-05-12 21:39:45+00:00
Summary:     Adding some logos
Affected #:  2 files

diff -r 9921b57c74edb63adf0c6faecfe158b2d84eaab0 -r 0f14d29ed891faa870886f149dde173dfc23584d doc/source/_static/yt_logo.png
Binary file doc/source/_static/yt_logo.png has changed

diff -r 9921b57c74edb63adf0c6faecfe158b2d84eaab0 -r 0f14d29ed891faa870886f149dde173dfc23584d doc/source/_static/yt_logo.svg
--- /dev/null
+++ b/doc/source/_static/yt_logo.svg
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 416.7 360" style="enable-background:new 0 0 416.7 360;" xml:space="preserve">
+<style type="text/css">
+	.st0{opacity:0.55;fill:#00A3BB;}
+	.st1{opacity:0.55;fill:#F26222;}
+	.st2{opacity:0.55;}
+	.st3{fill:#EF3A24;}
+	.st4{fill:#EFE929;}
+	.st5{fill:#72BF44;}
+	.st6{fill:#020202;}
+</style>
+<g>
+	<path class="st0" d="M397.8,290c-45.6,69.6-187.6,17.9-247.1-21.1S-6.7,118.4,38.9,48.8S206.8,44.1,266.2,83S443.4,220.4,397.8,290
+		z"/>
+	<path class="st1" d="M373.6,276.6c-36,54.9-155.7,9-206.3-24.1S31.9,126.4,67.9,71.5s139.7,1.1,190.3,34.2S409.6,221.7,373.6,276.6
+		z"/>
+	<g class="st2">
+		<path class="st3" d="M250.9,134.4c89.1,67.2,125,135.2,83,147.3c-27.6,8-87.2-1.2-155.6-53.6S68.5,114.7,86,91.8
+			c9.9-12.9,63.6-26.2,97.4-12.3C209.1,90,214.5,107,250.9,134.4z"/>
+		<path class="st4" d="M247.1,139.3c79.3,59.8,111.3,120.3,73.9,131.2c-24.6,7.1-77.6-1.1-138.5-47.7s-97.7-101-82.2-121.3
+			c8.8-11.5,56.7-23.3,86.7-11C210,99.8,214.8,114.9,247.1,139.3z"/>
+		<path class="st5" d="M241.1,147.2c63.6,48,89.2,96.4,59.2,105.1c-19.7,5.7-62.2-0.8-111-38.2s-78.3-80.9-65.8-97.2
+			c7.1-9.2,45.4-18.7,69.4-8.8C211.3,115.5,215.2,127.6,241.1,147.2z"/>
+	</g>
+	<g>
+		<path class="st6" d="M58.7,351c-8.7,0-16.6-0.9-23.7-2.7c-7.1-1.8-14.2-4.4-21.3-8l10.6-25c5.2,2.7,10.3,4.7,15.3,5.9
+			c5,1.2,11,1.8,17.8,1.8c9.5,0,17.6-2.9,24.1-8.6c6.5-5.7,12.9-16.1,19.2-31.1L4.7,72.8h34.8l76.9,176.3l67.9-176.3h33.5L129,291.2
+			c-9,21.8-19,37.2-30.1,46.2C87.9,346.5,74.5,351,58.7,351z"/>
+		<path class="st6" d="M338.4,288c-8.5,0-16.4-1.1-23.7-3.3c-7.4-2.2-13.7-5.7-19-10.4c-5.3-4.8-9.5-11-12.5-18.6
+			c-3-7.6-4.5-16.8-4.5-27.4V100.6h-29.5V72.8h29.5V9h31.5v63.8h67.1v27.8h-67.1v123.2c0,13.1,3.3,22.2,9.8,27.3
+			c6.5,5.2,15.1,7.8,25.8,7.8c5.4,0,10.6-0.5,15.3-1.5c4.8-1,9.9-2.8,15.3-5.4v27c-5.5,3-11.2,5.3-17.4,6.7
+			C353,287.2,346.1,288,338.4,288z"/>
+	</g>
+</g>
+</svg>


https://bitbucket.org/yt_analysis/yt/commits/0d7507bdb57c/
Changeset:   0d7507bdb57c
User:        MatthewTurk
Date:        2017-05-12 21:39:54+00:00
Summary:     Changing README to README.md and updating content
Affected #:  2 files

diff -r 0f14d29ed891faa870886f149dde173dfc23584d -r 0d7507bdb57cef5248adbc6096d217b8345693a2 README
--- a/README
+++ /dev/null
@@ -1,24 +0,0 @@
-Hi there!  You've just downloaded yt, an analysis tool for scientific
-datasets, generated on a variety of data platforms.  It's written in 
-python and heavily leverages NumPy, Matplotlib, SymPy and Cython for a variety
-of tasks.
-
-Full documentation and a user community can be found at:
-
-http://yt-project.org/
-
-http://yt-project.org/doc/
-
-If you have used Python before, and are comfortable with installing packages,
-you should find the setup.py script fairly straightforward: simply execute
-"python setup.py install".
-
-If you would rather a more automated installation, you can use the script
-doc/install_script.sh .  You will have to set the destination directory, and
-there are options available, but it should be straightforward.
-
-For more information on installation, what to do if you run into problems, or 
-ways to help development, please visit our website.
-
-Enjoy!
-

diff -r 0f14d29ed891faa870886f149dde173dfc23584d -r 0d7507bdb57cef5248adbc6096d217b8345693a2 README.md
--- /dev/null
+++ b/README.md
@@ -0,0 +1,85 @@
+# The yt Project
+
+[![Users' Mailing List](https://img.shields.io/badge/Users-List-lightgrey.svg)](http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org/)
+[![Devel Mailing List](https://img.shields.io/badge/Devel-List-lightgrey.svg)](http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org/)
+[![Build Status](https://img.shields.io/travis/yt-project/yt.svg?branch=master)](https://travis-ci.org/yt-project/yt)
+[![Latest Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://yt-project.org/docs/dev/)
+[![Data Hub](https://img.shields.io/badge/data-hub-orange.svg)](https://hub.yt/)
+                
+[![yt logo](doc/source/_static/yt_logo.png "yt logo")](http://yt-project.org/)
+
+yt is an open-source, permissively-licensed python package for analyzing and
+visualizing volumetric data.
+
+yt supports structured, variable-resolution meshes, unstructured meshes, and
+discrete or sampled data such as particles. Focused on driving
+physically-meaningful inquiry, yt has been applied in domains such as
+astrophysics, seismology, nuclear engineering, molecular dynamics, and
+oceanography. Composed of a friendly community of users and developers, we want
+to make it easy to use and develop — we'd love it if you got involved!
+
+We've written a [method
+paper](http://adsabs.harvard.edu/abs/2011ApJS..192....9T) you may be interested
+in; if you use yt in the preparation of a publication, please consider citing
+it.
+
+## Installation
+
+If you're using conda with [conda-forge](http://conda-forge.github.io/), you
+can install the most recent stable version by running:
+
+```
+conda install yt
+```
+
+Or, if you want the latest nightly build, you can manually install from our
+repository:
+
+```
+conda install -c http://use.yt/with_conda yt
+```
+
+To get set up with a development version, you can clone this repository and
+install like this:
+
+```
+git clone https://github.com/yt-project/yt
+cd yt
+python setup.py develop
+```
+
+## Getting Started
+
+yt is designed to provide meaningful analysis of data.  We have some Quickstart
+example notebooks in the repository:
+
+ * [Introduction](doc/source/quickstart/1\)_Introduction.ipynb)
+ * [Data Inspection](doc/source/quickstart/2\)_Data_Inspection.ipynb)
+ * [Simple Visualization](doc/source/quickstart/3\)_Simple_Visualization.ipynb)
+ * [Data Objects and Time Series](doc/source/quickstart/4\)_Data_Objects_and_Time_Series.ipynb)
+ * [Derived Fields and Profiles](doc/source/quickstart/5\)_Derived_Fields_and_Profiles.ipynb)
+ * [Volume Rendering](doc/source/quickstart/6\)_Volume_Rendering.ipynb)
+
+If you'd like to try these online, you can visit our [yt Hub](https://hub.yt/)
+and run a notebook next to some of our example data.
+
+## Contributing
+
+We love contributions!  yt is open source, built on open source, and we'd love
+to have you hang out in our community.
+
+We have developed some [guidelines](CONTRIBUTING.rst) for contributing to yt.
+
+## Resources
+
+We have some community and documentation resources available.
+
+ * Our latest documentation is always at http://yt-project.org/docs/dev/ and it
+   includes recipes, tutorials, and API documentation
+ * The [discussion mailing
+   list](http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org/)
+   should be your first stop for general questions
+ * The [development mailing
+   list](http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org/) is
+   better suited for more development issues
+ * You can also join us on Slack at yt-project.slack.com


https://bitbucket.org/yt_analysis/yt/commits/3abe16c82bac/
Changeset:   3abe16c82bac
User:        MatthewTurk
Date:        2017-05-15 13:32:23+00:00
Summary:     Updating from comments!
Affected #:  2 files

diff -r 0d7507bdb57cef5248adbc6096d217b8345693a2 -r 3abe16c82bac258acd74ab122c9f3e10d5204189 README.md
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
 [![Latest Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://yt-project.org/docs/dev/)
 [![Data Hub](https://img.shields.io/badge/data-hub-orange.svg)](https://hub.yt/)
                 
-[![yt logo](doc/source/_static/yt_logo.png "yt logo")](http://yt-project.org/)
+<a href="http://yt-project.org"><img src="doc/source/_static/yt_logo.png" width="300"></a>
 
 yt is an open-source, permissively-licensed python package for analyzing and
 visualizing volumetric data.
@@ -29,10 +29,16 @@
 can install the most recent stable version by running:
 
 ```
-conda install yt
+conda install -c conda-forge yt
 ```
 
-Or, if you want the latest nightly build, you can manually install from our
+or by doing:
+
+```
+pip install yt
+```
+
+If you want the latest nightly build, you can manually install from our
 repository:
 
 ```
@@ -43,11 +49,31 @@
 install like this:
 
 ```
-git clone https://github.com/yt-project/yt
-cd yt
+git clone https://github.com/yt-project/yt yt-git
+cd yt-git
 python setup.py develop
 ```
 
+To set up yt in a virtualenv (and there are [many good
+reasons](https://packaging.python.org/installing/#creating-virtual-environments)
+to do so!) you can follow this prescription:
+
+```
+# Assuming you have cd'd into yt (or yt-git)
+# It is conventional to create virtualenvs at ~/.virtualenv/
+$ mkdir -p ~/.virtualenv
+# Assuming your version of Python 3 is 3.4 or higher,
+# create a virtualenv named yt
+$ python3 -m venv ~/.virtualenv/yt
+# Activate it
+$ source ~/.virtualenv/yt/bin/activate
+# Make sure you run the latest version of pip
+$ pip install --upgrade pip
+$ pip install -e .
+# Output installed packages
+$ pip freeze
+```
+
 ## Getting Started
 
 yt is designed to provide meaningful analysis of data.  We have some Quickstart
@@ -82,4 +108,5 @@
  * The [development mailing
    list](http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org/) is
    better suited for more development issues
- * You can also join us on Slack at yt-project.slack.com
+ * You can also join us on Slack at yt-project.slack.com ([request an
+   invite](http://yt-project.org/slack.html))

diff -r 0d7507bdb57cef5248adbc6096d217b8345693a2 -r 3abe16c82bac258acd74ab122c9f3e10d5204189 setup.py
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,12 @@
 if os.path.exists('MANIFEST'):
     os.remove('MANIFEST')
 
+try:
+    import pypandoc
+    long_description = pypandoc.convert_file('README.md', 'rst')
+except (ImportError, IOError):
+    with open('README.md') as file:
+        long_description = file.read()
 
 if check_for_openmp() is True:
     omp_args = ['-fopenmp']
@@ -328,7 +334,22 @@
     # subclass setuptools source distribution builder to ensure cython
     # generated C files are included in source distribution.
     # See http://stackoverflow.com/a/18418524/1382869
+    # subclass setuptools source distribution builder to ensure cython
+    # generated C files are included in source distribution and readme
+    # is converted from markdown to restructured text.  See
+    # http://stackoverflow.com/a/18418524/1382869
     def run(self):
+        # Make sure the compiled Cython files in the distribution are
+        # up-to-date
+
+        try:
+            import pypandoc
+        except ImportError:
+            raise RuntimeError(
+                'Trying to create a source distribution without pypandoc. '
+                'The readme will not render correctly on pypi without '
+                'pypandoc so we are exiting.'
+            )
         # Make sure the compiled Cython files in the distribution are up-to-date
         from Cython.Build import cythonize
         cythonize(cython_extensions)
@@ -338,6 +359,7 @@
     name="yt",
     version=VERSION,
     description="An analysis and visualization toolkit for volumetric data",
+    long_description = long_description,
     classifiers=["Development Status :: 5 - Production/Stable",
                  "Environment :: Console",
                  "Intended Audience :: Science/Research",


https://bitbucket.org/yt_analysis/yt/commits/67f6ae48573d/
Changeset:   67f6ae48573d
User:        MatthewTurk
Date:        2017-05-15 15:03:45+00:00
Summary:     Fixing unicode emdash
Affected #:  1 file

diff -r 3abe16c82bac258acd74ab122c9f3e10d5204189 -r 67f6ae48573d3712e16a97238fc8b7f0506ab454 README.md
--- a/README.md
+++ b/README.md
@@ -16,7 +16,7 @@
 physically-meaningful inquiry, yt has been applied in domains such as
 astrophysics, seismology, nuclear engineering, molecular dynamics, and
 oceanography. Composed of a friendly community of users and developers, we want
-to make it easy to use and develop — we'd love it if you got involved!
+to make it easy to use and develop - we'd love it if you got involved!
 
 We've written a [method
 paper](http://adsabs.harvard.edu/abs/2011ApJS..192....9T) you may be interested


https://bitbucket.org/yt_analysis/yt/commits/2b3d27b88822/
Changeset:   2b3d27b88822
User:        MatthewTurk
Date:        2017-05-15 15:04:40+00:00
Summary:     Adjusting directory name to just "yt-git"
Affected #:  1 file

diff -r 67f6ae48573d3712e16a97238fc8b7f0506ab454 -r 2b3d27b88822863191d5bbc4132353f0d91180da README.md
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@
 to do so!) you can follow this prescription:
 
 ```
-# Assuming you have cd'd into yt (or yt-git)
+# Assuming you have cd'd into yt-git
 # It is conventional to create virtualenvs at ~/.virtualenv/
 $ mkdir -p ~/.virtualenv
 # Assuming your version of Python 3 is 3.4 or higher,


https://bitbucket.org/yt_analysis/yt/commits/33a88cc4dc4b/
Changeset:   33a88cc4dc4b
User:        ngoldbaum
Date:        2017-05-15 17:28:03+00:00
Summary:     Merge pull request #1387 from MatthewTurk/readme-fancification

Readme fancification. Closes #1385
Affected #:  5 files

diff -r 31f9175e8d8bce23bc870fd6c092011e2acf3964 -r 33a88cc4dc4b27ab5132f033b7d3e00e5d0f972f README
--- a/README
+++ /dev/null
@@ -1,24 +0,0 @@
-Hi there!  You've just downloaded yt, an analysis tool for scientific
-datasets, generated on a variety of data platforms.  It's written in 
-python and heavily leverages NumPy, Matplotlib, SymPy and Cython for a variety
-of tasks.
-
-Full documentation and a user community can be found at:
-
-http://yt-project.org/
-
-http://yt-project.org/doc/
-
-If you have used Python before, and are comfortable with installing packages,
-you should find the setup.py script fairly straightforward: simply execute
-"python setup.py install".
-
-If you would rather a more automated installation, you can use the script
-doc/install_script.sh .  You will have to set the destination directory, and
-there are options available, but it should be straightforward.
-
-For more information on installation, what to do if you run into problems, or 
-ways to help development, please visit our website.
-
-Enjoy!
-

diff -r 31f9175e8d8bce23bc870fd6c092011e2acf3964 -r 33a88cc4dc4b27ab5132f033b7d3e00e5d0f972f README.md
--- /dev/null
+++ b/README.md
@@ -0,0 +1,112 @@
+# The yt Project
+
+[![Users' Mailing List](https://img.shields.io/badge/Users-List-lightgrey.svg)](http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org/)
+[![Devel Mailing List](https://img.shields.io/badge/Devel-List-lightgrey.svg)](http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org/)
+[![Build Status](https://img.shields.io/travis/yt-project/yt.svg?branch=master)](https://travis-ci.org/yt-project/yt)
+[![Latest Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](http://yt-project.org/docs/dev/)
+[![Data Hub](https://img.shields.io/badge/data-hub-orange.svg)](https://hub.yt/)
+                
+<a href="http://yt-project.org"><img src="doc/source/_static/yt_logo.png" width="300"></a>
+
+yt is an open-source, permissively-licensed python package for analyzing and
+visualizing volumetric data.
+
+yt supports structured, variable-resolution meshes, unstructured meshes, and
+discrete or sampled data such as particles. Focused on driving
+physically-meaningful inquiry, yt has been applied in domains such as
+astrophysics, seismology, nuclear engineering, molecular dynamics, and
+oceanography. Composed of a friendly community of users and developers, we want
+to make it easy to use and develop - we'd love it if you got involved!
+
+We've written a [method
+paper](http://adsabs.harvard.edu/abs/2011ApJS..192....9T) you may be interested
+in; if you use yt in the preparation of a publication, please consider citing
+it.
+
+## Installation
+
+If you're using conda with [conda-forge](http://conda-forge.github.io/), you
+can install the most recent stable version by running:
+
+```
+conda install -c conda-forge yt
+```
+
+or by doing:
+
+```
+pip install yt
+```
+
+If you want the latest nightly build, you can manually install from our
+repository:
+
+```
+conda install -c http://use.yt/with_conda yt
+```
+
+To get set up with a development version, you can clone this repository and
+install like this:
+
+```
+git clone https://github.com/yt-project/yt yt-git
+cd yt-git
+python setup.py develop
+```
+
+To set up yt in a virtualenv (and there are [many good
+reasons](https://packaging.python.org/installing/#creating-virtual-environments)
+to do so!) you can follow this prescription:
+
+```
+# Assuming you have cd'd into yt-git
+# It is conventional to create virtualenvs at ~/.virtualenv/
+$ mkdir -p ~/.virtualenv
+# Assuming your version of Python 3 is 3.4 or higher,
+# create a virtualenv named yt
+$ python3 -m venv ~/.virtualenv/yt
+# Activate it
+$ source ~/.virtualenv/yt/bin/activate
+# Make sure you run the latest version of pip
+$ pip install --upgrade pip
+$ pip install -e .
+# Output installed packages
+$ pip freeze
+```
+
+## Getting Started
+
+yt is designed to provide meaningful analysis of data.  We have some Quickstart
+example notebooks in the repository:
+
+ * [Introduction](doc/source/quickstart/1\)_Introduction.ipynb)
+ * [Data Inspection](doc/source/quickstart/2\)_Data_Inspection.ipynb)
+ * [Simple Visualization](doc/source/quickstart/3\)_Simple_Visualization.ipynb)
+ * [Data Objects and Time Series](doc/source/quickstart/4\)_Data_Objects_and_Time_Series.ipynb)
+ * [Derived Fields and Profiles](doc/source/quickstart/5\)_Derived_Fields_and_Profiles.ipynb)
+ * [Volume Rendering](doc/source/quickstart/6\)_Volume_Rendering.ipynb)
+
+If you'd like to try these online, you can visit our [yt Hub](https://hub.yt/)
+and run a notebook next to some of our example data.
+
+## Contributing
+
+We love contributions!  yt is open source, built on open source, and we'd love
+to have you hang out in our community.
+
+We have developed some [guidelines](CONTRIBUTING.rst) for contributing to yt.
+
+## Resources
+
+We have some community and documentation resources available.
+
+ * Our latest documentation is always at http://yt-project.org/docs/dev/ and it
+   includes recipes, tutorials, and API documentation
+ * The [discussion mailing
+   list](http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org/)
+   should be your first stop for general questions
+ * The [development mailing
+   list](http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org/) is
+   better suited for more development issues
+ * You can also join us on Slack at yt-project.slack.com ([request an
+   invite](http://yt-project.org/slack.html))

diff -r 31f9175e8d8bce23bc870fd6c092011e2acf3964 -r 33a88cc4dc4b27ab5132f033b7d3e00e5d0f972f doc/source/_static/yt_logo.png
Binary file doc/source/_static/yt_logo.png has changed

diff -r 31f9175e8d8bce23bc870fd6c092011e2acf3964 -r 33a88cc4dc4b27ab5132f033b7d3e00e5d0f972f doc/source/_static/yt_logo.svg
--- /dev/null
+++ b/doc/source/_static/yt_logo.svg
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+	 viewBox="0 0 416.7 360" style="enable-background:new 0 0 416.7 360;" xml:space="preserve">
+<style type="text/css">
+	.st0{opacity:0.55;fill:#00A3BB;}
+	.st1{opacity:0.55;fill:#F26222;}
+	.st2{opacity:0.55;}
+	.st3{fill:#EF3A24;}
+	.st4{fill:#EFE929;}
+	.st5{fill:#72BF44;}
+	.st6{fill:#020202;}
+</style>
+<g>
+	<path class="st0" d="M397.8,290c-45.6,69.6-187.6,17.9-247.1-21.1S-6.7,118.4,38.9,48.8S206.8,44.1,266.2,83S443.4,220.4,397.8,290
+		z"/>
+	<path class="st1" d="M373.6,276.6c-36,54.9-155.7,9-206.3-24.1S31.9,126.4,67.9,71.5s139.7,1.1,190.3,34.2S409.6,221.7,373.6,276.6
+		z"/>
+	<g class="st2">
+		<path class="st3" d="M250.9,134.4c89.1,67.2,125,135.2,83,147.3c-27.6,8-87.2-1.2-155.6-53.6S68.5,114.7,86,91.8
+			c9.9-12.9,63.6-26.2,97.4-12.3C209.1,90,214.5,107,250.9,134.4z"/>
+		<path class="st4" d="M247.1,139.3c79.3,59.8,111.3,120.3,73.9,131.2c-24.6,7.1-77.6-1.1-138.5-47.7s-97.7-101-82.2-121.3
+			c8.8-11.5,56.7-23.3,86.7-11C210,99.8,214.8,114.9,247.1,139.3z"/>
+		<path class="st5" d="M241.1,147.2c63.6,48,89.2,96.4,59.2,105.1c-19.7,5.7-62.2-0.8-111-38.2s-78.3-80.9-65.8-97.2
+			c7.1-9.2,45.4-18.7,69.4-8.8C211.3,115.5,215.2,127.6,241.1,147.2z"/>
+	</g>
+	<g>
+		<path class="st6" d="M58.7,351c-8.7,0-16.6-0.9-23.7-2.7c-7.1-1.8-14.2-4.4-21.3-8l10.6-25c5.2,2.7,10.3,4.7,15.3,5.9
+			c5,1.2,11,1.8,17.8,1.8c9.5,0,17.6-2.9,24.1-8.6c6.5-5.7,12.9-16.1,19.2-31.1L4.7,72.8h34.8l76.9,176.3l67.9-176.3h33.5L129,291.2
+			c-9,21.8-19,37.2-30.1,46.2C87.9,346.5,74.5,351,58.7,351z"/>
+		<path class="st6" d="M338.4,288c-8.5,0-16.4-1.1-23.7-3.3c-7.4-2.2-13.7-5.7-19-10.4c-5.3-4.8-9.5-11-12.5-18.6
+			c-3-7.6-4.5-16.8-4.5-27.4V100.6h-29.5V72.8h29.5V9h31.5v63.8h67.1v27.8h-67.1v123.2c0,13.1,3.3,22.2,9.8,27.3
+			c6.5,5.2,15.1,7.8,25.8,7.8c5.4,0,10.6-0.5,15.3-1.5c4.8-1,9.9-2.8,15.3-5.4v27c-5.5,3-11.2,5.3-17.4,6.7
+			C353,287.2,346.1,288,338.4,288z"/>
+	</g>
+</g>
+</svg>

diff -r 31f9175e8d8bce23bc870fd6c092011e2acf3964 -r 33a88cc4dc4b27ab5132f033b7d3e00e5d0f972f setup.py
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,12 @@
 if os.path.exists('MANIFEST'):
     os.remove('MANIFEST')
 
+try:
+    import pypandoc
+    long_description = pypandoc.convert_file('README.md', 'rst')
+except (ImportError, IOError):
+    with open('README.md') as file:
+        long_description = file.read()
 
 if check_for_openmp() is True:
     omp_args = ['-fopenmp']
@@ -328,7 +334,22 @@
     # subclass setuptools source distribution builder to ensure cython
     # generated C files are included in source distribution.
     # See http://stackoverflow.com/a/18418524/1382869
+    # subclass setuptools source distribution builder to ensure cython
+    # generated C files are included in source distribution and readme
+    # is converted from markdown to restructured text.  See
+    # http://stackoverflow.com/a/18418524/1382869
     def run(self):
+        # Make sure the compiled Cython files in the distribution are
+        # up-to-date
+
+        try:
+            import pypandoc
+        except ImportError:
+            raise RuntimeError(
+                'Trying to create a source distribution without pypandoc. '
+                'The readme will not render correctly on pypi without '
+                'pypandoc so we are exiting.'
+            )
         # Make sure the compiled Cython files in the distribution are up-to-date
         from Cython.Build import cythonize
         cythonize(cython_extensions)
@@ -338,6 +359,7 @@
     name="yt",
     version=VERSION,
     description="An analysis and visualization toolkit for volumetric data",
+    long_description = long_description,
     classifiers=["Development Status :: 5 - Production/Stable",
                  "Environment :: Console",
                  "Intended Audience :: Science/Research",

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the yt-svn mailing list