From 41c88845651b009c51033615e8476c91f0486aca Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Fri, 26 Dec 2014 15:36:13 -0500 Subject: Nest into Github. --- CHANGES.rst | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CHANGES.txt | 87 ------------------------------------------------------------- README.rst | 8 ++++++ README.txt | 6 ----- setup.py | 12 +++------ 5 files changed, 98 insertions(+), 102 deletions(-) create mode 100644 CHANGES.rst delete mode 100644 CHANGES.txt create mode 100644 README.rst delete mode 100644 README.txt diff --git a/CHANGES.rst b/CHANGES.rst new file mode 100644 index 0000000..b016f1c --- /dev/null +++ b/CHANGES.rst @@ -0,0 +1,87 @@ +Change History +============== + +4.0.2 (unreleased) +------------------ + +- Nothing changed yet. + + +4.0.1 (2013-02-20) +------------------ + +- Change the file contents argument of guess_content_type from string to bytes. + This change has no effect on Python 2. + + +4.0.0 (2013-02-11) +------------------ + +- Added some tests for better coverage. + +- Added `tox.ini` and manifest. + +- Added support for Python 3.3 and PyPy 1.9. + +- Dropped support for Python 2.4 and 2.5. + +3.5.5 (2011-07-27) +------------------ + +* Properly restore the HTML snippet detection, by looking at the entire string + and not just its start. + +3.5.4 (2011-07-26) +------------------ + +* Restore detection of HTML snippets from 3.4 series. + +3.5.3 (2011-03-18) +------------------ + +* Added new mime types for web fonts, cache manifest and new media formats. + +3.5.2 (2011-02-11) +------------------ + +* LP #717289: added 'video/x-m4v' mimetype for the '.m4v' extension. + +3.5.1 (2010-03-23) +------------------ + +* LP #242321: fix IndexError raised when testing strings consisting + solely of leading whitespace. + +* Updated mime-type for .js to be application/javascript. + +3.5.0 (2009-10-22) +------------------ + +* Moved the implementation of zope.publisher.contenttype to + zope.contenttype.parse, moved tests along. + +3.4.3 (2009-12-28) +------------------ +* Updated mime-type for .js to be application/javascript. + +3.4.2 (2009-05-28) +------------------ + +* Added MS Office 12 types + based on: + http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx + +3.4.1 (2009-02-04) +------------------ + +* Improved text_type(). Based on the patch from + http://www.zope.org/Collectors/Zope/2355/ + +* Add missing setuptools dependency to setup.py. + +* Added reference documentation. + +3.4.0 (2007-09-13) +------------------ + +* First stable release as an independent package. diff --git a/CHANGES.txt b/CHANGES.txt deleted file mode 100644 index b016f1c..0000000 --- a/CHANGES.txt +++ /dev/null @@ -1,87 +0,0 @@ -Change History -============== - -4.0.2 (unreleased) ------------------- - -- Nothing changed yet. - - -4.0.1 (2013-02-20) ------------------- - -- Change the file contents argument of guess_content_type from string to bytes. - This change has no effect on Python 2. - - -4.0.0 (2013-02-11) ------------------- - -- Added some tests for better coverage. - -- Added `tox.ini` and manifest. - -- Added support for Python 3.3 and PyPy 1.9. - -- Dropped support for Python 2.4 and 2.5. - -3.5.5 (2011-07-27) ------------------- - -* Properly restore the HTML snippet detection, by looking at the entire string - and not just its start. - -3.5.4 (2011-07-26) ------------------- - -* Restore detection of HTML snippets from 3.4 series. - -3.5.3 (2011-03-18) ------------------- - -* Added new mime types for web fonts, cache manifest and new media formats. - -3.5.2 (2011-02-11) ------------------- - -* LP #717289: added 'video/x-m4v' mimetype for the '.m4v' extension. - -3.5.1 (2010-03-23) ------------------- - -* LP #242321: fix IndexError raised when testing strings consisting - solely of leading whitespace. - -* Updated mime-type for .js to be application/javascript. - -3.5.0 (2009-10-22) ------------------- - -* Moved the implementation of zope.publisher.contenttype to - zope.contenttype.parse, moved tests along. - -3.4.3 (2009-12-28) ------------------- -* Updated mime-type for .js to be application/javascript. - -3.4.2 (2009-05-28) ------------------- - -* Added MS Office 12 types - based on: - http://www.therightstuff.de/2006/12/16/Office+2007+File+Icons+For+Windows+SharePoint+Services+20+And+SharePoint+Portal+Server+2003.aspx - -3.4.1 (2009-02-04) ------------------- - -* Improved text_type(). Based on the patch from - http://www.zope.org/Collectors/Zope/2355/ - -* Add missing setuptools dependency to setup.py. - -* Added reference documentation. - -3.4.0 (2007-09-13) ------------------- - -* First stable release as an independent package. diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..cd50124 --- /dev/null +++ b/README.rst @@ -0,0 +1,8 @@ +``zope.contenttype`` +==================== + +.. image:: https://travis-ci.org/zopefoundation/zope.contenttype.png?branch=master + :target: https://travis-ci.org/zopefoundation/zope.contenttype + +A utility module for content-type handling. + diff --git a/README.txt b/README.txt deleted file mode 100644 index f6bdff8..0000000 --- a/README.txt +++ /dev/null @@ -1,6 +0,0 @@ -zope.contenttype -**************** - -A utility module for content-type handling. - -.. contents:: diff --git a/setup.py b/setup.py index d7f1aaa..8c3b6cc 100644 --- a/setup.py +++ b/setup.py @@ -24,16 +24,10 @@ import os from setuptools import setup, find_packages def read(*rnames): - return open(os.path.join(os.path.dirname(__file__), *rnames)).read() + with open(os.path.join(os.path.dirname(__file__), *rnames)) as f: + return f.read() -long_description = ( - read('README.txt') - + '\n' + - read('CHANGES.txt') - + '\n' + - 'Download\n' - '********\n' - ) +long_description = read('README.rst') + '\n' + read('CHANGES.rst') setup( name='zope.contenttype', -- cgit v1.2.1