Skip to content

Add structs & parsing for .whl file name #1

Open
@Allstreamer

Description

@Allstreamer

Description

Create a Parser and relevant datastructures for the PEP-491 Wheel file-format naming convention.

the public facing API should look something like this:

use example_crate::example_struct;

let a = example_struct::new("django-1.0-1-py27-cp33m-linux_x86_64.whl");

println!("{}", a.distribution);
// > "django"

println!("{}", a.version);
// > You think of it, idk but probably pyver

println!("{}", a.build_tag);
// > Some(1)

println!("{}", a.python_tag);
// Some Enum idk

println!("{}", a.abi_tag);
// Some Enum idk

println!("{}", a.platform_tag);
// Some Enum idk

Checklist

  • Did you do it john?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions