data in a source distribution?
Hi, Is it possible to include data in a source distribution? I'd like to avoid eggs, since they don't integrate well with Gentoo packages, but I didn't find a way to include data in a source distribution (python setup.py sdist). Did I miss something? Best wishes, Arne -- -- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln. -- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the history of free software. -- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :) -- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
At 10:13 PM 3/10/2009 +0100, Arne Babenhauserheide wrote:
Hi,
Is it possible to include data in a source distribution?
You need to specify the data files in your MANIFEST.in file -- the distutils don't do that automatically for you. Of course, if you use setuptools to create your sdist, and the data files are in revision control, they'll be included automatically. Note, too, that you don't have to use setuptools in your setup.py to do this; you only need to import setuptools to generate your sdist, e.g.: python -c "import setuptools; execfile('setup.py')" sdist register upload That command line will generate and upload an sdist using setuptools, but persons installing the package won't get a setuptools-based installation.
Am Mittwoch 11 März 2009 02:27:20 schrieb P.J. Eby:
You need to specify the data files in your MANIFEST.in file -- the distutils don't do that automatically for you.
Ah - OK. Thank you!
Of course, if you use setuptools to create your sdist, and the data files are in revision control, they'll be included automatically.
Is there a chance of setuptools recognizing other systems than SVN and cvs? I use Mercurial for all my own projects, and the setuptools don't seem to recognize that yet.
python -c "import setuptools; execfile('setup.py')" sdist register upload
That trick looks neat! Many thanks! Best wishes, Arne -- -- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln. -- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the history of free software. -- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :) -- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
Hi,
Is there a chance of setuptools recognizing other systems than SVN and cvs?
Yes, there is [1].
I use Mercurial for all my own projects, and the setuptools don't seem to recognize that yet.
I created setuptools_hg [2] for that purpose. The bitbucket wiki [3] has a bit more information, too. 1: http://peak.telecommunity.com/DevCenter/setuptools#adding-support-for-other-... 2: http://pypi.python.org/pypi/setuptools_hg 3: http://bitbucket.org/jezdez/setuptools_hg/wiki/ Best, Jannis
At 12:48 PM 3/11/2009 +0100, Arne Babenhauserheide wrote:
Am Mittwoch 11 März 2009 02:27:20 schrieb P.J. Eby:
You need to specify the data files in your MANIFEST.in file -- the distutils don't do that automatically for you.
Ah - OK.
Thank you!
Of course, if you use setuptools to create your sdist, and the data files are in revision control, they'll be included automatically.
Is there a chance of setuptools recognizing other systems than SVN and cvs?
I use Mercurial for all my own projects, and the setuptools don't seem to recognize that yet.
The first Google result for "setuptools mercurial" is: http://pypi.python.org/pypi/hg.setuptools So, yes. ;-)
Of course, if you use setuptools to create your sdist, and the data files are in revision control, they'll be included automatically.
Is there a chance of setuptools recognizing other systems than SVN and cvs?
I use Mercurial for all my own projects, and the setuptools don't seem to recognize that yet.
The first Google result for "setuptools mercurial" is:
http://pypi.python.org/pypi/hg.setuptools
So, yes. ;-)
Please note "hg.setuptools" is quite old and won't work with Mercurial
1.0. Since the author told me he wouldn't update it anymore I created http://pypi.python.org/pypi/setuptools_hg.
Cheers, Jannis
Am Mittwoch 11 März 2009 16:17:04 schrieb Jannis Leidel:
http://pypi.python.org/pypi/hg.setuptools
So, yes. ;-)
Please note "hg.setuptools" is quite old and won't work with Mercurial
1.0. Since the author told me he wouldn't update it anymore I created http://pypi.python.org/pypi/setuptools_hg.
Could you ask the author, if he could add a link into hg.setuptools which points users to setuptools_hg? He said he won't update it anymore, and users should know that. Best wishes, Arne -- -- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln. -- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the history of free software. -- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :) -- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
On Mar 11, 2009, at 9:45 AM, Arne Babenhauserheide wrote:
Am Mittwoch 11 März 2009 16:17:04 schrieb Jannis Leidel:
http://pypi.python.org/pypi/hg.setuptools
So, yes. ;-)
Please note "hg.setuptools" is quite old and won't work with Mercurial
1.0. Since the author told me he wouldn't update it anymore I created http://pypi.python.org/pypi/setuptools_hg.
Could you ask the author, if he could add a link into hg.setuptools which points users to setuptools_hg?
He said he won't update it anymore, and users should know that.
I stumbled on the "Googling for setuptools plus Mercurial leads to an outdated plugin" problem the other day. I e-mailed the author and asked him to update the page with a link to setuptools_hg, but haven't gotten response yet. Alternatively, people could give a nod to setuptools_hg with a link in their blog, etc. and eventually this should skew the Google ranking :P http://pypi.python.org/pypi/setuptools_hg
I stumbled on the "Googling for setuptools plus Mercurial leads to an outdated plugin" problem the other day. I e-mailed the author and asked him to update the page with a link to setuptools_hg, but haven't gotten response yet. Alternatively, people could give a nod to setuptools_hg with a link in their blog, etc. and eventually this should skew the Google ranking :P
Please add the "Framework :: Setuptools Plugin" classifier to your metadata so that setuptools_hg will appear on this search: http://pypi.python.org/pypi?:action=browse&c=524 There follows a patch that I submitted to recommend this in the setuptools docs. I thought that PJE had already accepted this patch, but it isn't there. PJE: please accept the following patch. Regards, Zooko diff -rN -u old-dw/setuptools.txt new-dw/setuptools.txt --- old-dw/setuptools.txt 2008-08-11 11:38:07.000000000 -0600 +++ new-dw/setuptools.txt 2008-08-11 11:38:07.000000000 -0600 @@ -2384,6 +2384,16 @@ how setuptools' own commands are installed: the setuptools project's setup script defines entry points for them! +If your command would be useful to other Python developers, then consider +uploading it to the `Python Package Index`_. If you do, please include the +Trove Classifier "Framework :: Setuptools Plugin" in the classifiers so that +your command will appear in the list of `packages which are setuptools +plugins`_. + +.. _Python Package Index: http://pypi.python.org/pypi +.. _packages which are setuptools plugins: http://pypi.python.org/ pypi?:action=browse&c=524 + + Adding ``setup()`` Arguments ---------------------------- @@ -2546,6 +2556,17 @@ control system itself. It *may*, however, use ``distutils.log.warn()`` to inform the user of the missing program(s). +Please model your naming conventions and documentation after the other +setuptools revision control plugins: `setuptools_bzr`_, `setuptools_mtn`_,' +`setuptools_darcs`_. Please include the Trove Classifier "Framework :: +Setuptools Plugin" in the classifiers so that your command will appear in the +list of `packages which are setuptools plugins`_. + +.. _setuptools_bzr: http://pypi.python.org/pypi/setuptools_bzr +.. _setuptools_mtn: http://pypi.python.org/pypi/setuptools_mtn +.. _setuptools_darcs: http://pypi.python.org/pypi/setuptools_darcs +.. _packages which are setuptools plugins: http://pypi.python.org/ pypi?:action=browse&c=524 + Subclassing ``Command`` -----------------------
Please add the "Framework :: Setuptools Plugin" classifier to your metadata so that setuptools_hg will appear on this search:
Done, thanks! Best, Jannis
participants (5)
-
Arne Babenhauserheide
-
Jannis Leidel
-
Kevin Teague
-
P.J. Eby
-
zooko