Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand All @@ -21,11 +21,17 @@ jobs:
plone: 5.2
- python: 3.10.11
plone: "6.0"
- python: 3.13.1
plone: "6.1"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libjpeg62 libjpeg62-dev libbz2-dev
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
uses: "gabrielfalcao/pyenv-action@v18"
with:
default: "${{ matrix.python }}"
- name: Setup Env
Expand All @@ -38,8 +44,7 @@ jobs:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }}
restore-keys: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }}
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.python }}-${{ matrix.plone }}
- name: buildout
run: |
sed -ie "s#test.cfg#test-${{matrix.plone}}.cfg#" gha.cfg
Expand All @@ -49,18 +54,18 @@ jobs:
run: |
bin/test -t !robot
coverage:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- python: 3.10.11
plone: "6.0"
- python: 3.13.1
plone: "6.1"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up pyenv and Python
uses: "gabrielfalcao/pyenv-action@v14"
uses: "gabrielfalcao/pyenv-action@v18"
with:
default: "${{ matrix.python }}"
- name: Setup Env
Expand All @@ -74,8 +79,7 @@ jobs:
cache-name: cache-eggs
with:
path: ~/buildout-cache/eggs
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }}
restore-keys: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.plone }}
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ matrix.python }}-${{ matrix.plone }}
- name: buildout
run: |
sed -ie "s#test.cfg#test-${{matrix.plone}}.cfg#" gha.cfg
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# dirs
bin/
buildout-cache/
CACHEDIR.TAG
checkversion*.html
develop-eggs/
eggs/
Expand Down
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Changelog
0.5 (unreleased)
----------------

- Nothing changed yet.
- Added Plone 6.1 version in buildout.
[chris-adam]


0.4 (2024-06-07)
Expand Down
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/make
# pyenv is a requirement, with 2.7, 3.7 and 3.10 python versions, and virtualenv installed in each version
# pyenv is a requirement, with 2.7, 3.7, 3.10 and 3.13 python versions, and virtualenv installed in each version
# plone parameter must be passed to create environment 'make setup plone=6.0' or after a make cleanall
# The original Makefile can be found on https://github.com/IMIO/scripts-buildout

SHELL=/bin/bash
plones=4.3 5.2 6.0
plones=4.3 5.2 6.0 6.1
b_o=
old_plone=$(shell [ -e .plone-version ] && cat .plone-version)

Expand All @@ -15,10 +15,13 @@ endif
ifndef plone
ifeq (,$(filter setup,$(MAKECMDGOALS)))
plone=$(old_plone)
b_o=-N
endif
endif

ifneq ($(wildcard bin/instance),)
b_o=-N
endif

ifndef python
ifeq ($(plone),4.3)
python=2.7
Expand All @@ -29,6 +32,9 @@ endif
ifeq ($(plone),6.0)
python=3.10
endif
ifeq ($(plone),6.1)
python=3.13
endif
endif

all: buildout
Expand Down
2 changes: 1 addition & 1 deletion requirements-4.3.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pip==20.3.4
setuptools==44.1.1
zc.buildout==2.13.3
zc.buildout==3.1.1
wheel==0.37.1
3 changes: 3 additions & 0 deletions requirements-6.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-c https://dist.plone.org/release/6.1-latest/requirements.txt
setuptools
zc.buildout
52 changes: 28 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
from setuptools import setup


long_description = '\n\n'.join([
open('README.rst').read(),
open('CONTRIBUTORS.rst').read(),
open('CHANGES.rst').read(),
])
long_description = "\n\n".join(
[
open("README.rst").read(),
open("CONTRIBUTORS.rst").read(),
open("CHANGES.rst").read(),
]
)


setup(
name='collective.behavior.internalnumber',
version='0.5.dev0',
name="collective.behavior.internalnumber",
version="0.5.dev0",
description="Configurable internal number plone behavior",
long_description=long_description,
# Get more from https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand All @@ -26,40 +28,42 @@
"Framework :: Plone :: 4.3",
"Framework :: Plone :: 5.2",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: 6.1",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
],
keywords='Python Plone',
author='Stephan Geulette',
author_email='support@imio.be',
keywords="Python Plone",
author="Stephan Geulette",
author_email="support@imio.be",
# url='https://pypi.python.org/pypi/collective.behavior.internalnumber',
project_urls={
"PyPI": "https://pypi.python.org/pypi/collective.behavior.internalnumber",
"Source": "https://github.com/collective/collective.behavior.internalnumber",
},
license='GPL version 2',
packages=find_packages('src', exclude=['ez_setup']),
namespace_packages=['collective', 'collective.behavior'],
package_dir={'': 'src'},
license="GPL version 2",
packages=find_packages("src", exclude=["ez_setup"]),
namespace_packages=["collective", "collective.behavior"],
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=[
'plone.api',
'Products.GenericSetup>=1.8.2',
'setuptools',
'collective.behavior.talcondition',
'collective.z3cform.datagridfield',
"plone.api",
"Products.GenericSetup>=1.8.2",
"setuptools",
"collective.behavior.talcondition",
"collective.z3cform.datagridfield",
],
extras_require={
'test': [
'plone.app.testing',
'plone.testing>=5.0.0',
'plone.app.contenttypes',
'plone.app.robotframework[debug]',
"test": [
"plone.app.testing",
"plone.testing>=5.0.0",
"plone.app.contenttypes",
"plone.app.robotframework[debug]",
],
},
entry_points="""
Expand Down
37 changes: 37 additions & 0 deletions test-6.1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[buildout]

extends =
https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-6.1.x.cfg
base.cfg

# update-versions-file = test-6.1.cfg

[versions]
# to keep prompt-toolkit < 3
ipython = 8.3.0

ipdb = 0.13.9
iw.debug = 0.3
jedi = 0.18.1
parso = 0.8.3

# Required by:
# ipdb
asttokens = 2.0.8
backcall = 0.2.0
executing = 1.1.1
matplotlib-inline = 0.1.6
pexpect = 4.8.0
pickleshare = 0.7.5
ptyprocess = 0.7.0
pure-eval = 0.2.2
stack-data = 0.5.1
traitlets = 5.4.0

# Required by:
# collective.behavior.internalnumber==0.2.dev0
collective.behavior.talcondition = 1.0a1

# Required by:
# collective.behavior.internalnumber==0.2.dev0
collective.z3cform.datagridfield = 3.0.1