Skip to content

Commit

Permalink
Merge branch 'main' into include_basic_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
avoinea committed Oct 22, 2023
2 parents bddeaf9 + b1a17a8 commit efdca2a
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 80 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests
on: [push,pull_request]
on: [push, pull_request]
jobs:
build:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
Expand All @@ -8,19 +8,20 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: '3.7'
plone-version: '5.2'
- python-version: '3.8'
plone-version: '5.2'
- python-version: '3.8'
plone-version: '6.0'
- python-version: '3.9'
plone-version: '6.0'
- python-version: '3.10'
plone-version: '6.0'
- python-version: '3.11'
plone-version: '6.0'

- python-version: "3.7"
plone-version: "5.2"
- python-version: "3.8"
plone-version: "5.2"
- python-version: "3.8"
plone-version: "6.0"
- python-version: "3.9"
plone-version: "6.0"
- python-version: "3.10"
plone-version: "6.0"
- python-version: "3.11"
plone-version: "6.0"
- python-version: "3.12"
plone-version: "6.0"
steps:
# git checkout
- uses: actions/checkout@v3
Expand All @@ -30,7 +31,7 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache: "pip"

# buildout eggs cache
- uses: actions/cache@v3
Expand Down
36 changes: 33 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,36 @@ Changelog
.. towncrier release notes start
9.1.0 (2023-10-18)
------------------

New features:


- Add support for Python 3.12. @tisto (#1722)


Bug fixes:


- Treat sub-items like items in ``@linkintegrity`` endpoint. @jaroel (#1714)
- Limits the use of multilingual services only if multilingual is actually installed. @mamico (#1723)


Internal:


- Remove unused code. @davisagli (#1703)
- Replace deprecated assert methods. @gforcada (#1719)
- Drop, already unused plone.app.robotframework test. @gforcada (#1720)


Documentation:


- Fix redirect for https://json-schema.org/. @stevepiercy (#1718)


9.0.0 (2023-09-23)
------------------

Expand Down Expand Up @@ -461,9 +491,9 @@ Bug fixes:


- Added url field to Actions (#817)
- Update statictime tests following changes to p.a.disucssion (see
https://github.com/plone/plone.app.discussion/pull/204) - [instification] (#1520)
- Update @portrait endpoint to use sanitized user id [instification] (#1524)
- Updated ``statictime`` tests following changes to ``p.a.discussion`` (see
https://github.com/plone/plone.app.discussion/pull/204). @instification (#1520)
- Updated ``@portrait`` endpoint to use sanitized user id. @instification (#1524)


8.31.0 (2022-10-20)
Expand Down
2 changes: 0 additions & 2 deletions base.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ allow-hosts =
files.pythonhosted.org
launchpad.net
code.google.com
robotframework.googlecode.com

[versions]
# Do not use a release of plone.restapi:
Expand All @@ -42,7 +41,6 @@ debug-exceptions = on
eggs =
Plone
Pillow
plone.app.debugtoolbar
plone.restapi [test]
environment-vars =
zope_i18n_compile_mo_files true
Expand Down
2 changes: 0 additions & 2 deletions news/1.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion news/1703.internal

This file was deleted.

1 change: 0 additions & 1 deletion news/1718.documentation

This file was deleted.

3 changes: 2 additions & 1 deletion plone-5.2.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ extends =
black = 22.3.0

# we need the newest plone.rest release
plone.rest = 3.0.1
plone.rest = 3.0.1
plone.app.linkintegrity = 3.6.2
6 changes: 6 additions & 0 deletions plone-6.0.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ zodb-temporary-storage = off
[versions]
black = 22.3.0
pygments = 2.14.0
plone.app.linkintegrity = 4.0.3
robotframework-browser = 17.5.2
robotframework-assertion-engine = 2.0.0
robotframework-debuglibrary = 2.3.0
robotframework-pythonlibcore = 4.2.0
grpcio-tools = 1.59.0
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys


version = "9.0.1.dev0"
version = "9.1.1.dev0"

if sys.version_info.major == 2:
raise ValueError(
Expand Down Expand Up @@ -42,9 +42,8 @@ def read(filename):
TEST_REQUIRES = [
"collective.MockMailHost",
"plone.app.caching",
"plone.app.contenttypes",
"plone.app.robotframework",
"plone.app.testing [robot] >= 4.2.2", # ROBOT_TEST_LEVEL added
"plone.app.contenttypes[test]",
"plone.app.testing",
"plone.api",
"requests",
"mock",
Expand All @@ -71,6 +70,7 @@ def read(filename):
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
],
Expand Down
3 changes: 3 additions & 0 deletions src/plone/restapi/services/linkintegrity/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def reply(self):
data = getMultiAdapter((item, self.request), ISerializeToJsonSummary)()
data["breaches"] = []
for breach in breaches:
if breach["target"]["uid"] not in uids:
uids.append(breach["target"]["uid"])
continue
for source in breach.get("sources", []):
# remove unwanted data
source["@id"] = source["url"]
Expand Down
4 changes: 4 additions & 0 deletions src/plone/restapi/services/multilingual/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
factory=".pam.TranslationInfo"
for="Products.CMFCore.interfaces.IContentish"
permission="zope2.View"
layer="plone.app.multilingual.interfaces.IPloneAppMultilingualInstalled"
name="@translations"
/>
<cache:ruleset
Expand All @@ -33,6 +34,7 @@
factory=".pam.LinkTranslations"
for="Products.CMFCore.interfaces.IContentish"
permission="plone.app.multilingual.ManageTranslations"
layer="plone.app.multilingual.interfaces.IPloneAppMultilingualInstalled"
name="@translations"
/>

Expand All @@ -41,6 +43,7 @@
factory=".pam.UnlinkTranslations"
for="Products.CMFCore.interfaces.IContentish"
permission="plone.app.multilingual.ManageTranslations"
layer="plone.app.multilingual.interfaces.IPloneAppMultilingualInstalled"
name="@translations"
/>

Expand All @@ -49,6 +52,7 @@
factory=".locator.TranslationLocator"
for="Products.CMFCore.interfaces.IContentish"
permission="plone.app.multilingual.ManageTranslations"
layer="plone.app.multilingual.interfaces.IPloneAppMultilingualInstalled"
name="@translation-locator"
/>

Expand Down
22 changes: 0 additions & 22 deletions src/plone/restapi/tests/robot/test.robot

This file was deleted.

28 changes: 0 additions & 28 deletions src/plone/restapi/tests/test_robot.py.txt

This file was deleted.

Loading

0 comments on commit efdca2a

Please sign in to comment.