-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
format code with black (pure default settings)
- Loading branch information
Showing
32 changed files
with
479 additions
and
401 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
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# this is a namespace package | ||
try: | ||
import pkg_resources | ||
|
||
pkg_resources.declare_namespace(__name__) | ||
except ImportError: | ||
import pkgutil | ||
|
||
__path__ = pkgutil.extend_path(__path__, __name__) |
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 |
---|---|---|
@@ -1,18 +1,28 @@ | ||
import os | ||
|
||
DEP_KEY = 'Z3C_AUTOINCLUDE_DEPENDENCIES_DISABLED' | ||
PLUGIN_KEY = 'Z3C_AUTOINCLUDE_PLUGINS_DISABLED' | ||
DEP_KEY = "Z3C_AUTOINCLUDE_DEPENDENCIES_DISABLED" | ||
PLUGIN_KEY = "Z3C_AUTOINCLUDE_PLUGINS_DISABLED" | ||
|
||
|
||
def dependencies_disabled(): | ||
return DEP_KEY in os.environ | ||
|
||
|
||
def disable_dependencies(): | ||
os.environ[DEP_KEY] = 'True' | ||
os.environ[DEP_KEY] = "True" | ||
|
||
|
||
def enable_dependencies(): | ||
del os.environ[DEP_KEY] | ||
|
||
|
||
def plugins_disabled(): | ||
return PLUGIN_KEY in os.environ | ||
|
||
|
||
def disable_plugins(): | ||
os.environ[PLUGIN_KEY] = 'True' | ||
os.environ[PLUGIN_KEY] = "True" | ||
|
||
|
||
def enable_plugins(): | ||
del os.environ[PLUGIN_KEY] |
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
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
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 |
---|---|---|
@@ -1,29 +1,26 @@ | ||
from setuptools import setup, find_packages | ||
import sys, os | ||
|
||
version = '0.0' | ||
version = "0.0" | ||
|
||
setup(name='APackage', | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
setup( | ||
name="APackage", | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
""", | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords='', | ||
author='', | ||
author_email='', | ||
url='', | ||
license='', | ||
package_data = {'': ['*.zcml',]}, | ||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'BCPackage', | ||
'z3c.autoinclude', | ||
'TestDirective', | ||
], | ||
entry_points=""" | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords="", | ||
author="", | ||
author_email="", | ||
url="", | ||
license="", | ||
package_data={"": ["*.zcml"]}, | ||
packages=find_packages(exclude=["ez_setup", "examples", "tests"]), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=["BCPackage", "z3c.autoinclude", "TestDirective"], | ||
entry_points=""" | ||
# -*- Entry points: -*- | ||
""", | ||
) | ||
) |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages | ||
try: | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
__import__("pkg_resources").declare_namespace(__name__) | ||
except ImportError: | ||
from pkgutil import extend_path | ||
|
||
__path__ = extend_path(__path__, __name__) |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# | ||
#sanity test | ||
# sanity test |
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 |
---|---|---|
@@ -1,32 +1,32 @@ | ||
from setuptools import setup, find_packages | ||
|
||
version = '0.1' | ||
version = "0.1" | ||
|
||
setup(name='BCPackage', | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
setup( | ||
name="BCPackage", | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
""", | ||
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
], | ||
keywords='', | ||
author='', | ||
author_email='', | ||
url='', | ||
license='', | ||
package_data = {'': ['*.zcml',]}, | ||
packages=find_packages(), | ||
namespace_packages=['b'], | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'setuptools', | ||
'TestDirective', | ||
'SiblingPackage', | ||
# -*- Extra requirements: -*- | ||
], | ||
entry_points=""" | ||
# Get more strings from http://www.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[], | ||
keywords="", | ||
author="", | ||
author_email="", | ||
url="", | ||
license="", | ||
package_data={"": ["*.zcml"]}, | ||
packages=find_packages(), | ||
namespace_packages=["b"], | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
"setuptools", | ||
"TestDirective", | ||
"SiblingPackage", | ||
# -*- Extra requirements: -*- | ||
], | ||
entry_points=""" | ||
# -*- Entry points: -*- | ||
""", | ||
) | ||
) |
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 |
---|---|---|
@@ -1,27 +1,26 @@ | ||
from setuptools import setup, find_packages | ||
import sys, os | ||
|
||
version = '0.0' | ||
version = "0.0" | ||
|
||
setup(name='BasePackage', | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
setup( | ||
name="BasePackage", | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
""", | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords='', | ||
author='', | ||
author_email='', | ||
url='', | ||
license='', | ||
package_data = {'': ['*.zcml',]}, | ||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'z3c.autoinclude', | ||
], | ||
entry_points=""" | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords="", | ||
author="", | ||
author_email="", | ||
url="", | ||
license="", | ||
package_data={"": ["*.zcml"]}, | ||
packages=find_packages(exclude=["ez_setup", "examples", "tests"]), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=["z3c.autoinclude"], | ||
entry_points=""" | ||
# -*- Entry points: -*- | ||
""", | ||
) | ||
) |
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
from setuptools import setup, find_packages | ||
import sys, os | ||
|
||
version = '0.0' | ||
version = "0.0" | ||
|
||
setup(name='FooPackage', | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
setup( | ||
name="FooPackage", | ||
version=version, | ||
description="", | ||
long_description="""\ | ||
""", | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords='', | ||
author='', | ||
author_email='', | ||
url='', | ||
license='', | ||
package_data = {'': ['*.zcml',]}, | ||
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=[ | ||
'z3c.autoinclude', | ||
], | ||
entry_points=""" | ||
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
keywords="", | ||
author="", | ||
author_email="", | ||
url="", | ||
license="", | ||
package_data={"": ["*.zcml"]}, | ||
packages=find_packages(exclude=["ez_setup", "examples", "tests"]), | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=["z3c.autoinclude"], | ||
entry_points=""" | ||
# -*- Entry points: -*- | ||
[z3c.autoinclude.plugin] | ||
fleem = basepackage | ||
""", | ||
) | ||
) |
Oops, something went wrong.