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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
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):
def
test_call_script__bbb_for_callable_with_two_parameters
(
self
):
recipe
=
self
.
make_recipe
({},
'test'
,
{
'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
# as a mechanism for asserting the function behaviour.
...
...
@@ -177,7 +177,7 @@ class NonInformativeTests(unittest.TestCase):
recipe
=
self
.
make_recipe
({},
'test'
,
{
'url'
:
'file://%s/testdata/package-0.0.0.tar.gz'
%
os
.
path
.
dirname
(
__file__
),
'environment'
:
'HRC_TESTVAR=bar'
})
})
# The hook script does not return anything so we (ab)use exceptions
# as a mechanism for asserting the function behaviour.
...
...
@@ -195,21 +195,21 @@ class NonInformativeTests(unittest.TestCase):
def
test_suite
():
suite
=
unittest
.
TestSuite
((
doctest
.
DocFileSuite
(
'README.txt'
,
setUp
=
setUp
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
optionflags
=
optionflags
,
checker
=
renormalizing
.
RENormalizing
([
(
re
.
compile
(
'--prefix=
\
S+s
a
mple-buildout'
),
'--prefix=/sample_buildout'
),
(
re
.
compile
(
'
\
s/
\
S+sample-buildout'
),
' /sample_buildout'
),
zc
.
buildout
.
testing
.
normalize_path
,
]),
),
unittest
.
makeSuite
(
NonInformativeTests
),
))
doctest
.
DocFileSuite
(
'README.txt'
,
setUp
=
setUp
,
tearDown
=
zc
.
buildout
.
testing
.
buildoutTearDown
,
optionflags
=
optionflags
,
checker
=
renormalizing
.
RENormalizing
([
(
re
.
compile
(
'--prefix=
\
S+s
a
mple-buildout'
),
'--prefix=/sample_buildout'
),
(
re
.
compile
(
'
\
s/
\
S+sample-buildout'
),
' /sample_buildout'
),
zc
.
buildout
.
testing
.
normalize_path
,
]),
),
unittest
.
makeSuite
(
NonInformativeTests
),
))
return
suite
if
__name__
==
'__main__'
:
...
...
setup.py
View file @
4edb7a3a
...
...
@@ -9,10 +9,11 @@ def read(*rnames):
return
open
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
*
rnames
)).
read
()
setup
(
name
=
name
,
version
=
version
,
description
=
"zc.buildout recipe for compiling and installing source distributions."
,
long_description
=
(
setup
(
name
=
name
,
version
=
version
,
description
=
"zc.buildout recipe for compiling and installing source distributions."
,
long_description
=
(
read
(
'README.txt'
)
+
'
\
n
'
+
read
(
'CHANGES.txt'
)
...
...
@@ -24,28 +25,32 @@ setup(name=name,
+
'
\
n
'
+
'Download
\
n
'
'***********************
\
n
'
),
classifiers
=
[
'Framework :: Buildout'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: BSD License'
,
'Topic :: Software Development :: Build Tools'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
],
keywords
=
'development buildout recipe'
,
author
=
'Kai Lautaportti'
,
author_email
=
'kai.lautaportti@hexagonit.fi'
,
url
=
'http://github.com/hexagonit/hexagonit.recipe.cmmi'
,
license
=
'BSD'
,
packages
=
find_packages
(
exclude
=
[
'ez_setup'
]),
namespace_packages
=
[
'hexagonit'
,
'hexagonit.recipe'
],
include_package_data
=
True
,
zip_safe
=
False
,
install_requires
=
[
'zc.buildout'
,
'setuptools'
,
'hexagonit.recipe.download'
],
extras_require
=
{
),
classifiers
=
[
'Framework :: Buildout'
,
'Intended Audience :: Developers'
,
'License :: OSI Approved :: BSD License'
,
'Topic :: Software Development :: Build Tools'
,
'Topic :: Software Development :: Libraries :: Python Modules'
,
],
keywords
=
'development buildout recipe'
,
author
=
'Kai Lautaportti'
,
author_email
=
'kai.lautaportti@hexagonit.fi'
,
url
=
'http://github.com/hexagonit/hexagonit.recipe.cmmi'
,
license
=
'BSD'
,
packages
=
find_packages
(
exclude
=
[
'ez_setup'
]),
namespace_packages
=
[
'hexagonit'
,
'hexagonit.recipe'
],
include_package_data
=
True
,
zip_safe
=
False
,
install_requires
=
[
'zc.buildout'
,
'setuptools'
,
'hexagonit.recipe.download'
,
],
extras_require
=
{
'test'
:
[
'zope.testing'
],
},
tests_require
=
[
'zope.testing'
],
test_suite
=
'%s.tests.test_suite'
%
name
,
entry_points
=
{
'zc.buildout'
:
[
'default = %s:Recipe'
%
name
]},
)
},
tests_require
=
[
'zope.testing'
],
test_suite
=
'%s.tests.test_suite'
%
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