From miguelgrinberg50 at gmail.com Thu May 1 01:19:38 2014 From: miguelgrinberg50 at gmail.com (Miguel Grinberg) Date: Wed, 30 Apr 2014 16:19:38 -0700 Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question In-Reply-To: References: Message-ID: <20140430.231938.276.11@OR-MGRINBERG-7S> Hi John, I consider virtualenvs disposable, and by that I mean that I always ensure that I can regenerate them easily. For each virtualenv I keep a requirements file that lists all the packages I have installed including indirect dependencies, and with the exact version numbers. I update this file whenever I make changes to a virtualenv. Then when a virtualenv stops working for any reason I just regenerate it. To export a requirements file you can use this command (note this must be done on a working virtualenv): $ pip freeze > requirements.txt To populate a virtualenv from a requirements file use this command after activating it: $ pip install -r requirements.txt I hope this helps. Miguel ----- Original Message ----- From: John Heasly To: portland at python.org Date: Wed, 30 Apr 2014 13:25:05 -0700 Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question > Hello all, > > I?ve been bit by creating virtualenvs against a homebrew-installed systemwide Python, upgrading the system Python, running "brew cleanup? which deletes the previous Python that the virtualenv was created against. Is there a way to get virtualenvs to ?see? the new Python? Or should I just stop with the ?brew cleanup? after brew upgrading the system Python? > > I figure this is a common enough scenario that there has to be a good answer/best practice/light to dim the darkness of my ignorance. > > Thanks, > John > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland > From jheasly at earthlink.net Thu May 1 03:47:16 2014 From: jheasly at earthlink.net (John Heasly) Date: Wed, 30 Apr 2014 18:47:16 -0700 Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question In-Reply-To: <20140430.231938.276.11@OR-MGRINBERG-7S> References: <20140430.231938.276.11@OR-MGRINBERG-7S> Message-ID: Hello Miguel ? Yes, I've definitely requirements.txt?d all my current virtualenvs. Not having up-to-date requirements.txt for the virtualenvs I had to re-create, I was able to figure out what apps were installed by inspecting the [virtualenvs root directory]/[virtualenv]/lib/python2.7/site-packages directory of each of the virtualenvs. Actually, I was able to cherry-pick/copy the .py files from the old /site-packages/ into the new. It was just a Python 2.7.5 to 2.7.6 transition and so this seems to be have worked. Any bigger of a Python version jump, and who knows ? Thanks for your reply, John On Apr 30, 2014, at 4:19 PM, Miguel Grinberg wrote: > Hi John, > > I consider virtualenvs disposable, and by that I mean that I always ensure that I can regenerate them easily. For each virtualenv I keep a requirements file that lists all the packages I have installed including indirect dependencies, and with the exact version numbers. I update this file whenever I make changes to a virtualenv. Then when a virtualenv stops working for any reason I just regenerate it. > > To export a requirements file you can use this command (note this must be done on a working virtualenv): > > $ pip freeze > requirements.txt > > To populate a virtualenv from a requirements file use this command after activating it: > > $ pip install -r requirements.txt > > I hope this helps. > > Miguel > > ----- Original Message ----- > From: John Heasly > To: portland at python.org > Date: Wed, 30 Apr 2014 13:25:05 -0700 > Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question > >> Hello all, >> >> I?ve been bit by creating virtualenvs against a homebrew-installed systemwide Python, upgrading the system Python, running "brew cleanup? which deletes the previous Python that the virtualenv was created against. Is there a way to get virtualenvs to ?see? the new Python? Or should I just stop with the ?brew cleanup? after brew upgrading the system Python? >> >> I figure this is a common enough scenario that there has to be a good answer/best practice/light to dim the darkness of my ignorance. >> >> Thanks, >> John >> _______________________________________________ >> Portland mailing list >> Portland at python.org >> https://mail.python.org/mailman/listinfo/portland >> > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland From adam at therobots.org Thu May 1 21:56:44 2014 From: adam at therobots.org (Adam Lowry) Date: Thu, 1 May 2014 12:56:44 -0700 Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question In-Reply-To: References: <20140430.231938.276.11@OR-MGRINBERG-7S> Message-ID: It's been a little while since I looked, but I think other distributions of python (debian, rh, etc) will use the same site-packages for patch-level upgrades (e.g. 2.7.5-2.7.6), which would keep virtualenvs working. Brew's method of making a new site-packages results in the locations changing, with this result. If I'm not mistaken it might be a decent suggestion to the homebrew python maintainers to make patch upgrades smoother. On Wed, Apr 30, 2014 at 6:47 PM, John Heasly wrote: > Hello Miguel ? > > Yes, I've definitely requirements.txt?d all my current virtualenvs. > > Not having up-to-date requirements.txt for the virtualenvs I had to re-create, I was able to figure out what apps were installed by inspecting the [virtualenvs root directory]/[virtualenv]/lib/python2.7/site-packages directory of each of the virtualenvs. Actually, I was able to cherry-pick/copy the .py files from the old /site-packages/ into the new. It was just a Python 2.7.5 to 2.7.6 transition and so this seems to be have worked. Any bigger of a Python version jump, and who knows ? > > Thanks for your reply, > John > > On Apr 30, 2014, at 4:19 PM, Miguel Grinberg wrote: > >> Hi John, >> >> I consider virtualenvs disposable, and by that I mean that I always ensure that I can regenerate them easily. For each virtualenv I keep a requirements file that lists all the packages I have installed including indirect dependencies, and with the exact version numbers. I update this file whenever I make changes to a virtualenv. Then when a virtualenv stops working for any reason I just regenerate it. >> >> To export a requirements file you can use this command (note this must be done on a working virtualenv): >> >> $ pip freeze > requirements.txt >> >> To populate a virtualenv from a requirements file use this command after activating it: >> >> $ pip install -r requirements.txt >> >> I hope this helps. >> >> Miguel >> >> ----- Original Message ----- >> From: John Heasly >> To: portland at python.org >> Date: Wed, 30 Apr 2014 13:25:05 -0700 >> Subject: [portland] A homebrew-ed Python + virtualenv + virtualenvwrapper question >> >>> Hello all, >>> >>> I?ve been bit by creating virtualenvs against a homebrew-installed systemwide Python, upgrading the system Python, running "brew cleanup? which deletes the previous Python that the virtualenv was created against. Is there a way to get virtualenvs to ?see? the new Python? Or should I just stop with the ?brew cleanup? after brew upgrading the system Python? >>> >>> I figure this is a common enough scenario that there has to be a good answer/best practice/light to dim the darkness of my ignorance. >>> >>> Thanks, >>> John >>> _______________________________________________ >>> Portland mailing list >>> Portland at python.org >>> https://mail.python.org/mailman/listinfo/portland >>> >> _______________________________________________ >> Portland mailing list >> Portland at python.org >> https://mail.python.org/mailman/listinfo/portland > > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland From wescpy at gmail.com Tue May 13 18:11:25 2014 From: wescpy at gmail.com (wesley chun) Date: Tue, 13 May 2014 09:11:25 -0700 Subject: [portland] Fwd: ANN: Intro+Intermediate Python, San Francisco, Jul 30-31, Aug 1 In-Reply-To: References: Message-ID: Greetings! I'll be offering another hardcore Python course this summer near the San Francisco airport. If you're somewhat new to or have some Python experience under your belt already but want to fill-in the holes, this course is for you. Why take a real course when you can learn Python online or by reading books? Well, my goal isn't to teach Python syntax, which you can from any teacher, live or online, or from giant books. My job is to create great Python developers and removing the roadblocks that impede your path to getting there. This intensive course is based on my "Core Python" (http://corepython.com) books and is made up of 3 full days complete with lectures and several hands-on coding labs per day. t's also a great excuse to coming to beautiful Northern California for a summer vacation and just a 1-hour flight from PDX! Groups and development teams are welcome as well as individuals. I do more private gigs and fewer of these public courses lately, so please come join if you can... my next public intro/intermediate course may not be for awhile, so I'm hoping to meet some of you this time around! Sign up soon... there's a special earlybird rate for the rest of this month before going up to the regular rate after that. More details and registration at http://cyberwebconsulting.com as well as in the ad: http://goo.gl/pyJseQ I'm no fan of spam, so I'll only send out one last reminder as the date gets closer... say around the end of June. Cheers, -- Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "A computer never does what you want... only what you tell it." +wesley chun : wescpy at gmail : @wescpy Python training & consulting : http://CyberwebConsulting.com "Core Python" books : http://CorePython.com Python blog: http://wescpy.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchampion at zetacentauri.com Sat May 24 02:29:00 2014 From: jchampion at zetacentauri.com (Jason Champion) Date: Fri, 23 May 2014 17:29:00 -0700 Subject: [portland] Django Opportunities? Message-ID: Hello fellow Pythonistas, Anybody know of any good local Django openings? I'm pretty awesome at Python, Django, and even C++ on Linux. Unfortunately I have found myself in a situation where I'm using C#.NET on Windows, something I have neither skill nor enthusiasm for, so it's time to find something closer to the tools I know and love. Please feel free to contact me off-list. Regards, Jason Champion -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.glaser at pointnineseven.com Sat May 24 03:00:35 2014 From: tim.glaser at pointnineseven.com (Tim Glaser) Date: Fri, 23 May 2014 18:00:35 -0700 Subject: [portland] Great company hiring two Django devs Message-ID: Hi Folks, We at Point 97 are looking to add more Python/Django/Angular developers to our team. Please checkout the job post below and feel free to share this through your networks. Here's the job post via Silicon Florist: http://siliconflorist.com/jobs/view/django-web-developer-2 Or via our site: http://pointnineseven.com/resources/display/join_our_team And here's some of our work: http://pointnineseven.com/resources/full_story/mobile_data_collection http://pointnineseven.com/resources/full_story/digital_deck http://pointnineseven.com/resources/full_story/data_portals Cheers! Tim Glaser -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.foster.c at gmail.com Sat May 24 04:09:04 2014 From: matt.foster.c at gmail.com (Matt Foster) Date: Fri, 23 May 2014 19:09:04 -0700 Subject: [portland] Django Opportunities? In-Reply-To: References: Message-ID: Well, sounds like the Universe has answered your call... http://siliconflorist.com/jobs/view/django-web-developer-2 Also, if you are interested in contract work, talk to me sometime. Cheers, Matt On Fri, May 23, 2014 at 5:29 PM, Jason Champion wrote: > Hello fellow Pythonistas, > > Anybody know of any good local Django openings? > > I'm pretty awesome at Python, Django, and even C++ on Linux. Unfortunately > I have found myself in a situation where I'm using C#.NET on Windows, > something I have neither skill nor enthusiasm for, so it's time to find > something closer to the tools I know and love. > > Please feel free to contact me off-list. > > Regards, > Jason Champion > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://mail.python.org/pipermail/portland/attachments/20140523/bd351f78/attachment.html > > > _______________________________________________ > Portland mailing list > Portland at python.org > https://mail.python.org/mailman/listinfo/portland > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt.foster.c at gmail.com Sat May 24 18:07:01 2014 From: matt.foster.c at gmail.com (Matt Foster) Date: Sat, 24 May 2014 09:07:01 -0700 Subject: [portland] Django Opportunities? In-Reply-To: References: Message-ID: Oh, and I should have replied off the list. Sorry about that. Since I'm here, let me say that Jason is smart, knows his stuff and would be a great hire. -Matt On Fri, May 23, 2014 at 7:09 PM, Matt Foster wrote: > Well, sounds like the Universe has answered your call... > > http://siliconflorist.com/jobs/view/django-web-developer-2 > > Also, if you are interested in contract work, talk to me sometime. > > Cheers, > Matt > > > On Fri, May 23, 2014 at 5:29 PM, Jason Champion < > jchampion at zetacentauri.com> wrote: > >> Hello fellow Pythonistas, >> >> Anybody know of any good local Django openings? >> >> I'm pretty awesome at Python, Django, and even C++ on Linux. Unfortunately >> I have found myself in a situation where I'm using C#.NET on Windows, >> something I have neither skill nor enthusiasm for, so it's time to find >> something closer to the tools I know and love. >> >> Please feel free to contact me off-list. >> >> Regards, >> Jason Champion >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://mail.python.org/pipermail/portland/attachments/20140523/bd351f78/attachment.html >> > >> _______________________________________________ >> Portland mailing list >> Portland at python.org >> https://mail.python.org/mailman/listinfo/portland >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cameronbwhite90 at gmail.com Thu May 22 05:52:44 2014 From: cameronbwhite90 at gmail.com (Cameron White) Date: Wed, 21 May 2014 20:52:44 -0700 Subject: [portland] Python Web Development with Flask talk at Portland State Message-ID: <20140522035244.GB13813@smtp.gmail.com> The ACM student group at Portland State is hosting a Flask talk at Portland state and I would like to invite anyone who is interested in attending. WHEN: Friday May 30th 4:30pm - 6:00pm WHERE: Portland State, FAB 86-01 DESCRIPTION: Flask is a small and easy-to-use, yet fully featured open source web framework written in Python. It is considered a micro-framework, but don't let the "micro" part fool you; Flask can do everything the others can do, many times in a simpler, leaner way. This presentation will introduce you to Flask through several examples that you can download and try. PRESENTER: Miguel Grinberg has over 25 years of experience as a software engineer and leads a team of engineers that develop software for the video broadcast industry. He is the author of the O'Reilly book "Flask Web Development", and blogs at http://blog.miguelgrinberg.com about a variety of topics including web development, robotics, photography, and the occasional movie review. He lives in Portland, Oregon with his wife, four kids, two dogs, and a cat. Follow @miguelgrinberg on Twitter. CALAGATOR: http://calagator.org/events/1250466247 RSVP: http://calagator.org/events/1250466247 Cameron White Vice Chair ACM @ PSU