Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add structs & parsing for .whl file name #1

Open
1 task
Allstreamer opened this issue Sep 18, 2022 · 1 comment
Open
1 task

Add structs & parsing for .whl file name #1

Allstreamer opened this issue Sep 18, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Allstreamer
Copy link

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?
@Allstreamer Allstreamer added the enhancement New feature or request label Sep 18, 2022
@Allstreamer Allstreamer self-assigned this Sep 18, 2022
@John15321
Copy link
Contributor

Remember that wheels are not the only package formats we have to support. Source distributions and possibly even eggs are gonna be needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants