Skip to content

Commit

Permalink
Merge pull request #6 from davidlatwe/rename-recipe-extension
Browse files Browse the repository at this point in the history
rename recipe section, add doc str
  • Loading branch information
davidlatwe authored Apr 26, 2021
2 parents e6460db + ef82b7d commit 7a808b6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/rezup/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.0"
__version__ = "1.1.0"


def package_info():
Expand Down
23 changes: 22 additions & 1 deletion src/rezup/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,32 @@ def create(cls, container, recipe_file=None, timestamp=None):
return revision

def _install(self, recipe):
"""
Example recipe file `rezup.toml`
description = "My rez setup"
[rez]
name = "rez"
url = "rez>=2.83"
[[extension]]
name = "foo"
url = "~/dev/foo"
edit = true
[[extension]]
name = "bar"
url = "git+git://github.com/get-bar/bar"
isolation = true
python = 2.7
"""
tools = []
installer = Installer(self)

tools.append(Tool(recipe["rez"]))
for data in recipe.get("extensions", []):
for data in recipe.get("extension", []):
tools.append(Tool(data))

for tool in tools:
Expand Down
14 changes: 0 additions & 14 deletions src/rezup/rezup.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,3 @@ schema = "rezup-recipe:1.0"
[rez]
name = "rez"
url = "rez>=2.83"

# [[extension]]
# name = "foo"
# url = "~/dev/foo"
# edit = true

# [[extension]]
# name = "bar"
# url = "git+git://github.com/get-bar/bar"
# isolation = true
# python = 2.7

# [env]
# MY_ENV_VAR = 1

0 comments on commit 7a808b6

Please sign in to comment.