plone / plonecli

Plone Command Line Client - for creating and working with custom add-ons and themes
https://pypi.org/project/plonecli/
Other
19 stars 10 forks source link

docutils contraint prevents plonecli build #84

Open lmuller1962 opened 2 months ago

lmuller1962 commented 2 months ago

Description

I tried to create a new addon. A version constraint problem occured since a few days,

What I Did

I created an addon: plonecli create addon my.addon

and tried to build it: plonecli build

The following problem occured during build:


(...)
Version and requirements information containing docutils:
  [versions] constraint on docutils: 0.18.1
  Requirement of readme-renderer[md]>=40: docutils>=0.21.2
  Requirement of readme-renderer>=35.0: docutils>=0.21.2
While:
  Installing releaser.
Error: The requirement ('docutils>=0.21.2') is not allowed by your [versions] constraint (0.18.1)
rohnsha0 commented 1 month ago

was able to reproduce the same

jensens commented 1 month ago

I think in the generated code there exists a base.cfg ini-style file with a [versions] section. Does it help if you add in this section a line to upgrade the pinned version of docutils like so?

# ... keep lines above
[versions]
# ... keep existing and append:
docutils = 0.21.2
lmuller1962 commented 1 month ago

Yes, this works, many thanks! :+1: