<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>cberner.com &#187; Python</title>
	<atom:link href="http://cberner.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://cberner.com</link>
	<description></description>
	<lastBuildDate>Sat, 20 Apr 2013 17:24:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Git revision numbers for setuptools packages</title>
		<link>http://cberner.com/2012/02/26/git-revision-numbers-for-setuptools-packages/</link>
		<comments>http://cberner.com/2012/02/26/git-revision-numbers-for-setuptools-packages/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 22:16:03 +0000</pubDate>
		<dc:creator>Christopher Berner</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://cberner.com/?p=121</guid>
		<description><![CDATA[Add snapshot versions to your setuptools packages from SVN is easy, using the &#8220;tag_svn_revision = true&#8221; options in setup.cfg. However, getting this working for GIT proved to be more difficult, as there&#8217;s no built in support. However, I finally settled on a bash script that does the job quite nicely. now=`date +%s` gitversion=`git describe &#8211;long [...]]]></description>
				<content:encoded><![CDATA[<p>Add snapshot versions to your setuptools packages from SVN is easy, using the &#8220;tag_svn_revision = true&#8221; options in setup.cfg. However, getting this working for GIT proved to be more difficult, as there&#8217;s no built in support. However, I finally settled on a bash script that does the job quite nicely.</p>
<blockquote><p>now=`date +%s`<br />
gitversion=`git describe &#8211;long &#8211;dirty=-$now | sed &#8216;s/.*\([-][0-9][0-9]*[-][a-z0-9]*\)/\1/&#8217;`<br />
python setup.py setopt -o tag_build -s $gitversion -c egg_info<br />
python setup.py sdist</p></blockquote>
<p>First we generate a unique version string, based on the number of commits since the last GIT tag:</p>
<blockquote><p>now=`date +%s`<br />
gitversion=`git describe &#8211;long &#8211;dirty=-$now | sed &#8216;s/.*\([-][0-9][0-9]*[-][a-z0-9]*\)/\1/&#8217;`</p></blockquote>
<p>Then we just apply it as an option before building the release:</p>
<blockquote><p>python setup.py setopt -o tag_build -s $gitversion -c egg_info<br />
python setup.py sdist</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cberner.com/2012/02/26/git-revision-numbers-for-setuptools-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pyflakes error in Eclim on Ubuntu</title>
		<link>http://cberner.com/2011/12/11/pyflakes-error-in-eclim-on-ubuntu/</link>
		<comments>http://cberner.com/2011/12/11/pyflakes-error-in-eclim-on-ubuntu/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 03:58:52 +0000</pubDate>
		<dc:creator>Christopher Berner</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://cberner.com/?p=116</guid>
		<description><![CDATA[I started using Eclim a couple days ago, and kept running into &#8220;Error running command: pyflakes &#60;path to my code&#62;&#8221;, when my files contained more than one syntax error/warning. After a bit of googling I discovered this bug, which suggests that the version of pyflakes in Debian isn&#8217;t compatible with Eclim. Sure enough, removing the [...]]]></description>
				<content:encoded><![CDATA[<p>I started using Eclim a couple days ago, and kept running into &#8220;Error running command: pyflakes &lt;path to my code&gt;&#8221;, when my files contained more than one syntax error/warning. After a bit of googling I discovered <a href="https://github.com/ervandew/eclim/issues/33">this bug</a>, which suggests that the version of pyflakes in Debian isn&#8217;t compatible with Eclim. Sure enough, removing the the .deb package (apt-get remove pyflakes) and installing it from pip (pip install pyflakes), fixed it.</p>
]]></content:encoded>
			<wfw:commentRss>http://cberner.com/2011/12/11/pyflakes-error-in-eclim-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
