Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Code duplication between this project and python-u2flib-server #12

@moreati

Description

@moreati

Porting python-u2flib-server to cryptography I noticed that a few modules are duplicated in this project, and they're starting to diverge. Two examples are

  • u2flib_host.utils and u2flib_server.utils
  • u2flib_host.soft and python-u2flib-server/test/soft_u2f_v2.py

Are these intentional tradeoffs that you'd like to keep? Or mistakes you'd like fixed?

The options I see are

  1. Keep it as is, try to keep them in sync by hand.
  2. Make u2flib-server use the implementation in u2flib-host, and depend on it.
  3. Vice versa
  4. Create a third package that provides the common parts of u2flib-host and u2flib-server.

1 could allow bugs fixed in one package to go unfixed in the other. 2, 3 & 4 increase the complexity of making/keeping track of/declaring dependencies when releasing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions