User Tools

Site Tools


python:development_workflow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
python:development_workflow [2016/07/13 03:22] – [Virtual environments and IDEs] mithatpython:development_workflow [2017/05/07 15:09] (current) – [Getting a list of packages in the virtual environment] mithat
Line 1: Line 1:
 ====== Python Project Workflow ====== ====== Python Project Workflow ======
  
-To manage project dependencies, Node.js has ''npm'' and ''package.json'' files, PHP has ''composer'' and ''composer.json'' files. Fulfilling a similar need, Python has ''pip'' and virtual environments, but they don't work quite like ''npm''+''package.json'' and ''composer''+''composer.json''.+For managing project dependencies, Node.js has ''npm'' and ''package.json'' files, PHP has ''composer'' and ''composer.json'' files. Fulfilling a similar need, Python has ''pip'' and virtual environments, but they don't work quite like ''npm''/''package.json'' and ''composer''/''composer.json''.
  
 ===== Projects require virtual environments ===== ===== Projects require virtual environments =====
Line 19: Line 19:
  
 ===== Getting a list of packages in the virtual environment ===== ===== Getting a list of packages in the virtual environment =====
-When you want to deploy your project on another machine, you will want the virtual environment on the host to use the same versions of the packages +When you want to deploy your project on another machine, you will want the environment on the host to use the same versions of the packages 
-you used while developing it (i.e., those in your virtual environment). The process of generating a list of those packages and re-installing them is discussed in this [[http://stackoverflow.com/questions/5172029/tools-best-practices-for-managing-application-dependencies|Stack Overflow post]].+you used while developing it (i.e., those in your virtual environment). The process of generating a list of those packages and re-installing them is discussed in this [[http://blog.miguelgrinberg.com/post/the-package-dependency-blues|this post]] from Miguel Grinberg's blog and in this [[http://stackoverflow.com/questions/5172029/tools-best-practices-for-managing-application-dependencies|Stack Overflow post]].
  
 ===== Virtual environments and IDEs ===== ===== Virtual environments and IDEs =====
python/development_workflow.1468380154.txt.gz · Last modified: 2016/07/13 03:22 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki