Skip to content

Commit

Permalink
Python pip (macOS support)
Browse files Browse the repository at this point in the history
Created a new snowblock for pip (1) containing the

* `requirements.iceowl.txt` file (2) to track installed packages (3) and
their versions of the `iceowl` host and . See the requirements.txt file
format documentation (4) for details.
* `pip.conf` file (5) for user specific configurations.

References:

  (1) https://pypi.org/project/pip
  (2) https://pip.pypa.io/en/latest/user_guide/#requirements-files
  (3) https://packaging.python.org/tutorials/installing-packages/#requirements-files
  (4) https://pip.pypa.io/en/latest/reference/pip_install/#requirements-file-format
  (5) https://pip.pypa.io/en/stable/user_guide/#config-file

Related to epic GH-131
Closes GH-141
  • Loading branch information
arcticicestudio committed Sep 15, 2018
1 parent 3573a2a commit f5d6ff4
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snowblocks/pip/pip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2016-present Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://pypi.org/project/pip
# https://pip.pypa.io/en/stable/user_guide/#config-file

[global]
timeout = 60
26 changes: 26 additions & 0 deletions snowblocks/pip/requirements.iceowl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2016-present Arctic Ice Studio <[email protected]>
# Copyright (C) 2016-present Sven Greb <[email protected]>

# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://pypi.org/project/pip
# https://packaging.python.org/tutorials/installing-packages/#requirements-files
# https://pip.pypa.io/en/latest/reference/pip_install/#requirements-file-format
# https://pip.pypa.io/en/stable/user_guide/#config-file

# +------+
# + Core +
# +------+

# The base tool to create isolated Python environments.
virtualenv

# +------+
# + Apps +
# +------+

# Required by the custom hooks of the "taskwarrior" snowblock to interact with Taskwarrior API.
# See https://github.com/arcticicestudio/igloo/tree/develop/snowblocks/taskwarrior for details.
taskw
21 changes: 21 additions & 0 deletions snowblocks/pip/snowblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"clean": ["~/.config/pip"]
},
{
"link": {
"~/.config/pip/pip.conf": {
"create": true,
"force": true,
"path": "pip.conf"
},
"~/.config/pip/requirements.txt": {
"create": true,
"force": true,
"hosts": {
"iceowl": "requirements.iceowl.txt"
}
}
}
}
]

0 comments on commit f5d6ff4

Please sign in to comment.