Re: rst2odt and odf-config-file option

Guenter Milde via Docutils-users <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2019-02-08, Dave Kuhlman wrote:

...

> So, I need to ask: We want a *single* version that runs under both
> Python 2 and Python 3, right?

This is a long term goal, but currently, Docutils requires conversion with
2to3 during installation to run with Py 3.

> Since a version that has been converted with `2to3` only runs under
> Python 3, I'll need to do the following:

> 1. Convert `odf_odt/__init__.py` so that it runs under both Python 2
>    and Python 3.  Then do a commit and check-in.

> 2. Add Gilles's change.  Then do a commit and check-in.

> 3. Do the clean-up for `flake8` and `pep8`.  Then do a commit and
>    check-in.

> I'm pretty sure that is what we want.  But, I thought I'd ask,
> because the number of changes needed for Python 3 is quite large.

This will become easier once we drop supporting Python 2.6 and older 3.x
versions after the 0.15 release.

> In the meantime, I'll get started.  Suggestions and guidance will be
> welcomed.

If you are not put off by the large changes, go ahead now. Otherwise add the
change to the Python-2 version and run the tests on both.

I do the Python 3 tests with

  # convert with 2to3:
  
  cd ~/Code/Python/docutils/docutils
  python3 setup.py build || exit $?
  
  # and run the tests there::
  
  python3.5 test3/alltests.py || exit $?


Günter



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.