mock 3.0.0 released

2019-05-02 Thread Chris Withers

Hi All,

I'm pleased to announce the release of mock 3.0.0:
https://pypi.org/project/mock/

This brings to rolling backport up to date with cpython master.

It's been a few years since the last release, so I'd be surprised if 
there weren't some problems.

If you hit any issues, please pin to mock<3 and then:

- If your issue relates to mock functionality, please report in the 
python tracker: https://bugs.python.org


- If your issue is specific to the backport, please report here: 
https://github.com/testing-cabal/mock/issues


If you're unsure, go for the second one and we'll figure it out.

cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


drop jython support in mock backport?

2019-04-30 Thread Chris Withers

Hi All,

If you need Jython support in the mock backport, please shout now:

https://github.com/testing-cabal/mock/issues/453

cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 6.4.0 released - important bug fix! (again)

2018-12-19 Thread Chris Withers
   Hi All,

   I'm afraid I found quite a [1]serious problem with unittest.mock.call
   objects that is important for users of testfixtures' MockPopen helper.

   This release includes a monkey patch to fix that issue as well as a facade
   over both unittest.mock and the rolling backport on pypi, giving
   preference to the latter, so you don't have to change your code if you
   need to flip to the rolling backport for a while when waiting to a bug fix
   to land in Python core.

   This release also include:

 * Add official support for Python 3.7.
 * Drop official support for Python 3.5.
 * Better feedback when [2]call() comparisons fail when using compare().
 * A re-working of  MockPopen to enable it  to handle multiple  processes
   being active at the same time.
 * Fixes to Mocking dates and times documentation.

   The package is on PyPI and a full list of all the links to docs, issue
   trackers and the like can be found here:

   [3]https://github.com/Simplistix/testfixtures

   Any questions, please do ask on the Testing in Python list or on the
   Simplistix open source mailing list...

   cheers,

   Chris

References

   Visible links
   1. https://bugs.python.org/issue35226
   2. (in Python v3.7)
https://docs.python.org/3/library/unittest.mock.html#unittest.mock.call
   3. https://github.com/Simplistix/testfixtures
-- 
https://mail.python.org/mailman/listinfo/python-list


MailingLogger 5.0.0 Released!

2018-05-30 Thread Chris Withers

Hi All,

I'm pleased to announce the release of MailingLogger 5.0.0.

Mailinglogger provides two handlers for the standard python
logging framework that enable log entries to be emailed either as the
entries are logged or as a summary at the end of the running process.

The handlers have the following features:

- customisable and dynamic subject lines for emails sent

- emails sent with a configurable headers for easy filtering

- flood protection to ensure the number of emails sent is not excessive

- support for SMTP servers that require authentication

- fully documented and tested

This release primarily adds support for Python 3.

Thanks to Max Shepherd for breaking the back of the Python 3 work.

Full docs can be found here:

http://mailinglogger.readthedocs.io/en/latest/

For more information, please see:

https://github.com/Simplistix/mailinglogger/

cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 6.0.2 released - important bug fix!

2018-05-02 Thread Chris Withers

Hi All,

I'm afraid I've found quite a serious regression in the 6.x series of 
testfixtures releases:


Objects that had neither __dict__ nor __slots__ would always be 
considered equal by compare().
I hit this comparing datetimes, but this would also affect types 
provides by extensions in other languages such as C or C++.
This did not affect built-in types such as dict, set, tuple and list as 
they have specific comparers provided that were not affects.


I've released 6.0.2 to fix this and would urge anyone using 6.0.0 or 
6.0.1 to upgrade as soon as possible.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 6.0.0 released!

2018-03-27 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 6.0.0 featuring the 
following:


 * |compare()|
   
will
   now handle objects that do not natively support equality or
   inequality and will treat these objects as equal if they are of the
   same type and have the same attributes as found using|vars()|
   or|__slots__|.
   This is a change in behaviour which, while it could conceivably
   cause tests that are currently failing to pass, should not cause any
   currently passing tests to start failing.
 * Add support for writing to the|stdin|of|MockPopen|
   
instances.
 * The default behaviour of|MockPopen|
   
can
   now be controlled by providing a callable.
 * |LogCapture.actual()|
   
is
   now part of the documented public interface.
 * Add|LogCapture.check_present()|
   
to
   help with assertions about a sub-set of messages logged along with
   those that are logged in a non-deterministic order.
 * |Comparison|
   
now
   supports objects with|__slots__|.
 * Added|ShouldAssert|
   
as
   a simpler tool for testing test helpers.
 * Changed the internals of the various decorators testfixtures
   provides such that they can be used in conjunction
   with|unittest.mock.patch()|
   on
   the same test method or function.
 * Changed the internals of|ShouldRaise|
   
and|Comparison|
   
to
   make use of|compare()|
   
and
   so provide nested comparisons with better feedback. This finally
   allows|ShouldRaise|
   
to
   deal with Django’s|ValidationError|
   
.
 * Added handling of self-referential structures to|compare()|
   
by
   treating all but the first occurence as equal. Another change needed
   to support Django’s insane|ValidationError|
   
.

Thanks to Hamish Downer and Tim Davies for their work on|MockPopen| 
.


Thanks to Wim Glenn and Daniel Fortunov for their help reviewing some of 
the more major changes.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


MailingLogger 4.0.0 Released!

2018-01-26 Thread Chris Withers
Only 4 years later than planned, I'm pleased to announce a new release 
of MailingLogger...


Mailinglogger provides two handlers for the standard python
logging framework that enable log entries to be emailed either as the
entries are logged or as a summary at the end of the running process.

The handlers have the following features:

- customisable and dynamic subject lines for emails sent

- emails sent with a configurable headers for easy filtering

- flood protection to ensure the number of emails sent is not excessive

- support for SMTP servers that require authentication

- fully documented and tested

This release has a bunch of changes:

- Drop Zope and Plone support

- Drop ZConfig support

- Removed the deprecated "ignore" parameter to
  MailingLogger and SummarisingLogger.

- Move from zope.testrunner to pytest for running tests.

- Switch from manuel to sybil for checking examples in
  documentation.

- Moved from buildout to virtualenv for development.

- Gracefully handle bugs elsewhere that call SummarisingLogger.close()
  more than once in a multi-threaded or multi-process environment.

Full docs can be found here:

http://mailinglogger.readthedocs.io/en/latest/

For more information, please see:

https://github.com/Simplistix/mailinglogger/

cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 5.3.0 released!

2017-10-28 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 5.3.0 featuring the 
following:


 * Add pytest traceback hiding for|TempDirectory.compare()|.
 * Add warnings that|log_capture()|,|tempdir()|and|replace()|are not
   currently compatible with pytest’s fixtures mechanism.
 * Better support for|stdout|or|stderr|/not/being set to|PIPE|when
   using|MockPopen|.
 * Add support to|MockPopen|for using|subprocess.Popen|
   as
   a context manager in Python 3.
 * Add support to|MockPopen|for|stderr=STDOUT|.

Thanks to Tim Davies for his work on|MockPopen|.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


mush 2.7 released! - Type-based dependency injection for scripts

2017-09-07 Thread Chris Withers

Hi All,

I'm very happy to announce the a new release of Mush, a light weight 
dependency injection framework aimed at enabling the easy testing and 
re-use of chunks of code that make up scripts.


This release includes:

- Add support for using Python 3 type annotations to specify 
requirements and returned resources.


- Add support for arg names being used as requirements when there is no 
other configuration.


- Add an explicit way of ignoring the return value of a callable.

- Add an update_wrapper() helper that extends the standard library 
version but also preserves Mush's annotations.


For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://mush.readthedocs.io/en/latest/examples.html

Full docs are here:

http://mush.readthedocs.io/en/latest/index.html

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.7, 3.4+ on Linux, Mac OS X and Windows.

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 5.2.0 released!

2017-09-03 Thread Chris Withers
   Hi All,

   I'm pleased to announce the release of testfixtures 5.2.0 featuring the
   following:

 * test_datetime and test_time now  accept a [1]datetime instance  during
   instantiation to set the initial value.
 * test_date now accepts a  [2]date instance during instantiation to  set
   the initial value.
 *Relax the restriction on adding, setting or
   instantiatingtest_datetimewithtzinfosuchthatif
   the tzinfo matches  the one configured,  then it's okay  to add.  This
   means  that  you   can  now  instantiate   a  test_datetime  with   an
   existing [3]datetime instance that has tzinfo set.
 * testfixtures.django.compare_model() now ignores [4]many to many fields
   rather than blowing up on them.
 * Drop official support for Python 3.4, although things should  continue
   to work.

   The package is on PyPI and a full list of all the links to docs, issue
   trackers and the like can be found here:

   [5]https://github.com/Simplistix/testfixtures

   Any questions, please do ask on the Testing in Python list or on the
   Simplistix open source mailing list...

   cheers,

   Chris

References

   Visible links
   1. (in Python v2.7)
https://docs.python.org/2/library/datetime.html#datetime.datetime
   2. (in Python v2.7)
https://docs.python.org/2/library/datetime.html#datetime.date
   3. (in Python v2.7)
https://docs.python.org/2/library/datetime.html#datetime.datetime
   4. (in Django v2.0)

http://django.readthedocs.io/en/latest/ref/models/fields.html#django.db.models.ManyToManyField
   5. https://github.com/Simplistix/testfixtures
-- 
https://mail.python.org/mailman/listinfo/python-list


xlrd 1.1.0 and xlwt 1.3.0 released!

2017-08-21 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 1.1.0 and xlwt 1.3.0. Please 
consult their change logs on readthedocs.org to see what's new.


As before, I will be upfront  and say you should no longer be using 
these unless libraries unless you have a particular need to work with 
.xls files. If you only work with .xlsx files, and that's the only Excel 
format you should look to create nowadays, then

you should be using openpyxl instead.

This is open source, so none of xlrd, xlwt or xlutils are going away,
just be aware that if you have problems, you'll likely need to be the
one to do the work, read the specs, read the code, and propose fixes.
Until someone better comes forward, I'll still be gatekeeper for merging 
 pull requests along with John Machin, and I'll be looking for tests 
and descriptive code changes before doing so. Stability is of utmost 
importance in these now mature packages.


If you have a passion to maintain any of these libraries, please make
yourself known, and prove you're serious about it.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
  - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 5.1.0 released!

2017-06-08 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 5.1.0 featuring the 
following:


 * Added support for including non-editable fields to the|comparer|used
   by|compare()|when comparing/django/|Model|instances.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 5.0.0 released!

2017-06-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 5.0.0 featuring the 
following:


 * Move fromnose topytest
   for running tests.
 * Switch frommanuel tosybil
   for checking examples in
   documentation. This introduces a backwards incompatible change in
   that|FileParser|replaces the Manuel plugin that is no longer included.
 * Add a ‘tick’ method to|test_datetime|,|test_date|and|test_time|, to
   advance the returned point in time, which is particularly helpful
   when|delta|is set to zero.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


Sybil 1.0.1 Released!

2017-05-30 Thread Chris Withers

Hi All,

I'm pleased to announce a new release of Sybil, a library to help you 
test the examples in your documentation.


This release fixes a bug where unicode and byte literals weren't 
corrected in doctest tracebacks, event when FIX_BYTE_UNICODE_REPR

was specified.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/cjw296/sybil

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


Re: Sybil 1.0.0 Released!

2017-05-30 Thread Chris Withers

On 27/05/2017 00:56, Skip Montanaro wrote:


On Fri, May 26, 2017 at 2:34 AM, Chris Withers mailto:ch...@simplistix.co.uk>> wrote:

The package is on PyPI and a full list of all the links to docs,
issue trackers and the like can be found here:

https://github.com/cjw96/sybil

Chris,

The GitHub URL 404s for me.


Sorry, forgot to include the Python list:

Well that's embarrassing :'$

https://github.com/cjw296/sybil

My next package will be one for testing release notes...

Chris
--
https://mail.python.org/mailman/listinfo/python-list


Sybil 1.0.0 Released!

2017-05-26 Thread Chris Withers

Hi All,

I'm pleased to announce the first release of Sybil, a library to help 
you test the examples in your documents.


For example, given the following Sphinx source file:

Sample Documentation


Let's put something in the Sybil document's namespace:

.. invisible-code-block: python

  remember_me = b'see how namespaces work?'

Suppose we define a function, convoluted and pointless but shows
stuff nicely:

.. code-block:: python

  import sys

  def prefix_and_print(message):
  print('prefix:', message.decode('ascii'))

Now we can use a doctest REPL to show it in action:

>>> prefix_and_print(remember_me)
prefix: see how namespaces work?

The namespace carries across from example to example, no matter
what parser:

>>> remember_me
b'see how namespaces work?'


All the examples can be tested when using pytest by putting the 
following in a conftest.py in your Sphinx source directory:


from doctest import ELLIPSIS
from sybil import Sybil
from sybil.parsers.codeblock import CodeBlockParser
from sybil.parsers.doctest import DocTestParser, FIX_BYTE_UNICODE_REPR

pytest_collect_file = Sybil(
parsers=[
DocTestParser(optionflags=ELLIPSIS|FIX_BYTE_UNICODE_REPR),
CodeBlockParser(future_imports=['print_function']),
],
pattern='*.rst',
).pytest()

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/cjw96/sybil

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

PS: The name comes from Fawlty Towers, as this package is heavily 
inspired by Benji York's fantastic Manuel package, which also took it's 
name from the series!

--
https://mail.python.org/mailman/listinfo/python-list


mush 2.4.0 released! - Type-based dependency injection for scripts

2016-11-17 Thread Chris Withers

Hi All,

I'm very happy to announce the a new release of Mush, a light weight 
dependency injection framework aimed at enabling the easy testing and 
re-use of chunks of code that make up scripts.


This release includes:

- Add support for cloning depending on what label was used to add
  callables.

- Add Runner.add_label() helper to just add a label at the end of the
  runner.

- Document and flesh out Plugs.

- Switch to full Semantic Versioning.

For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://mush.readthedocs.io/en/latest/examples.html

Full docs are here:

http://mush.readthedocs.io/en/latest/index.html

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.7, 3.3+ on Linux, Mac OS X and Windows.

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.13.0 Released!

2016-11-02 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.13.0 featuring the 
following:


- Add support to compare() for ignoring broken __eq__
  implementations, such as that found in the Django ORM!

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.12.0 Released!

2016-10-18 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.12.0 featuring the 
following:


- Add support for specifying a callable to extract rows from log records
  when using LogCapture().

- Add support for recursive comparison of log messages with
  LogCapture().

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


Re: [TIP] testfixtures 4.11.0 Released!

2016-10-12 Thread Chris Withers

*sigh*, it's 4.11.0 that was released with these changes...

On 12/10/2016 17:06, Chris Withers wrote:

Hi All,

I'm pleased to announce the release of testfixtures 4.10.1 featuring 
the following:


- Allow the attributes returned in LogCapture.actual() rows to be
  specified.

- Allow a default to be specified for encoding in TempDirectory.read() 
and TempDirectory.write().


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

___
testing-in-python mailing list
testing-in-pyt...@lists.idyll.org
http://lists.idyll.org/listinfo/testing-in-python


--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.11.0 Released!

2016-10-12 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.10.1 featuring the 
following:


- Allow the attributes returned in LogCapture.actual() rows to be
  specified.

- Allow a default to be specified for encoding in TempDirectory.read() 
and TempDirectory.write().


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.10.1 Released!

2016-09-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.10.1 featuring the 
following:


- Better docs for TempDirectory.compare().

- Remove the need for expected paths supplied to
  TempDirectory.compare() to be in sorted order.

- Document a good way of restoring stdout when in a debugger.

- Fix handling of trailing slashes in TempDirectory.compare().

Thanks to Maximilian Albert for the TempDirectory.compare() docs.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris
--
https://mail.python.org/mailman/listinfo/python-list


xlutils 2.0.0 released!

2016-06-08 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 2.0.0:

http://pypi.python.org/pypi/xlutils/2.0.0

This release has a couple of small changes:

- Updated documentation.

- Move to virtualenv/pip based development.

- Move to Read The Docs for documentation.

- Use Travis CI for testing and releases.

- Use features of newer testfixtures in
  xlutils.view.CheckerView.

- Python 3 compatibility.

Full docs here:

http://xlutils.readthedocs.org/

Details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
 - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlwt 1.1.2 released!

2016-06-08 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlwt 1.1.2.

This release contains the following:

- Fix failure in style compression under Python 3.

- Documentation tweaks.

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlwt/issues

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

NB: If you would like to become the maintainer of xlwt, please get in 
touch! Neither myself nor John Machin have much time to drive things 
forward nowadays, hence the year or so between each release...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
  - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


errorhandler 2.0.0 Released!

2016-06-06 Thread Chris Withers

Hi All,

errorhandler is a tiny but useful logging handler for the python logging 
framework. It lets you tell when logging above a certain level has 
occurred, even if it's not in code you can control.


I'm pleased to announce the release of errorhandler 2.0.0 featuring the 
following:


- Support for Python 3

- Documentation on Read The Docs

- Continuous testing using Travis CI

- Code coverage reporting through Coveralls

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/errorhandler

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlrd 1.0.0 released!

2016-06-02 Thread Chris Withers

Ugh, and once again, this time with a corrected title...


On 02/06/2016 18:56, Chris Withers wrote:

Hi All,

Well, I've finally called it and tagged current master of xlrd as 1.0.0:

http://pypi.python.org/pypi/xlrd/1.0.0

This release includes the following changes since the last release:

- Official support, such as it is, is now for 2.6, 2.7, 3.3+

- Fixes a bug in looking up non-lowercase sheet filenames by ensuring 
that the sheet targets are transformed the same way as the 
component_names dict keys.


- Fixes a bug for ragged_rows=False when merged cells increases the 
number of columns in the sheet. This requires all rows to be extended 
to ensure equal row lengths that match the number of columns in the 
sheet.


- Fixes to enable reading of SAP-generated .xls files.

- support BIFF4 files with missing FORMAT records.

- support files with missing WINDOW2 record.

- Empty cells are now always unicode strings, they were a bytestring 
on Python2 and a unicode string on Python3.


- Fix for  inlineStr attribute without  child.

- Fix for a zoom of None causes problems on Python 3.

- Fix parsing of bad dimensions.

- Fix xlsx sheet->comments relationship.

Thanks to the following for their contributions to this release:

- Lars-Erik Hannelius
- Deshi Xiao
- Stratos Moro
- Volker Diels-Grabsch
- John McNamara
- Ville Skyttä
- Patrick Fuller
- Dragon Dave McKee
- Gunnlaugur Þór Briem

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

NB: If you would like to become the maintainer of xlwt, please get in 
touch! Neither myself nor John Machin have much time to drive things 
forward nowadays, hence the year or so between each release...


cheers,

Chris



--
https://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.4 released!

2016-06-02 Thread Chris Withers

Hi All,

Well, I've finally called it and tagged current master of xlrd as 1.0.0:

http://pypi.python.org/pypi/xlrd/1.0.0

This release includes the following changes since the last release:

- Official support, such as it is, is now for 2.6, 2.7, 3.3+

- Fixes a bug in looking up non-lowercase sheet filenames by ensuring 
that the sheet targets are transformed the same way as the 
component_names dict keys.


- Fixes a bug for ragged_rows=False when merged cells increases the 
number of columns in the sheet. This requires all rows to be extended to 
ensure equal row lengths that match the number of columns in the sheet.


- Fixes to enable reading of SAP-generated .xls files.

- support BIFF4 files with missing FORMAT records.

- support files with missing WINDOW2 record.

- Empty cells are now always unicode strings, they were a bytestring on 
Python2 and a unicode string on Python3.


- Fix for  inlineStr attribute without  child.

- Fix for a zoom of None causes problems on Python 3.

- Fix parsing of bad dimensions.

- Fix xlsx sheet->comments relationship.

Thanks to the following for their contributions to this release:

- Lars-Erik Hannelius
- Deshi Xiao
- Stratos Moro
- Volker Diels-Grabsch
- John McNamara
- Ville Skyttä
- Patrick Fuller
- Dragon Dave McKee
- Gunnlaugur Þór Briem

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

NB: If you would like to become the maintainer of xlwt, please get in 
touch! Neither myself nor John Machin have much time to drive things 
forward nowadays, hence the year or so between each release...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
 - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlwt 1.1.1 released!

2016-06-02 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlwt 1.1.1.

This release contains the following:

- Fix SST BIFF record in Python 3.

- Fix for writing ExternSheetRecord in Python 3.

- Add the ability to insert bitmap images from buffers as well as files.

- Official support for Python 3.5.

Thanks to "thektulu" and Lele Gaifax for the Python 3 fixes.
Thanks to Ross Golder for the support for inserting images from buffers.

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlwt/issues

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

NB: If you would like to become the maintainer of xlwt, please get in 
touch! Neither myself nor John Machin have much time to drive things 
forward nowadays, hence the year or so between each release...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
 - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.10.0 Released!

2016-05-17 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.10.0 featuring the 
following:


- Fixed examples in documentation broken in 4.5.1.

- Add RangeComparison for comparing against values that fall in a
  range.

- Add MockPopen.set_default().

Thanks to Asaf Peleg for the RangeComparison implementation.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: [TIP] testfixtures 4.8.0 Released!

2016-02-19 Thread Chris Withers

On 18/02/2016 22:35, Mark Lawrence wrote:

On 18/02/2016 22:27, Chris Withers wrote:

Hi All,

I'm pleased to announce the release of testfixtures 4.9.0 featuring the
following:



4.8.0 or 4.9.0, that is the question, or should it be just how good is 
your version control? :)


Gah, I really need to automate the release emails to stop stupidity like 
that :-S


It's 4.9.0...

Chris
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.8.0 Released!

2016-02-18 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.9.0 featuring the 
following:


- Suffixes and well as prefixes for compare() assertion errors.

- Appropriate metadata to indicate official support for Python 3.5.

Thanks for Felix Yan for the metadata patch.

Thanks to Wim Glenn for the suffix patch.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.8.0 Released!

2016-02-02 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.8.0 featuring the 
following:


- More succinct mocking with Replacer:

For setUp usage:

class MyTests(TestCase):

def setUp(self):
replace = Replacer()
replace('x.y.z', Mock())
self.addCleanup(replace.restore)

For one-shot context manager usage:

with Replace('x.y.z', Mock()) as the_mock:
...

Multi-replace context manager usage:

with Replacer() as replace:
dt = replace('x.y.z.datetime', test_datetime())
mock = replace('x.y.do_it', Mock())

- Two context managers for testing warnings:

with ShouldWarn(UserWarning("foo")):
warnings.warn('foo')

with ShouldNotWarn():
... code that should raise no warnings ...

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


mush 2.0 released! - Type-based dependency injection for scripts

2015-12-11 Thread Chris Withers

Hi All,

I'm very happy to announce a new release of Mush, a light weight 
dependency injection framework aimed at enabling the easy testing and 
re-use of chunks of code that make up scripts.


This release is a re-write dropping all the heuristic callable ordering 
in favour of building up defined sequences of callables with labelled 
insertion points.


For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://mush.readthedocs.org/en/latest/examples.html

Full docs are here:

http://mush.readthedocs.org/

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.7, 3.3+:

https://travis-ci.org/Simplistix/mush

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.7.0 Released!

2015-12-10 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.7.0. Since 4.5.1, 
the following have been added:


- Add the ability to pass raises=False to compare() to just get
  the resulting message back rather than having an exception raised.

- Fix a bug that mean symlinked directories would never show up when
  using TempDirectory.compare() and friends.

- Add the `followlinks` parameter to TempDirectory.compare() to
  indicate that symlinked or hard linked directories should be recursed
  into when using `recursive=True`.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.5.1 Released!

2015-11-22 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.5.1. This release 
that contains:


- LogCapture, OutputCapture and TempDirectory
  explicitly show what is expected versus actual when reporting
  differences as of 4.5.0.

- The 4.5.1 release contains a bugfix where OutputCapture couldn't
  handle capturing unicode.

Thanks to Daniel Fortunov for the expected vs actual changes.

Thanks to "tell-k" for the bugfix.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.4.0 Released!

2015-11-01 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.4.0. This is a 
feature release that adds the following:


- Add support for labelling the arguments passed to compare().

- Allow expected and actual keyword parameters to be passed to
  compare().

- Fix "TypeError: unorderable types" when compare() found multiple
  differences in sets and dictionaries on Python 3.

- Add official support for Python 3.5.

- Drop official support for Python 2.6.

Thanks to Daniel Fortunov for the initial ideas for explicit expected 
and actual support in compare().


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.3.3 Released!

2015-09-15 Thread Chris Withers
Sorry, the move to using Travis CI was not without bumps, and we're now 
on 4.3.3, which should be correctly built, including docs up on 
http://testfixtures.readthedocs.org/.


Apologies for the noise...

Chris

On 15/09/2015 14:54, Chris Withers wrote:

Hi All,

I'm pleased to announce the release of testfixtures 4.3.0. This is a 
feature release that adds the following:


- Add TempDirectory.compare with a cleaner, more explicit API that
  allows comparison of only the files in a temporary directory.

- Deprecate TempDirectory.check, TempDirectory.check_dir
  and TempDirectory.check_all

- Relax absolute-path rules so that if it's inside the TempDirectory,
  it's allowed.

- Allow OutputCapture to separately check output to stdout and
  stderr.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris



--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.3.0 Released!

2015-09-15 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.3.0. This is a 
feature release that adds the following:


- Add TempDirectory.compare with a cleaner, more explicit API that
  allows comparison of only the files in a temporary directory.

- Deprecate TempDirectory.check, TempDirectory.check_dir
  and TempDirectory.check_all

- Relax absolute-path rules so that if it's inside the TempDirectory,
  it's allowed.

- Allow OutputCapture to separately check output to stdout and
  stderr.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


https://github.com/Simplistix/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.2.0 Released!

2015-08-11 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.2.0. This is a 
feature release that fixes the following:


- A new MockPopen mock for use when testing code that uses
  subprocess.Popen.

- ShouldRaiss now subclasses object, so that subclasses of it
  may use super().

- Support for Python 3.2 has been officially dropped.

Thanks to BATS Global Markets for donating the code for MockPopen.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.4 released!

2015-07-14 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.9.4:

http://pypi.python.org/pypi/xlrd/0.9.4

This release includes the following changes:

- Automated tests are now run on Python 3.4

- Use ElementTree.iter() if available, not deprecated getiterator()
  when parsing xlsx files.

- Fix #106 : Exception Value: unorderable types: Name() < Name()

- Create row generator expression with Sheet.get_rows()

- Fix for forward slash file separator and lowercase names within xlsx
  internals.

Thanks to the following for their contributions to this release:

- Corey Farwell
- Jonathan Kamens
- Deepak N
- Brandon R. Stoner
- John McNamara

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlwt 1.0.0 released!

2015-04-15 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlwt 1.0.0.

This release contains the following:

- Python 3 support.

- An initial set of unit tests.

- An initial set of Sphinx documentation.

- Move to setuptools for packaging.

- Wire up Travis, Coveralls and ReadTheDocs.

- Allow longs as row indexes.

Big thanks to Thomas Kluyver for his work on Python 3 support, Manfred 
Moitzi

for donating his unit tests.

Belated thanks to Landon Jurgens for his help on converting the 
documentation

to Sphinx.

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlwt/issues

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

NB: This is likely the last "new feature" release of xlwt. If there are 
bugs, we will try and fix them, but it may be a slow process. If you're 
starting a new project, you should probably consider openpyxl or 
xlsxwriter instead.


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.1.2 Released!

2015-01-30 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.1.2. This is a 
bugfix release that fixes the following:


- Clarify documentation for name parameter to LogCapture.

- ShouldRaise now shows different output when two exceptions have
  the same representation but stiff differ.

- Fix bug that could result in a dict comparing equal to a
  list.

Thanks to Daniel Fortunov for the documentation clarification.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.1.1 Released!

2014-10-30 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.1.1. This is a 
bugfix release that fixes the following:


- Fix bug that prevented logger propagation to be controlled by the
  log_capture decorator.

Thanks to John Kristensen for the fix.

It looks like I also forgot to send out the 4.1.0 release announcement, 
which was a bug and feature release containing the following:


- Fix compare() bug when dict instances with tuple keys were not equal.

- Allow logger propagation to be controlled by LogCapture.

- Enabled disabled loggers if a LogCapture is attached to them.

Thanks to Daniel Fortunov for the compare() fix.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.0.2 Released!

2014-09-10 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.0.2. This is a 
bugfix release that fixes the following:


- Fix "maximum recursion depth exceeded" when comparing a string with
  bytes that did not contain the same character.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.0.1 Released!

2014-08-04 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.0.1. This is a 
bugfix release that fixes the following two edge cases:


- Fix bugs when string compared equal and options to compare()
  were used.

- Fix bug when strictly comparing two nested structures containing
  identical objects.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 4.0.0 Released!

2014-07-22 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 4.0.0. This is a new 
feature release with the following major changes:


- Moved from buildout to virtualenv for development.

- compare() will now work recursively on data structures for
  which it has registered comparers, giving more detailed feedback on
  nested data structures. Strict comparison will also be applied
  recursively.

- Official support for Python 3.4.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 3.1.0 Released!

2014-05-25 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 3.1.0. This is a new 
feature and bug fix release featuring the following changes:


- New RoundComparison object for comparing numbers to a given precision

- New 'unless' parameter to ShouldRaise, for situations where an 
exception is raised in Python 2 but not Python 3.


- Fixes for missing imports in fix for rare failures when cleaning up 
TempDirectory instances on Windows.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlutils 1.7.0 released!

2014-04-25 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 1.7.1:

http://pypi.python.org/pypi/xlutils/1.7.1

This release has a couple of small changes:

- Add support for time cells in when using View classes.

- Add support for ``.xlsx`` files when using View classes, at the
  expense of formatting information being available.

Full docs here:

http://pythonhosted.org/xlutils/

Details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: xlutils 1.7.1 released!

2014-04-25 Thread Chris Withers

*sigh* subject line fail...

On 25/04/2014 19:48, Chris Withers wrote:

Hi All,

I'm pleased to announce the release of xlutils 1.7.1:

http://pypi.python.org/pypi/xlutils/1.7.1

This release has a couple of small changes:

- Add support for time cells in when using View classes.

- Add support for ``.xlsx`` files when using View classes, at the
   expense of formatting information being available.

Full docs here:

http://pythonhosted.org/xlutils/

Details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris



--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.3 released!

2014-04-10 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.9.3:

http://pypi.python.org/pypi/xlrd/0.9.3

This release includes the following changes:

- Github issue #49

- Github issue #64 - skip meaningless chunk of 4 zero bytes between two 
otherwise-valid BIFF records


- Github issue #61 - fix updating of escapement attribute of Font 
objects read from workbooks.


- Implemented Sheet.visibility for xlsx files

- Ignore anchors ($) in cell references

- Dropped support for Python 2.5 and earlier, Python 2.6 is now the 
earliest Python release supported


- Read xlsx merged cell elements.

- Read cell comments in .xlsx files

- Added xldate_to_datetime() function to convert from Excel
serial date/time to datetime.datetime object.

Thanks to the following for their contributions to this release:

- John Machin
- Caleb Epstein
- Martin Panter
- John McNamara
- Gunnlaugur Þór Briem
- Stephen Lewis

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 3.0.2 Released!

2014-04-07 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 3.0.2. This is a bug 
fix release featuring the following changes:


- Document ShouldRaise.raised and make it part of the official API.

- Fix rare failures when cleaning up TempDirectory instances on Windows.

If you haven't bumped into it already, testfixtures is a collection of 
helpers for writing succinct unit tests including help for:


- Comparing objects and sequences

Better feedback when the results aren't as you expected along with 
support for comparison of objects that don't normally support comparison.


- Mocking out objects and methods

Easy to use ways of stubbing out objects, classes or individual methods 
for both doc tests and unit tests. Special helpers are provided for 
testing with dates and times.


- Testing logging

Helpers for capturing logging output in both doc tests and unit tests.

- Testing stream output

Helpers for capturing stream output, such as that from print statements, 
and making assertion about it.


- Testing with files and directories

Support for creating and checking files and directories in sandboxes for 
both doc tests and unit tests.


- Testing exceptions

Easy to use ways of checking that a certain exception is raised, even 
down the to the parameters the exception is raised with.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


which async framework? - a summary

2014-03-22 Thread Chris Withers

On 14/03/2014 00:36, Tim Chase wrote:

On 2014-03-14 00:25, Chris Withers wrote:

I've been pleasantly surprised by the succinct, well reasoned and
respectful replies from each of the communities!


As one who doesn't lurk on the other lists, is there a nice executive
summary of their responses?


Well, of course, each person recommended their own framework.

The short version was:

- tornado is a web server, if you're not using it, the async stuff is 
better developed elsewhere


- asyncio is very new, not a lot of protocols out in the wild and not 
much battle testing


- twisted is been around the block a lot, huge amounts of support and an 
active, knowledgeable community. Can feel crufty and old in parts, mind


The community bit swung it for me, so I've opted for Twisted, if I ever 
get a chance to work on the project in question ;-)


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: which async framework?

2014-03-13 Thread Chris Withers

On 11/03/2014 19:41, Terry Reedy wrote:


I suspect I'll just end up cross-posting to the various mailing lists,


Bad idea. Post separately if you must.

 > which I hope won't cause too much offence or kick off any flame wars.

It would do both.


Ye of little faith :-P

I've been pleasantly surprised by the succinct, well reasoned and 
respectful replies from each of the communities!


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: SMTPHandler and mail subject

2014-03-12 Thread Chris Withers
If you want a much more fully-featured mail handler for the standard 
logging framework, there's this:


https://pypi.python.org/pypi/mailinglogger/3.8.0

cheers,

Chris

On 12/03/2014 12:25, eras.rasmu...@gmail.com wrote:


It works. Thank you :)


Eras



--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


Re: which async framework?

2014-03-11 Thread Chris Withers

On 10/03/2014 21:57, Terry Reedy wrote:

I'd like to be able to serve the rest of the web api using a pyramid
wsgi app if possible, and I'd like to be able to write the things that
process requests in and validation out in a synchronous fashion, most
likely spinning off a thread for each one.


If you are writing 'standard' blocking, synchronous code, I am not sure
why you would use any of the above.


The idea I have is to do all the networking async based on a declarative 
set of messages in and recording all messages out and then hand that set 
of messages off to a syncronous layer to make assertions, record into a 
database, etc.



The protocols are all financial (do we really not have a pure-python FIX
library?!) but none are likely to have existing python implementations.

How should I pick between the options? What would people recommend and
why?


I know nothing of tornado. I personally would use asyncio over twisted
if I could because it is simpler, in the stdlib, has the option to write
'untwisted' non-blocking code similar to blocking code, and the docs
easier for me to read.


Thanks.

Guess I was expecting more of a response. I suspect I'll just end up 
cross-posting to the various mailing lists, which I hope won't cause too 
much offence or kick off any flame wars.


I'm faced with a difficult choice that I suspect many in our community 
are, just trying to find out how to make the best decision :-)


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


which async framework?

2014-03-10 Thread Chris Withers

Hi All,

I see python now has a plethora of async frameworks and I need to try 
and pick one to use from:


- asyncio/tulip
- tornado
- twisted

From my side, I'm looking to experimentally build a network testing 
tool that will need to speak a fair few network protocols, both classic 
tcp and multicast-based, and have a web api living on top of it that 
most likely will have a websocket for pumping data to the browser.


I'd like to be able to serve the rest of the web api using a pyramid 
wsgi app if possible, and I'd like to be able to write the things that 
process requests in and validation out in a synchronous fashion, most 
likely spinning off a thread for each one.


The protocols are all financial (do we really not have a pure-python FIX 
library?!) but none are likely to have existing python implementations.


How should I pick between the options? What would people recommend and why?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


MailingLogger 3.8.0 Released!

2014-01-28 Thread Chris Withers

I'm pleased to announce a new release of Mailinglogger.

Mailinglogger provides two handlers for the standard python
logging framework that enable log entries to be emailed either as the
entries are logged or as a summary at the end of the running process.

The handlers have the following features:

- customisable and dynamic subject lines for emails sent

- emails sent with a configurable headers for easy filtering

- flood protection to ensure the number of emails sent is not excessive

- support for SMTP servers that require authentication

- fully documented and tested

This release adds flood limiting to the SummarisingLogger, ensuring that 
emails it sends aren't bigger than MTAs are prepared to handle.


Full docs can be found here:

http://packages.python.org/mailinglogger/

For more information, please see:
http://www.simplistix.co.uk/software/python/mailinglogger
or
http://pypi.python.org/pypi/mailinglogger

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk



--
https://mail.python.org/mailman/listinfo/python-list


mush 1.2 released! - Type-based dependency injection for scripts

2013-12-11 Thread Chris Withers

Hi All,

I'm very happy to announce the a new release of Mush, a light weight 
dependency injection framework aimed at enabling the easy testing and 
re-use of chunks of code that make up scripts.


This release rounds out a some more rough edges after even more real 
world use:


- The 'nothing' singleton is now used  instead of None for marking
  return types, fixing a bug that occurred when a callable tried to
  type-map a result that was None.

- Add an after() type wrapper for callables that need to wait
  until after a resource is used but that can't accept that resource
  as a parameter.

For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://pythonhosted.org/mush/examples.html

Full docs are here:

http://pythonhosted.org/mush/

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.6, 2.7, 3.2 and 3.3 on Linux, Mac OS X and Windows:

http://jenkins.simplistix.co.uk/view/mush/

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


mush 1.1 released! - Type-based dependency injection for scripts

2013-11-27 Thread Chris Withers

Hi All,

I'm very happy to announce the a new release of Mush, a light weight 
dependency injection framework aimed at enabling the easy testing and 
re-use of chunks of code that make up scripts.


This release rounds out a few rough edges after a few months of real 
world use:


- Runners can now be created from other Runners during instantiation or 
using the .extend() method as well as concatenation.


- @requires decorations can now be stacked

- Runners now have a .replace() method allowing you to replace a 
callable with a mock to make sure the callable is passed the right 
parameters.


For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://pythonhosted.org/mush/examples.html

Full docs are here:

http://pythonhosted.org/mush/

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.6, 2.7, 3.2 and 3.3 on Linux, Mac OS X and Windows:

http://jenkins.simplistix.co.uk/view/mush/

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


mush 1.0 released! - Type-based dependency injection for scripts

2013-10-29 Thread Chris Withers

Hi All,

I'm very happy to announce the first public release of Mush, a light 
weight dependency injection framework aimed at enabling the easy testing 
and re-use of chunks of code that make up scripts.


For a worked example of how to use Mush to reduce the copy'n'paste in 
your scripts, please see here:


http://pythonhosted.org/mush/examples.html

Full docs are here:

http://pythonhosted.org/mush/

Downloads are here:

https://pypi.python.org/pypi/mush

Compatible with Python 2.6, 2.7, 3.2 and 3.3 on Linux, Mac OS X and Windows:

http://jenkins.simplistix.co.uk/view/mush/

Any problems, please give me a shout on the simplis...@googlegroups.com 
list!


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


xlutils 1.7.0 released!

2013-10-29 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 1.7.0:

http://pypi.python.org/pypi/xlutils/1.7.0

This release features a handy new view module that lets you do things like:

>>> def print_data(rows):
... for row in rows:
... for value in row:
... print value,
... print

>>> from xlutils.view import View, Row, Col
>>> print_data(view['Sheet1'][:2, :1])
R0C0
R1C0
>>> print_data(view['Sheet1'][Row(1):Row(2), Col('A'):Col('B')])
R0C0 R0C1
R1C0 R1C1

There's also some help for values that are dates or times:

>>> for row in View(join(test_files,'date.xls'))[0]:
... for value in row:
... print repr(value)
datetime.datetime(2012, 4, 13, 0, 0)

Please have a play and let me know what you think.

Full docs here:

http://pythonhosted.org/xlutils/

Details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
https://mail.python.org/mailman/listinfo/python-list


testfixtures 3.0.1 Released!

2013-06-10 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 3.0.1. This is a bug 
fix release featuring the following changes:


- Some documentation tweaks and clarifications.

- Fixed a bug which masked exceptions when using compare() with a broken 
generator.


- Fixed a bug when comparing a generator with a non-generator.

- Ensure LogCapture cleans up global state it may effect.

- Fixed replacement of static methods using a Replacer.

If you haven't bumped into it already, testfixtures is a collection of 
helpers for writing succinct unit tests including help for:


- Comparing objects and sequences

Better feedback when the results aren't as you expected along with 
support for comparison of objects that don't normally support comparison.


- Mocking out objects and methods

Easy to use ways of stubbing out objects, classes or individual methods 
for both doc tests and unit tests. Special helpers are provided for 
testing with dates and times.


- Testing logging

Helpers for capturing logging output in both doc tests and unit tests.

- Testing stream output

Helpers for capturing stream output, such as that from print statements, 
and making assertion about it.


- Testing with files and directories

Support for creating and checking files and directories in sandboxes for 
both doc tests and unit tests.


- Testing exceptions

Easy to use ways of checking that a certain exception is raised, even 
down the to the parameters the exception is raised with.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] Re: xlrd 0.9.2 released!

2013-04-29 Thread Chris Withers

On 26/04/2013 20:37, Ondrej Ján wrote:

   If users have python-xlrd installed, package maintainer should release
only updates, which are API compatible with older versions.


Right, the only API change between 0.6 and 0.9 is the removal of the 
'pickleable' parameter to open_workbook. However, this was removed 
because it hadn't worked in a long long time.



   Both Fedora and CentOS has python>=2.6, python3 is available for Fedora
too (no plans to release python3-xlrd now).


xlrd 0.9 and above works with both python2 and python3 as-is.


   So can I release an update for all my Linux distributions with backward
compatibility of this package? xlrd-0.8 was requested for xlsx support.


I would suggest just going for 0.9.2.


   Are there some howtos describing upgrading applications using xlrd
to newer versions? These documents can help me to choose, if I can release
an update.


There aren't any, because there are no changes. Applications written for 
0.6.x will still work without change when using 0.9.2.


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] Re: xlrd 0.9.2 released!

2013-04-26 Thread Chris Withers

Hi Ondrej,

I don't know what a Fedora/EPEL update is.

If you're going to have two versions, I would suggest:

0.7.9 - for backwards compatibility with Python 2.5 and less, and older 
0.6 and 0.7 xlrd releases.


0.9.2 - for Python 3 support, and with the latest and greatest features.

cheers,

Chris

On 23/04/2013 12:24, Ondrej Ján wrote:

Hello. Can you please tell me, how compatible is this version with older
versions? In Fedora/CentOS we have versions 0.7 and 0.6. Can I release
and Fedora/EPEL update to 0.9.2?

Thank you.

SAL

Dňa utorok, 9. apríla 2013 21:38:30 UTC+2 Chris Withers napísal(-a):

Hi All,

I'm pleased to announce the release of xlrd 0.9.2:

http://pypi.python.org/pypi/xlrd/0.9.2
<http://pypi.python.org/pypi/xlrd/0.9.2>

This release includes the following changes:

- Fix some packaging issues that meant docs and examples were missing
from the tarball.

- Fixed a small but serious regression that caused problems opening
.xlsx files.

If you find any problems, please ask about them on the
python...@googlegroups.com  list, or submit an issue on
GitHub:

https://github.com/python-excel/xlrd/issues
<https://github.com/python-excel/xlrd/issues>

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google
Groups "python-excel" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to python-excel+unsubscr...@googlegroups.com.
To post to this group, send an email to python-ex...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-excel?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.



__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
__


--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.2 released!

2013-04-09 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.9.2:

http://pypi.python.org/pypi/xlrd/0.9.2

This release includes the following changes:

- Fix some packaging issues that meant docs and examples were missing 
from the tarball.


- Fixed a small but serious regression that caused problems opening 
.xlsx files.


If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlwt 0.7.5 released!

2013-04-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlwt 0.7.5.

This release contains the following:

- Fixes a bug that could cause a corrupt SST in .xls files written by a 
wide-unicode Python build.


- A ValueError is now raised immediately if an attempt is made to set 
column width to other than an int in range(65536)


- Added the ability to set a custom RGB colour in the palette to use for 
colours. Thanks to Alan Rotman for the work, although this could really 
use an example in the examples folder...


- Fixed an issue trying to set a diagonal border using easyxf. Thanks to 
Neil Etheridge for the fix.


- Fixed a regression from 0.7.2 when writing sheets with frozen panes.

If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlwt/issues

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.1 released!

2013-04-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.9.1:

http://pypi.python.org/pypi/xlrd/0.9.1

This release includes the following changes:

- A tonne of bugs when used with Python 3 were fixed thanks to John Machin.

- Extra byte data in hyperlink records now records a warning rather than 
raising an exception.


- Improved handling of aberrant Excel 4.0 Worksheet files

- setup.py and MANIFEST simplifaction along with removal of a tonne of 
code that was needed before we dropped support for Python 2.5 and below. 
Thanks to Thomas Kluyver to the commits.


- Removed vestiges of support for pickleable Book objects. This hasn't 
worked for some time, so the options to support it have gone.


If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlutils 1.6.0 released!

2013-04-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 1.6.0:

http://pypi.python.org/pypi/xlutils/1.6.0

This release features shiny new Sphinx-based documentation:

http://pythonhosted.org/xlutils/

It also has some changes that make xlutils compatible with the upcoming 
xlrd 0.9.1 release.


Details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


testfixtures 3.0.0 Released!

2013-03-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 3.0.0. The big 
change for this release is that testfixtures now supports Python 2.6, 
2.7, 3.2 and 3.3!


As a result, some changes have been made to TempDirectory to support 
encoding and decoding. There's also a nice little addition of an 
optional prefix to the message generated when comparisons fail:



from testfixtures import compare
compare(1, 2, prefix='wrong number of orders')

Traceback (most recent call last):
 ...
AssertionError: wrong number of orders: 1 != 2

The means that you still get the rich comparison feedback offered by 
compare, but can also add more information to make any failure more 
easily understandable without having to dig into the source.


Other than that, there have been a couple of minor bug fixes.

If you haven't bumped into it already, testfixtures is a collection of 
helpers for writing succinct unit tests including help for:


- Comparing objects and sequences

Better feedback when the results aren't as you expected along with 
support for comparison of objects that don't normally support comparison.


- Mocking out objects and methods

Easy to use ways of stubbing out objects, classes or individual methods 
for both doc tests and unit tests. Special helpers are provided for 
testing with dates and times.


- Testing logging

Helpers for capturing logging output in both doc tests and unit tests.

- Testing stream output

Helpers for capturing stream output, such as that from print statements, 
and making assertion about it.


- Testing with files and directories

Support for creating and checking files and directories in sandboxes for 
both doc tests and unit tests.


- Testing exceptions

Easy to use ways of checking that a certain exception is raised, even 
down the to the parameters the exception is raised with.


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.9.0 released, now with Python 3 support!

2013-01-31 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.9.0:

http://pypi.python.org/pypi/xlrd/0.9.0

This release means the supported versions of Python supported by xlrd 
are 2.6, 2.7, 3.2 and 3.3!


Very exciting stuff, and a massive thank you to
Thomas Kluyver (@takluyver on GitHub) for doing the bulk of the work to 
make this happen.


Also thanks to Martin Panter (@vadmium in GitHub, if I'm following 
correctly) for his additional work on the pull request and Manfred 
Moitzi for re-licensing his unit tests so we could include them.


This is obviously a big release, so I wouldn't recommend jumping on it 
in production just yet, but it would be great if people could get 
testing on both Python 2 and Python 3.


If you find any problems, please ask about them on the 
python-ex...@googlegroups.com list, or submit an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


metaclass question

2012-09-24 Thread Chris Withers

Hi All,

Is there a metaclass-y way I could cause the following:

class TheParser(Parser):
def handle_ARecord(self):
pass
def handle_ARecord(self):
pass

...to raise an exception as a result of the 'handle_ARecord' name being 
reused?


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Unittest - testing for filenames and filesize

2012-08-31 Thread Chris Withers

On 23/08/2012 12:25, Tigerstyle wrote:

class FileTest(unittest.TestCase):

 def setUp(self):
 self.origdir = os.getcwd()
 self.dirname = tempfile.mkdtemp("testdir")
 os.chdir(self.dirname)


I wouldn't change directories like this, it's pretty fragile, just use 
absolute paths.



 def test_1(self):
 "Verify creation of files is possible"
 for filename in ("this.txt", "that.txt", "the_other.txt"):
 f = open(filename, "w")
 f.write("Some text\n")
 f.close()
 self.assertTrue(f.closed)

 def test_2(self):
 "Verify that current directory is empty"
 self.assertEqual(glob.glob("*"), [], "Directory not empty")

 def tearDown(self):
 os.chdir(self.origdir)
 shutil.rmtree(self.dirname)


Seeing this, you might find the following tools useful:

http://packages.python.org/testfixtures/files.html

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Context manager to save/restore a name binding

2012-08-31 Thread Chris Withers

Hi Ben,

On 31/08/2012 03:36, Ben Finney wrote:

That way, I can set ‘sys.dont_write_bytecode’ to the value I need in
this part of the code, knowing that however the code continues the
previous value of that setting will be restored to whatever it was
before I touched it.

Have I re-invented a context manager which already exists? Is there a
better way to do what ‘preserve_value’ is doing?


Depends on the context (ho ho..), but if it's testing, then have a look at:

http://packages.python.org/testfixtures/mocking.html#the-context-manager

There's plenty of other goodies you may like in there too...

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented

2012-08-30 Thread Chris Withers

On 30/08/2012 03:57, python-ex...@raf.org wrote:


hopefully the intention that xlrd not support formats in xlsx
files will change one day into an intention to support them. :-)


The intention is there, sadly the time to work on it is not.

John Machin would be the person best placed to do the work, if anyone 
fancies sponsoring the work, he might be able to direct more time to it..


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Is Python a commercial proposition ?

2012-08-24 Thread Chris Withers

On 30/07/2012 03:31, Rodrick Brown wrote:

Hence the reason why no one will seriously look at Python for none
glue work or simple web apps.  When it comes to designing complex
applications that need to exploit large multicore systems Python just
isn't an option.

Its still not possible to be a pure Python developer and find gainful
employment today.


Oh come on, are you *actually* serious?

Pretty much everything you've said is nothing but inept bullshit.
Please stop.

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: xlrd 0.8.0 released!

2012-08-22 Thread Chris Withers

On 22/08/2012 15:03, Hubert Holin wrote:

I would like to keep up with the development but would like to know
which is the repo to follow. The Python-Excel website points to
https://github.com/python-excel/xlrd, but that one does not have a 0.8.0
tag (or at least did not have one when I looked a few days ago, and I
unfortunately can't check now, from work).


Oops, I was very bad... not only did I forget to push the tag (it's 
annoying that you have to do a "git push --tags" to get tasg pushed) but 
I actually forgot to commit the final change that stamped on the 0.8.0 
version number :-S


Fixed and pushed now, thanks for noticing :-)

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


testfixtures 2.3.5 Released!

2012-08-13 Thread Chris Withers

Hi All,

I'm pleased to announce the release of testfixtures 2.3.5. testfixtures 
is a collection of helpers for writing succinct unit tests including 
help for:


- Comparing objects and sequences

Better feedback when the results aren't as you expected along with 
support for comparison of objects that don't normally support comparison.


- Mocking out objects and methods

Easy to use ways of stubbing out objects, classes or individual methods 
for both doc tests and unit tests. Special helpers are provided for 
testing with dates and times.


- Testing logging

Helpers for capturing logging output in both doc tests and unit tests.

- Testing stream output

Helpers for capturing stream output, such as that from print statements, 
and making assertion about it.


- Testing with files and directories

Support for creating and checking files and directories in sandboxes for 
both doc tests and unit tests.


- Testing exceptions

Easy to use ways of checking that a certain exception is raised, even 
down the to the parameters the exception is raised with.


This release fixes a small bug that meant failures in dictionary 
comparison didn't always produce the same output. (It was correct, just 
partly unsorted)


The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


http://www.simplistix.co.uk/software/python/testfixtures

Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.8.0 released!

2012-08-01 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.8.0:

http://pypi.python.org/pypi/xlrd/0.8.0

This release finally lands the support for both .xls and .xlsx files.
Many thanks to John Machin for all his work on making this happen.
Opening of .xlsx files is seamless, just use xlrd as you did before and 
it all should "just work".


xlrd 0.8.0 is also the first release that that targets Python 2.6 and 
2.7, but no Python 3 just yet. Python 2.5 and below may work but are not 
supported. If you need to use Python 2.5 or earlier, please stick to 
xlrd 0.7.x.


Speaking of xlrd 0.7.x, that's now in "requested maintenance only" mode 
;-) That means, if possible, use 0.8.x. If you have a really good reason 
for sticking with 0.7.x, and you find a bug that you can't work around, 
then please make this clear on the python-ex...@googlegroups.com and 
we'll see what we can do.


If you find any problems, please ask about them on the list, or submit 
an issue on GitHub:


https://github.com/python-excel/xlrd/issues

Full details of all things Python and Excel related can be found here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: 转发:Re:how can I implement "cd" like shell in Python?

2012-06-29 Thread Chris Withers

On 28/06/2012 12:39, 梦幻草 wrote:


thanks !But this method can not change the directory of the main
process.For example:
the current directory is "/home/work/local/scripts",this directory have
a python script file "cd.py"
after executing the script cd.py by "python cd.py ..",the current work
directory has no changes,the path is still "/home/work/local/scripts"


Sounds like you might want to give the ipython shell a go, since it has 
a lot of this already implemented.


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: JOB

2012-06-26 Thread Chris Withers

Sonika,

On 26/06/2012 01:34, Sonika Sardana wrote:

`

===

**Job Description**:

Short description of position Looking for a strong PHP developer who is
comfortable with some Linux administration and open to learning Python
and Java too.


Please do not spam the lists, especially with jobs that aren't even 
python focused...


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: using SQLalchemy

2012-06-22 Thread Chris Withers

On 21/06/2012 11:50, andrea crotti wrote:

We have a very chaotic database (on MySql) at the moment, with for
I'm trying to use SQLalchemy and it looks absolutely great, but in
general as a policy we don't use external dependencies..


That's a very foolish general policy, a lot of the power of python is in 
the huge array of excellent third party libraries and frameworks, but 
each to their own...



To try to do an exception in this case:
- are there any problems with SQLalchemy on Windows?


No.


- are there any possibly drawbacks of using SQLalchemy instead of the
   MySqlDB interface?


You won't be using it instead of mysqldb, you'll be using it as a layer 
over mysqldb.



   For the second point I guess that we might have a bit less fine
   tuning,


Not so, any tuning you can do direct against the dbapi driver can still 
be done through SQLAalchemy.



   Any other possible issue?


If you have problems, I'd suggest asking on the sqlalchemy mailing list:

http://groups.google.com/group/sqlalchemy

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.7.9 released!

2012-06-20 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.7.9:

http://pypi.python.org/pypi/xlrd/0.7.9

This release fixes an annoying merge bug on my part that resulted in a 
"NameError: global name 'BYTES_X00' is not defined" error where opening 
certain Excel files.


Barring any more brown bag issues, this will be the last release in the 
0.7 series and the last release supporting Python 2.1 and 2.2.


The next release, in a week or so if there are no further 0.7 problems, 
will be 0.8.0 targeting Python 2.6 and upwards and featuring support for 
reading data from .xlsx files (although not formatting, unless some 
sponsorship or patches turn up). If you're interested in this, it would 
be great if you could try out the master branch and let us know if you 
find any problems:


https://github.com/python-excel/xlrd

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Need a Python Developer...

2012-06-15 Thread Chris Withers

On 05/06/2012 19:18, o2kcompliant wrote:

Hi Guys,

I have a need for a Python Developer...


How about using the Python job board rather than spamming the mailing list:

http://www.python.org/community/jobs/howto/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.7.8 released!

2012-06-07 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.7.8:

http://pypi.python.org/pypi/xlrd/0.7.8

This release features the following changes:

- Compatibility with Python 2.1 and 2.2 is restored.

- Fix for github issue #7: assertion error when reading file with 
xlwt-written bitmap. The assertion is now ignored and a warning logged 
if verbosity > 0.


- superfluous zero bytes at end of xls OBJECT records are now ignored.

For full details, please see the GitHub repository:

https://github.com/python-excel/xlrd

Barring any packaging issues or serious bugs, this will be the last 
release in the 0.7 series and the last release supporting Python 2.1 and 
2.2.


The next release, likely in a couple of weeks time, will be 0.8.0 
targeting Python 2.6 and upwards and featuring support for reading data 
from .xlsx files (although not formatting, unless some sponsorship or 
patches turn up). If you're interested in this, it would be great if you 
could try out the master branch and let us know if you find any problems:


https://github.com/python-excel/xlrd

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Chris Withers

On 23/05/2012 00:34, Dan Stromberg wrote:


I find it more than a little disappointing that the Python Job Board
doesn't do latitude and longitude.  It's a big missed opportunity.  Yes,
it's not an identical process from nation to nation, but it's still
important.


If you had experience of how incompetent the majority of recruiters are, 
you'd realise that this is a pretty futile hope ;-)


Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: recruiter spam

2012-05-04 Thread Chris Withers

Please don't spam the list with job adverts, post to the job board instead:

http://www.python.org/community/jobs/howto/

cheers,

Chris

On 03/05/2012 22:13, Preeti Bhattad wrote:

Hi there,
If you have USA work visa and if you reside in USA;



--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlutils 1.5.2 released!

2012-04-13 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 1.5.2:

http://pypi.python.org/pypi/xlutils/1.5.2

This release features the following changes:

- When using xlutils.copy, the datemode is now copied across from the 
source solving date problems with certain files.


- The errorhandler package is no longer a hard dependency

- As a minimum, xlrd 0.7.2 and xlwt 0.7.4 are now required.

All the details of where to find mailing lists, issue trackers, and the 
like for xlutils can be found here:


http://www.simplistix.co.uk/software/python/xlutils

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers

On 13/04/2012 11:01, Chris Withers wrote:

For a full details, please see the GitHub repository:

https://secure.simplistix.co.uk/svn/xlwt/trunk


Er, that should be:

https://github.com/python-excel/xlwt

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.7.7 released!

2012-04-13 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.7.7:

http://pypi.python.org/pypi/xlrd/0.7.7

This release features the following changes:

- Google Spreadsheet doesn't write the undefined-contents byte at the 
end of a NOTE record. Excel doesn't care. Now xlrd doesn't care either.


- Version information is now stored in a .py file, hopefully keeping 
py2exe and other freeze tools happy.


For a full details, please see the GitHub repository:

https://github.com/python-excel/xlrd

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlwt 0.7.4 released!

2012-04-13 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlwt 0.7.4. This release has only 
a couple of changes in it:


- Python 2.3 to 2.7 are now the officially supported versions, no Python 
3 yet, sorry.


- The datemode in an xlwt Workbook can be set to 1904 by doing 
`workbook.dates_1904 = 1` and is written to the output file. However the 
datemode was not being reflected in conversions from datetime.datetime 
and datetime.date objects to floats for output, resulting in dates that 
were 4 years too high when seen in Excel.


For a full details, please see the GitHub repository:

https://secure.simplistix.co.uk/svn/xlwt/trunk

There's also details of all things Python and Excel related here:

http://www.python-excel.org/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: xlrd 0.7.6 released!

2012-04-05 Thread Chris Withers

On 04/04/2012 20:26, Karim wrote:

By the way, I reported an issue to you in this mailing list some time
ago about unicode data.


I have no recollection of this.

If you experience any bugs, the correct place to report them is:

https://github.com/python-excel/xlrd/issues

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers

On 04/04/2012 09:57, Karim wrote:

Hello,

This release manage the '.xlsx' format?


No, that is planned for the 0.8 release.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.7.6 released!

2012-04-04 Thread Chris Withers

And the goat sacrifice continues...

On 03/04/2012 08:34, Chris Withers wrote:

On 03/04/2012 08:04, Chris Withers wrote:

I'm pleased to announce the release of xlrd 0.7.4.

I've just release a 0.7.5 that fixes this.


Except it didn't, I've just released 0.7.6, which will hopefully bring 
an end to the brown-bagging.


Any more problems, please let the python-ex...@googlegroups.com mailing 
list know...


cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] Re: xlrd 0.7.4 released!

2012-04-04 Thread Chris Withers

On 03/04/2012 21:46, Josh English wrote:

When I try to import xlrd, I get an error

IOError: [Errno 2] No such file or directory:
'C:\\Users\\josh\\Desktop\\Portable
Python\\App\\lib\\site-packages\\xlrd-0.7.5-py2.7.egg\\xlrd\\version.txt'


*sigh* I hate python packaging, I'll get a 0.7.6 release out this 
morning which will hopefully finally fix this...



I didn't think EGG files could be folders. Is there a change in the way
the EGG file was meant to be distributed?


Eggs have always been installed as folders.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: [pyxl] xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers

On 03/04/2012 08:04, Chris Withers wrote:

Hi All,

I'm pleased to announce the release of xlrd 0.7.4.


*sigh*

As pointed out, I stuffed up the release by not including a new file in 
the MANIFEST. My bad.


I've just release a 0.7.5 that fixes this.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlrd 0.7.4 released!

2012-04-03 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlrd 0.7.4.

This release features the following changes:

- Fixed a bug where xlrd was silently truncating long text formula results

- Avoid parsing STYLE records when formatting_info=False

- More tolerance of out-of-spec files.

- Minor performance improvements.

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Software Engineer -

2012-03-11 Thread Chris Withers

On 11/03/2012 09:00, Blue Line Talent wrote:

Blue Line Talent is looking for a mid-level software engineer with
experience in a combination of


Please don't spam this list with jobs, use the Python job board instead:

http://www.python.org/community/jobs/

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlutils 1.5.1 released!

2012-03-05 Thread Chris Withers

Hi All,

xlutils 1.5.1 is out, fixing the usual embarrassing mistake I make when 
I move projects from Subversion to Git that results in some required 
non-.py files being omitted.


All the details of where to find mailing lists, issue trackers, and the 
like for xlutils can be found here:


http://www.simplistix.co.uk/software/python/xlutils

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


xlutils 1.5.0 released!

2012-03-05 Thread Chris Withers

Hi All,

I'm pleased to announce the release of xlutils 1.5.0, featuring the 
following changes:


- Now takes advantage of "ragged rows" optimisation in xlrd 0.7.3

- Add support for PANE records to xlutils.copy, which means that zoom
  factors are now copied.

The full change log is here:

http://www.simplistix.co.uk/software/python/xlutils/changes

Now, the other big change for this release is that development has moved 
to GitHub:


https://github.com/cjw296/xlutils

All the details of where to find mailing lists, issue trackers, and the 
like for xlutils can be found here:


http://www.simplistix.co.uk/software/python/xlutils

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


Re: Adopting ‘lockfile’

2012-03-04 Thread Chris Withers

On 03/03/2012 21:43, Ben Finney wrote:

I don't see a need to horse around with Git either :-) It's currently in
Subversion, right? Can you not export the VCS history from Google Code's
Subversion repository to a ‘fastimport’ stream? Maybe someone with
experience on that site can help us.


What's wrong with a "git svn clone svn-url-here" ?

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
   - http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listinfo/python-list


  1   2   3   4   >