#+TITLE:Pipenv

* Commands
- https://github.com/pypa/pipenv#-usage

#+BEGIN_SRC shell
  pipenv --python 3.6          # specify python version for venv
  pipenv --where               # output project path
  pipenv --venv                # output venv path
  pipenv --py                  # output python path
  pipenv --rm                  # remove existing venv
  pipenv graph                 # show dependency graph
  pipenv install -e . --dev    # for dev
  pipenv install requests      # add dependency
  pipenv install pytest --dev  # add dev dependency
  pipenv install --dev         # install all dependencies including dev
  pipenv sync                  # install dependencies specified in Pipfile.lock
  pipenv clean                 # remove packages not specified in Pipfile.lock
  pipenv uninstall --all       # Clear
  pipenv shell                 # run a shell activated venv
  pipenv run python            # run a command with venv activated
#+END_SRC

- When executing ~pipenv shell or pipenv run~, ~.env~ is loaded

* Pipfile
#+BEGIN_SRC toml
  [[source]]
  url = "https://pypi.python.org/simple"
  verify_ssl = true

  [dev-packages]

  [packages]

  [requires]
  python_version = "3.6"
#+END_SRC

#+TITLE:Pipenv

* Overview
** Commands
- https://github.com/pypa/pipenv#-usage

#+BEGIN_SRC shell
  pipenv --python 3.6          # specify python version for venv
  pipenv --where               # output project path
  pipenv --venv                # output venv path
  pipenv --py                  # output python path
  pipenv --rm                  # remove existing venv
  pipenv graph                 # show dependency graph
  pipenv install -e . --dev    # for dev
  pipenv install requests      # add dependency
  pipenv install pytest --dev  # add dev dependency
  pipenv install --dev         # install all dependencies including dev
  pipenv sync                  # install dependencies specified in Pipfile.lock
  pipenv clean                 # remove packages not specified in Pipfile.lock
  pipenv uninstall --all       # Clear
  pipenv shell                 # run a shell activated venv
  pipenv run python            # run a command with venv activated
#+END_SRC

- When executing ~pipenv shell or pipenv run~, ~.env~ is loaded

** Pipfile
#+BEGIN_SRC toml
  [[source]]
  url = "https://pypi.python.org/simple"
  verify_ssl = true

  [dev-packages]

  [packages]

  [requires]
  python_version = "3.6"
#+END_SRC

* Reference
** pipenv install
- ~pipenv install~ just installs only packages defined in ~[packages]~
- ~pipenv install --dev~ installs packages in ~[dev-packages]~ *along with* packges in ~[packages]~
-----
- https://docs.pipenv.org/#pipenv-install

Write about pipenv-install of pipenv
Write about pipenv-install of pipenv
