<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/disutils2.git/distutils2/dist.py, branch python3</title>
<subtitle>hg.python.org: Obsolete (use python-setuptools-git)
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/'/>
<entry>
<title>Merge compat/_backport cleanup from default.</title>
<updated>2011-11-23T12:58:51+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-11-23T12:58:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=c2e31bfbb48378e4ee91885046cc05765a54eabc'/>
<id>c2e31bfbb48378e4ee91885046cc05765a54eabc</id>
<content type='text'>
For some reason, the diff for distutils/_backport/misc.py makes it seem
like it?s a new file instead of showing the changes I did during the
merge.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For some reason, the diff for distutils/_backport/misc.py makes it seem
like it?s a new file instead of showing the changes I did during the
merge.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ye olde merge.</title>
<updated>2011-11-12T06:33:45+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-11-12T06:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=ed71facf9298a2d12dc631f86e4ecdd33a117380'/>
<id>ed71facf9298a2d12dc631f86e4ecdd33a117380</id>
<content type='text'>
I broke test_mixin2to3 somehow; distutils2-default is okay and packaging too,
so I don?t see an obvious reason right now, I?ll investigate later.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I broke test_mixin2to3 somehow; distutils2-default is okay and packaging too,
so I don?t see an obvious reason right now, I?ll investigate later.
</pre>
</div>
</content>
</entry>
<entry>
<title>Undo potentially confusing name change.</title>
<updated>2011-11-12T04:08:01+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-11-12T04:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=123c3e80926d8ae17cb9c21b5b85db821f671563'/>
<id>123c3e80926d8ae17cb9c21b5b85db821f671563</id>
<content type='text'>
This method was named reinitialize_command in distutils and accompanied
by a comment suggesting to change it to get_reinitialized_command.
Following that, I did the change for distutils2, but it proved
confusing: The Distribution object has an internal cache of command
objects, to make sure only one instance is ever used, and the name
get_reinitialized_command could suggest that the object returned was
independent of that cache, which it was not.  I?m reverting the name
change to make code clearer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This method was named reinitialize_command in distutils and accompanied
by a comment suggesting to change it to get_reinitialized_command.
Following that, I did the change for distutils2, but it proved
confusing: The Distribution object has an internal cache of command
objects, to make sure only one instance is ever used, and the name
get_reinitialized_command could suggest that the object returned was
independent of that cache, which it was not.  I?m reverting the name
change to make code clearer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Minor assorted cleanups.</title>
<updated>2011-11-12T03:29:11+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-11-12T03:29:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=118a6f15c7f87e80fec94b21385079d595614c22'/>
<id>118a6f15c7f87e80fec94b21385079d595614c22</id>
<content type='text'>
- Remove __main__ blocks obsoleted by pysetup
- Fix typo ?seperate?
- Add one test that was promised but not written
- Reorganize one file
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Remove __main__ blocks obsoleted by pysetup
- Fix typo ?seperate?
- Add one test that was promised but not written
- Reorganize one file
</pre>
</div>
</content>
</entry>
<entry>
<title>Bring back callable.</title>
<updated>2011-11-11T23:42:41+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-11-11T23:42:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=34688250a4964f5b9fc893a43319acbb0cadc054'/>
<id>34688250a4964f5b9fc893a43319acbb0cadc054</id>
<content type='text'>
hasattr is subtly wrong, as special methods are looked up on the class,
and given that the callable builtin is back in Python 3.2 we may as well
use it.  Regular users shouldn?t see the DeprecationWarnings, and us
developers can just ignore thme when running tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
hasattr is subtly wrong, as special methods are looked up on the class,
and given that the callable builtin is back in Python 3.2 we may as well
use it.  Regular users shouldn?t see the DeprecationWarnings, and us
developers can just ignore thme when running tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Start a branch to provide Distutils2 for Python 3.</title>
<updated>2011-09-23T23:06:28+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-09-23T23:06:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=d04e4c8c1027310520576e1890061799a0f64f0b'/>
<id>d04e4c8c1027310520576e1890061799a0f64f0b</id>
<content type='text'>
This codebase is compatible with 3.1, 3.2 and 3.3.  It was converted with 2to3
and a semi-automated diff/merge with packaging in 3.3 to fix some idioms.
We?ve now come full circle from 2.x to 3.x to 2.x to 3.x again :)

Starting from now, contributors can make patches for packaging (preferred, as
the stdlib?s regrtest is very useful), distutils2 or distutils-python3, and
we?ll make patches flow between versions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This codebase is compatible with 3.1, 3.2 and 3.3.  It was converted with 2to3
and a semi-automated diff/merge with packaging in 3.3 to fix some idioms.
We?ve now come full circle from 2.x to 3.x to 2.x to 3.x again :)

Starting from now, contributors can make patches for packaging (preferred, as
the stdlib?s regrtest is very useful), distutils2 or distutils-python3, and
we?ll make patches flow between versions.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove display options (--name, etc.) from the Distribution class.</title>
<updated>2011-09-19T01:44:02+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-09-19T01:44:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=58d5e245ec21306380033c6d3e6d0c860b6f2dc4'/>
<id>58d5e245ec21306380033c6d3e6d0c860b6f2dc4</id>
<content type='text'>
These options were used to implement ?setup.py --name?,
?setup.py --version?, etc. which are now handled by the pysetup metadata
action or direct parsing of the setup.cfg file.

As a side effect, the Distribution class no longer accepts a 'url' key
in its *attrs* argument: it has to be 'home_page' or 'home-page' to be
recognized as a valid metadata field and passed down to the
dist.metadata object.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These options were used to implement ?setup.py --name?,
?setup.py --version?, etc. which are now handled by the pysetup metadata
action or direct parsing of the setup.cfg file.

As a side effect, the Distribution class no longer accepts a 'url' key
in its *attrs* argument: it has to be 'home_page' or 'home-page' to be
recognized as a valid metadata field and passed down to the
dist.metadata object.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the backport fixes.</title>
<updated>2011-09-18T18:20:13+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-09-18T18:20:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=506cfea8bbd41e865bc36a836bdbc05aae8d74bb'/>
<id>506cfea8bbd41e865bc36a836bdbc05aae8d74bb</id>
<content type='text'>
Backports:
- sysconfig is now always imported from our backports
- when hashlib is not found, our backport is used instead of the md5
  module (debatable; we could just drop hashlib)

Version-dependent features:
- PEP 370 features are only enabled for 2.6+
- the check for sys.dont_write_bytecode was fixed to use getattr
  with a default value instead of hasattr

Idioms/syntax:
- octal literals lost their extra 0
- misused try/except blocks have been changed back to try/finally
  (it?s legal in 2.4 too, it?s only try/except/finally that isn?t)
- exception catching uses the regular 2.x idiom instead of sys.exc_info
- file objects are closed within finally blocks (this causes much
  whitespace changes but actually makes diff with packaging easier)

Renamed modules:
- some missed renamings (_thread, Queue, isAlive, urllib.urlsplit, etc.)
  were fixed

Other:
- a few false positive replacements of ?packaging? by ?distutils2? in
  comments or docstrings were reverted
- util.is_packaging regained its name
- assorted whitespace/comment/import changes to match packaging
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Backports:
- sysconfig is now always imported from our backports
- when hashlib is not found, our backport is used instead of the md5
  module (debatable; we could just drop hashlib)

Version-dependent features:
- PEP 370 features are only enabled for 2.6+
- the check for sys.dont_write_bytecode was fixed to use getattr
  with a default value instead of hasattr

Idioms/syntax:
- octal literals lost their extra 0
- misused try/except blocks have been changed back to try/finally
  (it?s legal in 2.4 too, it?s only try/except/finally that isn?t)
- exception catching uses the regular 2.x idiom instead of sys.exc_info
- file objects are closed within finally blocks (this causes much
  whitespace changes but actually makes diff with packaging easier)

Renamed modules:
- some missed renamings (_thread, Queue, isAlive, urllib.urlsplit, etc.)
  were fixed

Other:
- a few false positive replacements of ?packaging? by ?distutils2? in
  comments or docstrings were reverted
- util.is_packaging regained its name
- assorted whitespace/comment/import changes to match packaging
</pre>
</div>
</content>
</entry>
<entry>
<title>Branch merge, reverting some of Alexis? changes.</title>
<updated>2011-09-13T11:28:48+00:00</updated>
<author>
<name>?ric Araujo</name>
<email>merwok@netwok.org</email>
</author>
<published>2011-09-13T11:28:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=24c3ea82342d802d3824cb23fdf54b67abf3478f'/>
<id>24c3ea82342d802d3824cb23fdf54b67abf3478f</id>
<content type='text'>
The print statement fixes that were in my branch override the print(u'')
calls added by Alexis; the import at function scope were removed for the
usual reasons; d2._backport.hashlib is used if hashlib is not available
instead of md5.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The print statement fixes that were in my branch override the print(u'')
calls added by Alexis; the import at function scope were removed for the
usual reasons; d2._backport.hashlib is used if hashlib is not available
instead of md5.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes for Python 2.4 compatibility</title>
<updated>2011-09-12T11:33:18+00:00</updated>
<author>
<name>Jeremy Kloth</name>
<email>jeremy.kloth@gmail.com</email>
</author>
<published>2011-09-12T11:33:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/disutils2.git/commit/?id=fca3d10711fe53a77e182581634a1a7c64030ec0'/>
<id>fca3d10711fe53a77e182581634a1a7c64030ec0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
