[Checkins] SVN: DateTime/trunk/ cleanup setup.py - give changes file an rst ending
Hano Schlichting
cvs-admin at zope.org
Sat Feb 23 15:25:38 UTC 2013
Log message for revision 129716:
cleanup setup.py - give changes file an rst ending
Changed:
A DateTime/trunk/CHANGES.rst
D DateTime/trunk/CHANGES.txt
U DateTime/trunk/MANIFEST.in
U DateTime/trunk/setup.py
-=-
Copied: DateTime/trunk/CHANGES.rst (from rev 129708, DateTime/trunk/CHANGES.txt)
===================================================================
--- DateTime/trunk/CHANGES.rst (rev 0)
+++ DateTime/trunk/CHANGES.rst 2013-02-23 15:25:38 UTC (rev 129716)
@@ -0,0 +1,198 @@
+Changelog
+=========
+
+3.0.4 (unreleased)
+------------------
+
+
+3.0.3 (2013-01-22)
+------------------
+
+- Allow timezone argument to be a Unicode string while creating a DateTime
+ object using two arguments.
+
+3.0.2 (2012-10-21)
+------------------
+
+- LP #1045233: Respect date format setting for parsing dates like `11-01-2001`.
+
+3.0.1 (2012-09-23)
+------------------
+
+- Add `_dt_reconstructor` function introduced in DateTime 2.12.7 to provide
+ forward compatibility with pickles that might reference this function.
+
+3.0 (2011-12-09)
+----------------
+
+- No changes.
+
+Backwards compatibility of DateTime 3
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+DateTime 3 changes its pickle representation. DateTime instances pickled with
+former versions of DateTime can be read, but older DateTime versions cannot read
+DateTime instances pickled with version 3.
+
+DateTime 3 changes DateTime to be a new-style class with slots instead of being
+an old-style class.
+
+DateTime 3 tries to preserve microsecond resolution throughout most of its API's
+while former versions were often only accurate to millisecond resolution. Due to
+the representation of float values in Python versions before Python 2.7 you
+shouldn't compare string or float representations of DateTime instances if you
+want high accuracy. The same is true for calculated values returned by methods
+like `timeTime()`. You get the highest accuracy of comparing DateTime values by
+calling its `micros()` methods. DateTime is not particular well suited to be
+used in comparing timestamps of file systems - use the time and datetime objects
+from the Python standard library instead.
+
+3.0b3 (2011-10-19)
+------------------
+
+- Allow comparison of DateTime objects against None.
+
+3.0b2 (2011-10-19)
+------------------
+
+- Reverted the single argument `None` special case handling for unpickling and
+ continue to treat it as meaning `now`.
+
+3.0b1 (2011-05-07)
+------------------
+
+- Restored `strftimeFormatter` as a class.
+
+- Added tests for read-only class attributes and interface.
+
+3.0a2 (2011-05-07)
+------------------
+
+- Added back support for reading old DateTime pickles without a `_micros` value.
+
+- Avoid storing `_t` representing the time as a float in seconds since the
+ epoch, as we already have `_micros` doing the same as a long. Memory use is
+ down to about 300 bytes per DateTime instance.
+
+- Updated exception raising syntax to current style.
+
+- Avoid storing `_aday`, `_fday`, `_pday`, `_amon`, `_fmon`, `_pmon`, `_pmhour`
+ and `_pm` in memory for every instance but look them up dynamically based on
+ `_dayoffset`, `_month` and `_hour`. This saves another 150 bytes of memory
+ per DateTime instance.
+
+- Moved various internal parsing related class variables to module constants.
+
+- No longer provide the `DateError`, `DateTimeError`, `SyntaxError` and
+ `TimeError` exceptions as class attributes, import them from their canonical
+ `DateTime.interfaces` location instead.
+
+- Removed deprecated `_isDST` and `_localzone` class variables.
+
+- Moved pytz cache from `DateTime._tzinfo` to a module global `_TZINFO`.
+
+- Make DateTime a new-style class and limit its available attributes via a
+ slots definition. The pickle size increases to 110 bytes thanks to the
+ `ccopy_reg\n_reconstructor` stanza. But the memory size drops from 3kb to
+ 500 bytes for each instance.
+
+3.0a1 (2011-05-06)
+------------------
+
+- Reordered some calculations in `_calcIndependentSecondEtc` to preserve more
+ floating point precision.
+
+- Optimized the pickled data, by only storing a tuple of `_micros` and time
+ zone information - this reduces the pickle size from an average of 300 bytes
+ to just 60 bytes.
+
+- Optimized un-pickling, by avoiding the creation of an intermediate DateTime
+ value representing the current time.
+
+- Removed in-place migration of old DateTime pickles without a `_micros` value.
+
+- Removed deprecated support for using `DateTime.__cmp__`.
+
+- Take time zone settings into account when comparing two date times for
+ (non-) equality.
+
+- Fixed (possibly unused) _parse_iso8601 function.
+
+- Removed unused import of legacy DateTimeZone, strftime and re.
+ Remove trailing whitespace.
+
+- Removed reference to missing version section from buildout.
+
+2.12.6 (2010-10-17)
+-------------------
+
+- Changed ``testDayOfWeek`` test to be independent of OS locale.
+
+2.12.5 (2010-07-29)
+-------------------
+
+- Launchpad #143269: Corrected the documentation for year value
+ behavior when constructing a DateTime object with three numeric
+ arguments.
+
+- Launchpad #142521: Removed confusing special case in
+ DateTime.__str__ where DateTime instances for midnight
+ (e.g. '2010-07-27 00:00:00 US/Eastern') values would
+ render only their date and nothing else.
+
+2.12.4 (2010-07-12)
+-------------------
+
+- Fixed mapping of EDT (was -> 'GMT-0400', now 'GMT-4').
+
+2.12.3 (2010-07-09)
+-------------------
+
+- Added EDT timezone support. Addresses bug #599856.
+ [vangheem]
+
+2.12.2 (2010-05-05)
+-------------------
+
+- Launchpad #572715: Relaxed pin on pytz, after applying a patch from
+ Marius Gedminus which fixes the apparent API breakage.
+
+2.12.1 (2010-04-30)
+-------------------
+
+- Removed an undeclared testing dependency on zope.testing.doctest in favor of
+ the standard libraries doctest module.
+
+- Added a maximum version requirement on pytz <= 2010b. Later versions produce
+ test failures related to timezone changes.
+
+2.12.0 (2009-03-04)
+-------------------
+
+- Launchpad #290254: Forward-ported fix for '_micros'-less pickles from
+ the Zope 2.11 branch version.
+
+2.11.2 (2009-02-02)
+-------------------
+
+- Include *all* pytz zone names, not just "common" ones.
+
+- Fix one fragile doctest, band-aid another.
+
+- Fix for launchpad #267545: DateTime(DateTime()) should preserve the
+ correct hour.
+
+2.11.1 (2008-08-05)
+-------------------
+
+- DateTime conversion of datetime objects with non-pytz tzinfo. Timezones()
+ returns a copy of the timezone list (allows tests to run).
+
+- Merged the slinkp-datetime-200007 branch: fix the DateTime(anotherDateTime)
+ constructor to preserve timezones.
+
+2.11.0b1 (2008-01-06)
+---------------------
+
+- Split off from the Zope2 main source code tree.
+
Deleted: DateTime/trunk/CHANGES.txt
===================================================================
--- DateTime/trunk/CHANGES.txt 2013-02-23 15:20:13 UTC (rev 129715)
+++ DateTime/trunk/CHANGES.txt 2013-02-23 15:25:38 UTC (rev 129716)
@@ -1,198 +0,0 @@
-Changelog
-=========
-
-3.0.4 (unreleased)
-------------------
-
-
-3.0.3 (2013-01-22)
-------------------
-
-- Allow timezone argument to be a Unicode string while creating a DateTime
- object using two arguments.
-
-3.0.2 (2012-10-21)
-------------------
-
-- LP #1045233: Respect date format setting for parsing dates like `11-01-2001`.
-
-3.0.1 (2012-09-23)
-------------------
-
-- Add `_dt_reconstructor` function introduced in DateTime 2.12.7 to provide
- forward compatibility with pickles that might reference this function.
-
-3.0 (2011-12-09)
-----------------
-
-- No changes.
-
-Backwards compatibility of DateTime 3
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-DateTime 3 changes its pickle representation. DateTime instances pickled with
-former versions of DateTime can be read, but older DateTime versions cannot read
-DateTime instances pickled with version 3.
-
-DateTime 3 changes DateTime to be a new-style class with slots instead of being
-an old-style class.
-
-DateTime 3 tries to preserve microsecond resolution throughout most of its API's
-while former versions were often only accurate to millisecond resolution. Due to
-the representation of float values in Python versions before Python 2.7 you
-shouldn't compare string or float representations of DateTime instances if you
-want high accuracy. The same is true for calculated values returned by methods
-like `timeTime()`. You get the highest accuracy of comparing DateTime values by
-calling its `micros()` methods. DateTime is not particular well suited to be
-used in comparing timestamps of file systems - use the time and datetime objects
-from the Python standard library instead.
-
-3.0b3 (2011-10-19)
-------------------
-
-- Allow comparison of DateTime objects against None.
-
-3.0b2 (2011-10-19)
-------------------
-
-- Reverted the single argument `None` special case handling for unpickling and
- continue to treat it as meaning `now`.
-
-3.0b1 (2011-05-07)
-------------------
-
-- Restored `strftimeFormatter` as a class.
-
-- Added tests for read-only class attributes and interface.
-
-3.0a2 (2011-05-07)
-------------------
-
-- Added back support for reading old DateTime pickles without a `_micros` value.
-
-- Avoid storing `_t` representing the time as a float in seconds since the
- epoch, as we already have `_micros` doing the same as a long. Memory use is
- down to about 300 bytes per DateTime instance.
-
-- Updated exception raising syntax to current style.
-
-- Avoid storing `_aday`, `_fday`, `_pday`, `_amon`, `_fmon`, `_pmon`, `_pmhour`
- and `_pm` in memory for every instance but look them up dynamically based on
- `_dayoffset`, `_month` and `_hour`. This saves another 150 bytes of memory
- per DateTime instance.
-
-- Moved various internal parsing related class variables to module constants.
-
-- No longer provide the `DateError`, `DateTimeError`, `SyntaxError` and
- `TimeError` exceptions as class attributes, import them from their canonical
- `DateTime.interfaces` location instead.
-
-- Removed deprecated `_isDST` and `_localzone` class variables.
-
-- Moved pytz cache from `DateTime._tzinfo` to a module global `_TZINFO`.
-
-- Make DateTime a new-style class and limit its available attributes via a
- slots definition. The pickle size increases to 110 bytes thanks to the
- `ccopy_reg\n_reconstructor` stanza. But the memory size drops from 3kb to
- 500 bytes for each instance.
-
-3.0a1 (2011-05-06)
-------------------
-
-- Reordered some calculations in `_calcIndependentSecondEtc` to preserve more
- floating point precision.
-
-- Optimized the pickled data, by only storing a tuple of `_micros` and time
- zone information - this reduces the pickle size from an average of 300 bytes
- to just 60 bytes.
-
-- Optimized un-pickling, by avoiding the creation of an intermediate DateTime
- value representing the current time.
-
-- Removed in-place migration of old DateTime pickles without a `_micros` value.
-
-- Removed deprecated support for using `DateTime.__cmp__`.
-
-- Take time zone settings into account when comparing two date times for
- (non-) equality.
-
-- Fixed (possibly unused) _parse_iso8601 function.
-
-- Removed unused import of legacy DateTimeZone, strftime and re.
- Remove trailing whitespace.
-
-- Removed reference to missing version section from buildout.
-
-2.12.6 (2010-10-17)
--------------------
-
-- Changed ``testDayOfWeek`` test to be independent of OS locale.
-
-2.12.5 (2010-07-29)
--------------------
-
-- Launchpad #143269: Corrected the documentation for year value
- behavior when constructing a DateTime object with three numeric
- arguments.
-
-- Launchpad #142521: Removed confusing special case in
- DateTime.__str__ where DateTime instances for midnight
- (e.g. '2010-07-27 00:00:00 US/Eastern') values would
- render only their date and nothing else.
-
-2.12.4 (2010-07-12)
--------------------
-
-- Fixed mapping of EDT (was -> 'GMT-0400', now 'GMT-4').
-
-2.12.3 (2010-07-09)
--------------------
-
-- Added EDT timezone support. Addresses bug #599856.
- [vangheem]
-
-2.12.2 (2010-05-05)
--------------------
-
-- Launchpad #572715: Relaxed pin on pytz, after applying a patch from
- Marius Gedminus which fixes the apparent API breakage.
-
-2.12.1 (2010-04-30)
--------------------
-
-- Removed an undeclared testing dependency on zope.testing.doctest in favor of
- the standard libraries doctest module.
-
-- Added a maximum version requirement on pytz <= 2010b. Later versions produce
- test failures related to timezone changes.
-
-2.12.0 (2009-03-04)
--------------------
-
-- Launchpad #290254: Forward-ported fix for '_micros'-less pickles from
- the Zope 2.11 branch version.
-
-2.11.2 (2009-02-02)
--------------------
-
-- Include *all* pytz zone names, not just "common" ones.
-
-- Fix one fragile doctest, band-aid another.
-
-- Fix for launchpad #267545: DateTime(DateTime()) should preserve the
- correct hour.
-
-2.11.1 (2008-08-05)
--------------------
-
-- DateTime conversion of datetime objects with non-pytz tzinfo. Timezones()
- returns a copy of the timezone list (allows tests to run).
-
-- Merged the slinkp-datetime-200007 branch: fix the DateTime(anotherDateTime)
- constructor to preserve timezones.
-
-2.11.0b1 (2008-01-06)
----------------------
-
-- Split off from the Zope2 main source code tree.
-
Modified: DateTime/trunk/MANIFEST.in
===================================================================
--- DateTime/trunk/MANIFEST.in 2013-02-23 15:20:13 UTC (rev 129715)
+++ DateTime/trunk/MANIFEST.in 2013-02-23 15:25:38 UTC (rev 129716)
@@ -1,3 +1,4 @@
+include *.rst
include *.txt
recursive-include src/DateTime *
Modified: DateTime/trunk/setup.py
===================================================================
--- DateTime/trunk/setup.py 2013-02-23 15:20:13 UTC (rev 129715)
+++ DateTime/trunk/setup.py 2013-02-23 15:25:38 UTC (rev 129716)
@@ -15,42 +15,48 @@
import os
from setuptools import setup, find_packages
-setup(name='DateTime',
- version='3.0.4dev',
- url='http://pypi.python.org/pypi/DateTime',
- license='ZPL 2.1',
- description="""\
+here = os.path.abspath(os.path.dirname(__file__))
+with open(os.path.join(here, 'src', 'DateTime', 'DateTime.txt')) as f:
+ README = f.read()
+with open(os.path.join(here, 'CHANGES.rst')) as f:
+ CHANGES = f.read()
+
+
+setup(
+ name='DateTime',
+ version='3.0.4dev',
+ url='http://pypi.python.org/pypi/DateTime',
+ license='ZPL 2.1',
+ description="""\
This package provides a DateTime data type, as known from Zope 2.
Unless you need to communicate with Zope 2 APIs, you're probably
better off using Python's built-in datetime module.""",
- author='Zope Foundation and Contributors',
- author_email='zope-dev at zope.org',
- long_description=open(
- os.path.join('src', 'DateTime', 'DateTime.txt')).read() +
- '\n\n' + open('CHANGES.txt').read(),
- packages=find_packages('src'),
- package_dir={'': 'src'},
- classifiers=[
- "Development Status :: 6 - Mature",
- "Environment :: Web Environment",
- "Framework :: Zope2",
- "License :: OSI Approved :: Zope Public License",
- "Operating System :: OS Independent",
- "Programming Language :: Python",
- "Programming Language :: Python :: 2",
- "Programming Language :: Python :: 2 :: Only",
- "Programming Language :: Python :: 2.6",
- "Programming Language :: Python :: 2.7",
- "Programming Language :: Python :: 3",
- "Programming Language :: Python :: 3.2",
- "Programming Language :: Python :: 3.3",
- "Programming Language :: Python :: Implementation :: CPython",
- ],
- install_requires=[
- 'zope.interface',
- 'pytz',
- ],
- include_package_data=True,
- test_suite='DateTime.tests.test_datetime.test_suite',
- zip_safe=False,
- )
+ author='Zope Foundation and Contributors',
+ author_email='zope-dev at zope.org',
+ long_description=README + '\n\n' + CHANGES,
+ packages=find_packages('src'),
+ package_dir={'': 'src'},
+ classifiers=[
+ "Development Status :: 6 - Mature",
+ "Environment :: Web Environment",
+ "Framework :: Zope2",
+ "License :: OSI Approved :: Zope Public License",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 2 :: Only",
+ "Programming Language :: Python :: 2.6",
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.2",
+ "Programming Language :: Python :: 3.3",
+ "Programming Language :: Python :: Implementation :: CPython",
+ ],
+ install_requires=[
+ 'zope.interface',
+ 'pytz',
+ ],
+ include_package_data=True,
+ test_suite='DateTime.tests.test_datetime.test_suite',
+ zip_safe=False,
+)
More information about the checkins
mailing list