Skip to content

Commit

Permalink
Finish 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Feb 16, 2021
2 parents f0dbd41 + b322c25 commit 0799c6a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
# built documents.
#
# The short X.Y version.
version = '1.0'
version = '2.2'
# The full version, including alpha/beta/rc tags.
release = '1.0.0'
release = '2.2.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion grill/tokens/ids/CGAsset.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ description = Inner process of the current `area` during the life cycle of a con

[variant]
short_name = v
default = root
default = base
description = Variation expressing a different intent of the current `item` (e.g. 'wet', 'optionB', 'grayscale').

[part]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = grill-names
version = 2.1.0
version = 2.2.0
description = Name objects for digital content creation.
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down
12 changes: 6 additions & 6 deletions tests/test_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@ def test_cgasset_file(self):
self.assertEqual(name.area, 'model')
path = Path.joinpath(
Path(),
'demo', '3d', 'abc', 'entity', 'model', 'main', 'atom', 'lead', 'root',
'whole', '1', 'demo-3d-abc-entity-model-main-atom-lead-root-whole.1.ext'
'demo', '3d', 'abc', 'entity', 'model', 'main', 'atom', 'lead', 'base',
'whole', '1', 'demo-3d-abc-entity-model-main-atom-lead-base-whole.1.ext'
)
self.assertEqual(Path(path), name.path)
name.sep = ':'
self.assertEqual(':', name.sep)
self.assertEqual('demo:3d:abc:entity:model:main:atom:lead:root:whole.1.ext', name.get())
self.assertEqual('demo:3d:abc:entity:model:main:atom:lead:base:whole.1.ext', name.get())
name.sep = '.'
self.assertEqual(name.sep, '.')
self.assertEqual('demo.3d.abc.entity.model.main.atom.lead.root.whole.1.ext', name.get())
self.assertEqual('demo.3d.abc.entity.model.main.atom.lead.base.whole.1.ext', name.get())
name.sep = ' '
name.name = name.get(area='rig', part='leg', output='skin', stream='dev')
self.assertEqual('rig', name.area)
self.assertEqual('demo 3d abc entity rig dev atom lead root leg.skin.1.ext', name.get())
self.assertEqual('demo 3d abc entity rig dev atom lead base leg.skin.1.ext', name.get())

def test_cgasset(self):
self.assertEqual(CGAsset().get(),
'{code}-{media}-{kingdom}-{cluster}-{area}-{stream}-{item}-{step}-{variant}-{part}')
self.assertEqual(CGAsset.get_default().name,
'demo-3d-abc-entity-rnd-main-atom-lead-root-whole')
'demo-3d-abc-entity-rnd-main-atom-lead-base-whole')

def test_lifetr(self):
domain = 'Eukarya'
Expand Down

0 comments on commit 0799c6a

Please sign in to comment.