code: function poetry2npm(input) {
    const versions = input
      .split(',')
      .map(str => str.trim())
      .filter(notEmpty);
    return versions.join(' ');
  }
docs: This function works like cargo2npm, but it doesn't add a '^', because poetry treats versions without operators as exact versions.