PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 24th of September, 2014

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[14:01:30] <zahlman> Suppose my project includes a file that's used only during setup (e.g., read by custom code in setup.py). It's not part of package data that should be installed, but it needs to be included in an sdist so that installing from that distribution will work right. What's the best way to tell setuptools to include it?
[14:02:03] <zahlman> rather, do I have any options besides MANIFEST.in ?
[14:09:24] <ionelmc> zahlman: what's wrong with that approach?
[14:20:49] <zahlman> nothing in particular, just wanted to make sure I wasn't missing anything.
[15:29:49] <onlynone> Hi, I just read through PEP 440 and saw the reference to pypa/packaging and I was wondering if this package and its version comparison was used by any of the various package installation tools.
[15:30:04] <onlynone> !logs
[15:30:04] <pmxbot> http://chat-logs.dcpython.org/channel/pypa
[15:34:20] <dstufft> onlynone: There are PRs for it to be used in setuptools and in pip
[15:34:25] <dstufft> they aren't quite ready to be merged yet
[15:35:08] <onlynone> thanks! can't wait for this to be completely standard
[17:21:53] <zahlman> is there any compelling reason *not* to use the `if __name__=='__main__':` idiom in setup.py? It seems like none of the examples I've seen bother, but in my particular case it would make things easier.
[17:40:36] <buck1> zahlman: no there's not. it's just most projects find it unecessary
[17:40:42] <buck1> and the documentation doesn't do it
[17:42:43] <Wooble> zahlman: out of curiosity, how would it make things easier?
[17:43:07] <buck1> some static analysis tools run import on everything
[17:43:18] <buck1> was my case
[17:47:19] <buck1> dstufft: simply fyi, this is the last day working on pip for me, unless I can see an obvious way to complete my project within a week
[17:49:33] <buck1> four pull requests pending, the "delete uncovered else" I would like to reopen, making five https://github.com/pypa/pip/pulls?q=author%3Abukzor
[17:49:47] <zahlman> Wooble: the purpose of my project is to bootstrap other projects. I'd like for my own project's setup.py to leverage the template that it installs when it sets up other projects. :)
[17:49:58] <zahlman> that will prevent me from maintaining them in parallel
[17:50:09] <buck1> zahlman: public yet? I may be about to embark on a similar project.
[17:50:14] <zahlman> buck1: just starting
[17:50:28] <buck1> what are your feature requirements/
[17:50:51] <zahlman> I haven't even written that out. :(
[17:50:56] <buck1> informally
[17:51:29] <zahlman> there's a template from which starter files are created, and a script that can take a path to a 'starter' python file or folder with one or more python packages.
[17:51:41] <buck1> zahlman: that sounds like paste
[17:51:44] <zahlman> the idea is to produce a new project folder in-place where the old content was
[17:52:07] <buck1> anyhow quite different from mine, owell :)
[17:52:46] <zahlman> just looked for 'paste' on pypi, seems to be web dev related? not what I had in mind
[17:53:01] <Wooble> zahlman: sounds interesting.
[17:53:15] <zahlman> anyway the template is quite simple. just the starter setup.py and related, description.rst, you know
[17:53:42] <zahlman> also I planned to have it init a git repo and commit everything if that isn't already set up.
[17:54:07] <zahlman> the idea is I can make a shortcut to the installed script on my desktop, and have full drag-and-drop support to make new projects
[17:54:45] <zahlman> oh, and then the other part is just simplifying the interface to setup, by having an options file and doing a bunch of interpretation on that data
[17:55:20] <zahlman> unfortunately though I have to leave for a bit, can't describe more.
[17:55:33] <buck1> zahlman: i've considered such a thing. The thing i wanted and couldn't figure out, is a way to merge in fixes to the template into previously-created projects
[17:57:35] <DanielHolth> I wrote a thing that just lets your setup script have pip-installable dependencies. https://bitbucket.org/dholth/setup-requires
[18:08:09] <buck1> !logs
[18:08:09] <pmxbot> http://chat-logs.dcpython.org/channel/pypa