Skip to content

Commit

Permalink
Merge pull request #18 from plone/config-with-default-template-dc2e2aa0
Browse files Browse the repository at this point in the history
Config with default template
  • Loading branch information
jensens authored Apr 17, 2023
2 parents dc2e2aa + 445178f commit cc9eeed
Show file tree
Hide file tree
Showing 29 changed files with 928 additions and 723 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
#
# EditorConfig Configuration file, for more details see:
# http://EditorConfig.org
# EditorConfig is a convention description, that could be interpreted
# by multiple editors to enforce common coding conventions for specific
# file types

# top-most EditorConfig file:
# Will ignore other EditorConfig files in Home directory or upper tree level.
root = true


[*] # For All Files
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Set default charset
charset = utf-8
# Indent style default
indent_style = space
# Max Line Length - a hard line wrap, should be disabled
max_line_length = off

[*.{py,cfg,ini}]
# 4 space indentation
indent_size = 4

[*.{yml,zpt,pt,dtml,zcml}]
# 2 space indentation
indent_size = 2

[{Makefile,.gitmodules}]
# Tab indentation (no size specified, but view as 4 spaces)
indent_style = tab
indent_size = unset
tab_width = unset
5 changes: 5 additions & 0 deletions .meta.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
[meta]
template = "default"
commit-id = "5cc689e5"
42 changes: 42 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
ci:
autofix_prs: false
autoupdate_schedule: monthly

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/collective/zpretty
rev: 3.0.3
hooks:
- id: zpretty
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
- repo: https://github.com/regebro/pyroma
rev: "4.2"
hooks:
- id: pyroma
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ Fixes:
dict-like API.
[optilude]

- Fix issue with removing non-orderable content for partial ordering suppport.
- Fix issue with removing non-orderable content for partial ordering support.
[witsch]

- Fix ``getObjectPosition`` to return a value representing "no position" for
Expand Down
2 changes: 2 additions & 0 deletions news/1.breaking
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Drop python 2.7 support.
[gforcada]
2 changes: 2 additions & 0 deletions news/5cc689e5.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update configuration files.
[plone devs]
64 changes: 64 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Generated from:
# https://github.com/plone/meta/tree/master/config/default
[tool.towncrier]
filename = "CHANGES.rst"
directory = "news/"
Expand All @@ -18,3 +20,65 @@ showcontent = true
directory = "bugfix"
name = "Bug fixes:"
showcontent = true

[[tool.towncrier.type]]
directory = "internal"
name = "Internal:"
showcontent = true

[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation:"
showcontent = true

[[tool.towncrier.type]]
directory = "tests"
name = "Tests"
showcontent = true

[tool.isort]
profile = "plone"

[tool.black]
target-version = ["py38"]

[tool.dependencychecker]
Zope = [
# Zope own provided namespaces
'App', 'OFS', 'Products.Five', 'Products.OFSP', 'Products.PageTemplates',
'Products.SiteAccess', 'Shared', 'Testing', 'ZPublisher', 'ZTUtils',
'Zope2', 'webdav', 'zmi',
# ExtensionClass own provided namespaces
'ExtensionClass', 'ComputedAttribute', 'MethodObject',
# Zope dependencies
'AccessControl', 'Acquisition', 'AuthEncoding', 'beautifulsoup4', 'BTrees',
'cffi', 'Chameleon', 'DateTime', 'DocumentTemplate',
'MultiMapping', 'multipart', 'PasteDeploy', 'Persistence', 'persistent',
'pycparser', 'python-gettext', 'pytz', 'RestrictedPython', 'roman', 'six',
'soupsieve', 'transaction', 'waitress', 'WebOb', 'WebTest', 'WSGIProxy2',
'z3c.pt', 'zc.lockfile', 'ZConfig', 'zExceptions', 'ZODB', 'zodbpickle',
'zope.annotation', 'zope.browser', 'zope.browsermenu', 'zope.browserpage',
'zope.browserresource', 'zope.cachedescriptors', 'zope.component',
'zope.configuration', 'zope.container', 'zope.contentprovider',
'zope.contenttype', 'zope.datetime', 'zope.deferredimport',
'zope.deprecation', 'zope.dottedname', 'zope.event', 'zope.exceptions',
'zope.filerepresentation', 'zope.globalrequest', 'zope.hookable',
'zope.i18n', 'zope.i18nmessageid', 'zope.interface', 'zope.lifecycleevent',
'zope.location', 'zope.pagetemplate', 'zope.processlifetime', 'zope.proxy',
'zope.ptresource', 'zope.publisher', 'zope.schema', 'zope.security',
'zope.sequencesort', 'zope.site', 'zope.size', 'zope.structuredtext',
'zope.tal', 'zope.tales', 'zope.testbrowser', 'zope.testing',
'zope.traversing', 'zope.viewlet'
]
'Products.CMFCore' = [
'docutils', 'five.localsitemanager', 'Missing', 'Products.BTreeFolder2',
'Products.GenericSetup', 'Products.MailHost', 'Products.PythonScripts',
'Products.StandardCacheManagers', 'Products.ZCatalog', 'Record',
'zope.sendmail', 'Zope'
]
'plone.base' = [
'plone.batching', 'plone.registry', 'plone.schema','plone.z3cform',
'Products.CMFCore', 'Products.CMFDynamicViewFTI',
]
python-dateutil = ['dateutil']
'Products.ZCatalog' = ['Products.PluginIndexes']
28 changes: 21 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
[check-manifest]
ignore =
bootstrap.py
*.cfg

# Generated from:
# https://github.com/plone/meta/tree/master/config/default
[bdist_wheel]
universal = 0

[flake8]
doctests = 1
ignore =
# black takes care of line length
E501,
# black takes care of where to break lines
W503,
# black takes care of spaces within slicing (list[:])
E203,
# black takes care of spaces after commas
E231,

[bdist_wheel]
universal = 1
[check-manifest]
ignore =
.editorconfig
.meta.toml
.pre-commit-config.yaml
tox.ini
59 changes: 27 additions & 32 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
from setuptools import setup, find_packages
from setuptools import find_packages
from setuptools import setup

version = '3.1.1.dev0'

version = "3.1.1.dev0"

setup(
name='plone.folder',
name="plone.folder",
version=version,
description='BTree-based folder implementation with order support',
long_description=(open("README.rst").read() + "\n" +
open("CHANGES.rst").read()),
description="BTree-based folder implementation with order support",
long_description=(open("README.rst").read() + "\n" + open("CHANGES.rst").read()),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 5.2",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: Core",
"Framework :: Zope2",
"Framework :: Zope :: 4",
Expand All @@ -22,38 +23,32 @@
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords='folder btree order',
author='Plone Foundation',
author_email='plone-developers@lists.sourceforge.net',
url='https://pypi.org/project/plone.folder',
license='GPL version 2',
packages=find_packages('src'),
package_dir={'': 'src'},
namespace_packages=['plone'],
keywords="folder btree order",
author="Plone Foundation",
author_email="plone-developers@lists.sourceforge.net",
url="https://pypi.org/project/plone.folder",
license="GPL version 2",
packages=find_packages("src"),
package_dir={"": "src"},
namespace_packages=["plone"],
include_package_data=True,
platforms='Any',
platforms="Any",
zip_safe=False,
python_requires=">=3.8",
install_requires=[
'plone.memoize',
'Products.BTreeFolder2',
'Products.CMFCore',
'Products.ZCatalog',
'setuptools',
'six',
'zope.annotation',
'zope.component',
'zope.container',
'zope.interface',
'Zope2',
"Products.CMFCore",
"Products.ZCatalog",
"setuptools",
],
extras_require={
'test': [
'profilehooks',
"test": [
"plone.app.testing",
"profilehooks",
]
},
)
3 changes: 1 addition & 2 deletions src/plone/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
__import__('pkg_resources').declare_namespace(__name__)
__import__("pkg_resources").declare_namespace(__name__)
1 change: 0 additions & 1 deletion src/plone/folder/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# -*- coding: utf-8 -*-
19 changes: 12 additions & 7 deletions src/plone/folder/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<configure
xmlns="http://namespaces.zope.org/zope"
i18n_domain="plone.folder">
i18n_domain="plone.folder"
>

<adapter factory=".default.DefaultOrdering" />
<adapter factory=".unordered.UnorderedOrdering"
name="unordered" />
<adapter factory=".partial.PartialOrdering"
name="partial" />
<adapter factory=".default.DefaultOrdering" />
<adapter
factory=".unordered.UnorderedOrdering"
name="unordered"
/>
<adapter
factory=".partial.PartialOrdering"
name="partial"
/>

</configure>
</configure>
Loading

0 comments on commit cc9eeed

Please sign in to comment.