PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Monday the 4th of April, 2016

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[08:25:45] <Xorg> plugin for reading md ?
[08:25:50] <Xorg> something like pygmentize
[09:00:37] <meshy> ah
[09:00:47] <meshy> oops -- wrong channel, sorry
[09:00:51] <meshy> morning ;)
[14:58:25] <pdobrogost> Hi all!
[14:58:40] <pdobrogost> How to include top level file when using "package_data" in setup.py?
[14:58:56] <pjdelport> I don't think you can.
[14:59:05] <ronny> pdobrogost: you should avoid that
[14:59:12] <pjdelport> package data files are inside (Python) packages
[14:59:13] <ronny> why do you wnat to do it to begin with?
[14:59:50] <pdobrogost> I have development.ini and production.ini files on top level and I would like to include them in the build process.
[15:00:26] <ronny> pdobrogost: you can put them into a sdist, its bad practice to put them into a wheel/tolevel site packages
[15:00:47] <ronny> for putting them into a sdist, just add fit lines to MANIFEST.in
[15:04:57] <ionelmc> pdobrogost: what do you mean "top level"?
[15:05:25] <pdobrogost> ionelmc: on the same level setup.py is placed
[15:05:57] <ionelmc> pdobrogost: and where do you want it to go?
[15:06:32] <ionelmc> in sdist? in bdist? in site-packages?
[15:07:10] <pdobrogost> We omit sdist and create wheels directly. I would like to have it in wheel.
[15:07:11] <pjdelport> If you just want it included in your sdist, you should probably be using setuptools_scm
[15:07:59] <ionelmc> pdobrogost: so it would go in the root of site-packages? why? what file is it?
[15:08:08] <pdobrogost> I agree having configuration as part of bdist is not the best idea.
[15:08:27] <pdobrogost> ionelmc: It's paste configuration file production.ini
[15:08:31] <pjdelport> pdobrogost: Those may be sensible candidates for site-packages, but then they'll have to go into a Python package, not top-level.
[15:08:53] <ionelmc> pdobrogost: root of site-package is wrong place for configuration
[15:09:48] <ionelmc> even if you put it in a package, it's still wrong - in my mind configuration is something that user manages and edits
[15:10:00] <ionelmc> you wouldn't want users to much with your site-packages
[15:10:07] <ionelmc> s/much/muck/
[15:10:32] <pdobrogost> Basically we have special deployment step which copies configuration files but I wanted to omit it and "streamline" the process by doing this as part of building bdist.
[15:11:31] <ionelmc> pdobrogost: distutils allows dists to install stuff in, say, /etc
[15:11:43] <ionelmc> but that is very platform specific and tricky
[15:14:22] <ionelmc> pick your poison: https://github.com/pypa/pip/issues/2874#issuecomment-109429489 :)
[15:41:43] <ronny> pdobrogost: please use propper configuration management :)
[15:46:51] <pdobrogost> ionelmc: thanks for link
[15:47:27] <ionelmc> ronny: as if there's any proper configuration management
[15:55:51] <ronny> ionelmc: there is, the first step is nuclear armageddon, the rest is trivial
[15:56:45] <ionelmc> ronny: i'd say everything else is trivial if it gets to that :)
[15:57:13] <ionelmc> also, you have some really dark thoughts haha
[15:59:11] <ronny> ionelmc: show me someone that did configmanagement and doesnt have dark thoughts
[15:59:58] <ionelmc> hahahah