Re: [Twisted-Python] Twisted 16.7.0rc1 Release Candidate Announcement

2017-01-03 Thread Terekhov, Mikhail

On 12/29/16 08:27, Glyph Lefkowitz wrote:



On Dec 28, 2016, at 15:20, John Santos > wrote:


Seems to require a new Python module, Automat.


Good catch, that probably should have been announced at least a little :).


(Not mentioned in the NEWS file, INSTALL, etc.)


Despite the fact that it would have been good to mention this 
particular dependency because its adoption is a new architectural 
direction for Twisted, in /general/ we're actually planning to do less 
communication of dependencies in this way.  Right now, we have 
redundant listing of dependencies in a few places, but in the future, 
setup.py (or more specifically, "packaging metadata") will be the one, 
authoritative place that such things are listed.


I found Automat 0.3.0 (with Glyph's fingerprints on it) at PyPI, but 
it only exists in .whl format.


Although you probably /should/ just use the wheel, the fact that there 
was /only/ a wheel was an oversight.  I've uploaded an sdist and 
pushed a corresponding tag (after making sure that the source files 
all matched, of course).


It is probably an off topic but it would not hurt to add a more verbose 
description and a link to the sources on PyPI for the Automat package 
especially if it is so important for Twisted.
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Twisted 16.7.0rc1 Release Candidate Announcement

2017-01-03 Thread Glyph Lefkowitz

> On Jan 3, 2017, at 7:58 AM, Terekhov, Mikhail  wrote:
> 
> On 12/29/16 08:27, Glyph Lefkowitz wrote:
>> 
>>> On Dec 28, 2016, at 15:20, John Santos mailto:j...@egh.com>> 
>>> wrote:
>>> 
>>> Seems to require a new Python module, Automat.
>> 
>> Good catch, that probably should have been announced at least a little :).
>> 
>>> (Not mentioned in the NEWS file, INSTALL, etc.)
>> 
>> Despite the fact that it would have been good to mention this particular 
>> dependency because its adoption is a new architectural direction for 
>> Twisted, in general we're   actually planning to do less 
>> communication of dependencies in this way.  Right now, we have redundant 
>> listing of dependencies in a few places, but in the future, setup.py (or 
>> more specifically, "packaging metadata") will be the one, authoritative 
>> place that such things are listed.
>> 
>>> I found Automat 0.3.0 (with Glyph's fingerprints on it) at PyPI, but it 
>>> only exists in .whl format.
>> 
>> Although you probably should just use the wheel, the fact that there was 
>> only a wheel was an oversight.  I've uploaded an sdist and pushed a 
>> corresponding tag (after making sure that the source files all matched, of 
>> course).
>> 
> It is probably an off topic but it would not hurt to add a more verbose 
> description and a link to the sources on PyPI for the Automat package 
> especially if it is so important for Twisted.

Please feel free to submit a PR to automat to do this.  There's lots of 
descriptive material here: 
> which you could use 
to update the PyPI metadata part.

-glyph

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-01-03 Thread Glyph Lefkowitz

> On Jan 2, 2017, at 6:10 AM, Jean-Paul Calderone  
> wrote:
> 
> On Thu, Sep 1, 2016 at 11:36 AM, Amber "Hawkie" Brown 
> mailto:hawk...@atleastfornow.net>> wrote:
> 
> > On 1 Sep 2016, at 21:42, Yuri  > > wrote:
> >
> > Hi all
> >
> > I couldn't find Twisted-specific group, so posting here.
> >
> > Recently Twisted 16.4.0 got released. Yesterday I've tried to upgrade it 
> > for my apps and got an error.
> >
> > ...
> >
> > The errors comes down to this: twistd script does not add current working 
> > directory to python path (or removes it, I don't know what exactly 
> > happens), so it fails to import any packages/modules from it. The issue 
> > does not appear in previous version (Twisted 16.3.2).
> >
> > Any ideas what caused it?
> 
> Yes -- we moved to using setuptools console scripts, and these console 
> scripts don't add "." to the PYTHONPATH. We realised this in prerelease but 
> decided against fixing it, as it adding the current working dir to the PATH 
> has lead to a lot of  subtle bugs in the past and this is a good chance to 
> make a break from them.
> 
> So, in short, this is expected behaviour -- we generally want people to be 
> running twistd, trial, etc on *installed* Python packages -- testing or 
> running from checkouts often hides many bugs about what is or isn't included 
> in the installed package by accident. If you rely on this behaviour, though, 
> set the PYTHONPATH environment variable to "." -- e.g. `env PYTHONPATH=. 
> twistd -n myplugin`.
> 
> 
> FWIW, as a user, it would have been nice to have a NEWS entry for this.  It 
> would have been easier to discover there than searching through the mail 
> archives.

Yes, there definitely should have been.  We only realized the implications of 
the change after the fact, and only after some discussion decided that it was 
in fact desirable and should not be rolled back in a patch release.

We don't have a process for fixing NEWS files right now, and given that 
releases are immutable, I wonder if there's any way we could.  So, in the rare 
case that we mess up this way in the future, what (aside from the mailing list) 
would be a good communication mechanism to users?

-glyph

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

2017-01-03 Thread Amber "Hawkie" Brown

> On 4 Jan 2017, at 07:20, Glyph Lefkowitz  wrote:
> 
>> 
>> On Jan 2, 2017, at 6:10 AM, Jean-Paul Calderone > > wrote:
>> 
>> On Thu, Sep 1, 2016 at 11:36 AM, Amber "Hawkie" Brown 
>> mailto:hawk...@atleastfornow.net>> wrote:
>> 
>> > On 1 Sep 2016, at 21:42, Yuri > > > wrote:
>> >
>> > Hi all
>> >
>> > I couldn't find Twisted-specific group, so posting here.
>> >
>> > Recently Twisted 16.4.0 got released. Yesterday I've tried to upgrade it 
>> > for my apps and got an error.
>> >
>> > ...
>> >
>> > The errors comes down to this: twistd script does not add current working 
>> > directory to python path (or removes it, I don't know what exactly 
>> > happens), so it fails to import any packages/modules from it. The issue 
>> > does not appear in previous version (Twisted 16.3.2).
>> >
>> > Any ideas what caused it?
>> 
>> Yes -- we moved to using setuptools console scripts, and these console 
>> scripts don't add "." to the PYTHONPATH. We realised this in prerelease but 
>> decided against fixing it, as it adding the current working dir to the PATH 
>> has lead to a lot of  subtle bugs in the past and this is a good chance to 
>> make a break from them.
>> 
>> So, in short, this is expected behaviour -- we generally want people to be 
>> running twistd, trial, etc on *installed* Python packages -- testing or 
>> running from checkouts often hides many bugs about what is or isn't included 
>> in the installed package by accident. If you rely on this behaviour, though, 
>> set the PYTHONPATH environment variable to "." -- e.g. `env PYTHONPATH=. 
>> twistd -n myplugin`.
>> 
>> 
>> FWIW, as a user, it would have been nice to have a NEWS entry for this.  It 
>> would have been easier to discover there than searching through the mail 
>> archives.
> 
> Yes, there definitely should have been.  We only realized the implications of 
> the change after the fact, and only after some discussion decided that it was 
> in fact desirable and should not be rolled back in a patch release.
> 
> We don't have a process for fixing NEWS files right now, and given that 
> releases are immutable, I wonder if there's any way we could.  So, in the 
> rare case that we mess up this way in the future, what (aside from the 
> mailing list) would be a good communication mechanism to users?
> 
> -glyph

We have, in the past, fixed up historic NEWS files in later releases (e.g. the 
one which removed 2.6 support). We could always roll these changes into a 
post1, but, that seems like a lot of effort. Maybe we could put errata on the 
blog?

- Amber___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python