Skip to content

Documentation is failing to build and publish since #93 was merged #106

Closed

Activity

  1. added
    bug
    documentation
    CI
    and removed
    bug
    on Dec 21, 2021
  2. jkowalleck commented on Dec 21, 2021

    @jkowalleck
    Member

    python markdown requires importlib_metadata which is not installed. hm, that is strange.
    will look into it.

  3. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    I can't get it to fail locally @jkowalleck ? Very weird.

  4. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    Last successful run (https://github.com/CycloneDX/cyclonedx-python-lib/runs/4584812203?check_suite_focus=true) pulled in a newer version of Installing markdown (3.3.6) than the latest attempt: Installing markdown (3.3.5)

  5. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    I'll regen poetry.lock @jkowalleck

  6. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    And when doing so I get this:

    <debug>PackageInfo:</debug> Invalid constraint (importlib-metadata (>='4.4') ; python_version < "3.10") found in markdown-3.3.5 dependencies, skipping
    
  7. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    So - looks like the root cause is related to bumping flake8 >=4.0.1:

    If we directly had markdown==3.3.6 as a dev-dependency:

    poetry update                                                                                      
    Updating dependencies
    Resolving dependencies... (0.1s)
    
      SolverProblemError
    
      Because no versions of markdown match >3.3.6,<4.0.0
       and markdown (3.3.6) depends on importlib-metadata (>=4.4), markdown (>=3.3.6,<4.0.0) requires importlib-metadata (>=4.4).
      And because flake8 (4.0.1) depends on importlib-metadata (<4.3)
       and no versions of flake8 match >4.0.1,<5.0.0, markdown (>=3.3.6,<4.0.0) is incompatible with flake8 (>=4.0.1,<5.0.0).
      So, because cyclonedx-python-lib depends on both flake8 (^4.0.1) and markdown (^3.3.6), version solving failed.
    
  8. madpah commented on Dec 21, 2021

    @madpah
    CollaboratorAuthor

    Isolating dependencies for documentation generation has resolved this immediate problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions