-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
recursive-include src *.py | ||
recursive-include src *.zcml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
|
||
setup( | ||
name="example.plone-dash-addon", | ||
version="1.0a1", | ||
description="An add-on for Plone", | ||
long_description="long_description", | ||
author="Maurits van Rees", | ||
author_email="m.van.rees@zestsoftware.nl", | ||
license="GPL version 2", | ||
packages=find_packages("src", exclude=["ez_setup"]), | ||
namespace_packages=["example"], | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
"setuptools", | ||
], | ||
entry_points=""" | ||
[z3c.autoinclude.plugin] | ||
target = plone | ||
""", | ||
) |
2 changes: 2 additions & 0 deletions
2
test-packages/example.plone-dash-addon/src/example/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# -*- coding: utf-8 -*- | ||
__import__("pkg_resources").declare_namespace(__name__) |
1 change: 1 addition & 0 deletions
1
test-packages/example.plone-dash-addon/src/example/plone_dash_addon/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# |
Empty file.
5 changes: 5 additions & 0 deletions
5
test-packages/example.plone-dash-addon/src/example/plone_dash_addon/browser/configure.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser"> | ||
|
||
</configure> |
20 changes: 20 additions & 0 deletions
20
test-packages/example.plone-dash-addon/src/example/plone_dash_addon/configure.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:genericsetup="http://namespaces.zope.org/genericsetup" | ||
xmlns:i18n="http://namespaces.zope.org/i18n" | ||
xmlns:plone="http://namespaces.plone.org/plone" | ||
i18n_domain="example.ploneaddon"> | ||
|
||
<!-- | ||
Be careful if you use general includeDependencies, it can have side effects! | ||
Better import explicit packages or configurations ;) | ||
--> | ||
<!--<includeDependencies package="." />--> | ||
|
||
<include package=".browser" /> | ||
|
||
<include file="permissions.zcml" /> | ||
|
||
<!-- FOR TESTS: This is configure.zcml from example.plone-dash-addon. --> | ||
|
||
</configure> |
4 changes: 4 additions & 0 deletions
4
test-packages/example.plone-dash-addon/src/example/plone_dash_addon/permissions.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope"> | ||
|
||
</configure> |
11 changes: 11 additions & 0 deletions
11
test-packages/example.plone-dash-addon/src/example/plone_dash_addon/tests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from example.basetestpackage.package_base import PackageTestCase | ||
|
||
import unittest | ||
|
||
|
||
class TestPackage(PackageTestCase, unittest.TestCase): | ||
project_name = "example.plone-dash-addon" | ||
meta_files = [] | ||
configure_files = ["configure.zcml", "permissions.zcml", "browser/configure.zcml"] | ||
overrides_files = [] | ||
standard_z3c_autoinclude = True |