Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.cmmi
Commits
4edb7a3a
Commit
4edb7a3a
authored
Mar 29, 2013
by
Kai Lautaportti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flake8 cleanup
parent
22384aae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
45 deletions
+50
-45
hexagonit/recipe/cmmi/tests.py
hexagonit/recipe/cmmi/tests.py
+17
-17
setup.py
setup.py
+33
-28
No files found.
hexagonit/recipe/cmmi/tests.py
View file @
4edb7a3a
...
@@ -155,7 +155,7 @@ class NonInformativeTests(unittest.TestCase):
...
@@ -155,7 +155,7 @@ class NonInformativeTests(unittest.TestCase):
def
test_call_script__bbb_for_callable_with_two_parameters
(
self
):
def
test_call_script__bbb_for_callable_with_two_parameters
(
self
):
recipe
=
self
.
make_recipe
({},
'test'
,
{
recipe
=
self
.
make_recipe
({},
'test'
,
{
'url'
:
'file://%s/testdata/package-0.0.0.tar.gz'
%
os
.
path
.
dirname
(
__file__
),
'url'
:
'file://%s/testdata/package-0.0.0.tar.gz'
%
os
.
path
.
dirname
(
__file__
),
})
})
# The hook script does not return anything so we (ab)use exceptions
# The hook script does not return anything so we (ab)use exceptions
# as a mechanism for asserting the function behaviour.
# as a mechanism for asserting the function behaviour.
...
@@ -177,7 +177,7 @@ class NonInformativeTests(unittest.TestCase):
...
@@ -177,7 +177,7 @@ class NonInformativeTests(unittest.TestCase):
recipe
=
self
.
make_recipe
({},
'test'
,
{
recipe
=
self
.
make_recipe
({},
'test'
,
{
'url'
:
'file://%s/testdata/package-0.0.0.tar.gz'
%
os
.
path
.
dirname
(
__file__
),
'url'
:
'file://%s/testdata/package-0.0.0.tar.gz'
%
os
.
path
.
dirname
(
__file__
),
'environment'
:
'HRC_TESTVAR=bar'
'environment'
:
'HRC_TESTVAR=bar'
})
})
# The hook script does not return anything so we (ab)use exceptions
# The hook script does not return anything so we (ab)use exceptions
# as a mechanism for asserting the function behaviour.
# as a mechanism for asserting the function behaviour.
...
@@ -195,21 +195,21 @@ class NonInformativeTests(unittest.TestCase):
...
@@ -195,21 +195,21 @@ class NonInformativeTests(unittest.TestCase):
def
test_suite
():
def
test_suite
():
suite
=
unittest
.
TestSuite
((
suite
=
unittest
.
TestSuite
((
doctest
.
DocFileSuite
(
doctest
.
DocFileSuite
(
'README.txt'
,
'README.txt'
,
setUp
=
setUp
,
setUp
=
setUp
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
optionflags
=
optionflags
,
optionflags
=
optionflags
,
checker
=
renormalizing
.
RENormalizing
([
checker
=
renormalizing
.
RENormalizing
([
(
re
.
compile
(
'--prefix=
\
S+s
a
mple-buildout'
),
(
re
.
compile
(
'--prefix=
\
S+s
a
mple-buildout'
),
'--prefix=/sample_buildout'
),
'--prefix=/sample_buildout'
),
(
re
.
compile
(
'
\
s/
\
S+sample-buildout'
),
(
re
.
compile
(
'
\
s/
\
S+sample-buildout'
),
' /sample_buildout'
),
' /sample_buildout'
),
zc
.
buildout
.
testing
.
normalize_path
,
zc
.
buildout
.
testing
.
normalize_path
,
]),
]),
),
),
unittest
.
makeSuite
(
NonInformativeTests
),
unittest
.
makeSuite
(
NonInformativeTests
),
))
))
return
suite
return
suite
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
setup.py
View file @
4edb7a3a
...
@@ -9,10 +9,11 @@ def read(*rnames):
...
@@ -9,10 +9,11 @@ def read(*rnames):
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
rnames
)).
read
()
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
rnames
)).
read
()
setup
(
name
=
name
,
setup
(
version
=
version
,
name
=
name
,
description
=
"zc.buildout recipe for compiling and installing source distributions."
,
version
=
version
,
long_description
=
(
description
=
"zc.buildout recipe for compiling and installing source distributions."
,
long_description
=
(
read
(
'README.txt'
)
read
(
'README.txt'
)
+
'
\
n
'
+
+
'
\
n
'
+
read
(
'CHANGES.txt'
)
read
(
'CHANGES.txt'
)
...
@@ -24,28 +25,32 @@ setup(name=name,
...
@@ -24,28 +25,32 @@ setup(name=name,
+
'
\
n
'
+
+
'
\
n
'
+
'Download
\
n
'
'Download
\
n
'
'***********************
\
n
'
'***********************
\
n
'
),
),
classifiers
=
[
classifiers
=
[
'Framework :: Buildout'
,
'Framework :: Buildout'
,
'Intended Audience :: Developers'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: BSD License'
,
'License :: OSI Approved :: BSD License'
,
'Topic :: Software Development :: Build Tools'
,
'Topic :: Software Development :: Build Tools'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
],
],
keywords
=
'development buildout recipe'
,
keywords
=
'development buildout recipe'
,
author
=
'Kai Lautaportti'
,
author
=
'Kai Lautaportti'
,
author_email
=
'kai.lautaportti@hexagonit.fi'
,
author_email
=
'kai.lautaportti@hexagonit.fi'
,
url
=
'http://github.com/hexagonit/hexagonit.recipe.cmmi'
,
url
=
'http://github.com/hexagonit/hexagonit.recipe.cmmi'
,
license
=
'BSD'
,
license
=
'BSD'
,
packages
=
find_packages
(
exclude
=
[
'ez_setup'
]),
packages
=
find_packages
(
exclude
=
[
'ez_setup'
]),
namespace_packages
=
[
'hexagonit'
,
'hexagonit.recipe'
],
namespace_packages
=
[
'hexagonit'
,
'hexagonit.recipe'
],
include_package_data
=
True
,
include_package_data
=
True
,
zip_safe
=
False
,
zip_safe
=
False
,
install_requires
=
[
'zc.buildout'
,
'setuptools'
,
'hexagonit.recipe.download'
],
install_requires
=
[
extras_require
=
{
'zc.buildout'
,
'setuptools'
,
'hexagonit.recipe.download'
,
],
extras_require
=
{
'test'
:
[
'zope.testing'
],
'test'
:
[
'zope.testing'
],
},
},
tests_require
=
[
'zope.testing'
],
tests_require
=
[
'zope.testing'
],
test_suite
=
'%s.tests.test_suite'
%
name
,
test_suite
=
'%s.tests.test_suite'
%
name
,
entry_points
=
{
'zc.buildout'
:
[
'default = %s:Recipe'
%
name
]},
entry_points
=
{
'zc.buildout'
:
[
'default = %s:Recipe'
%
name
]},
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment