containerbuildsystem / cachi2

GNU General Public License v3.0
7 stars 25 forks source link

Convert PipRequirement classmethods to staticmethods #507

Closed ianrochapg closed 4 months ago

ianrochapg commented 5 months ago

PipRequirement had three classmethods with no real connection to the class, so in this commit I'm converting them to staticmethods and passing the necessary data as arguments.

PipRequirement._assess_direct_access_requirement PipRequirement._adjust_direct_access_requirement PipRequirement._split_hashes_from_options

Resolves #488

Maintainers will complete the following section

Note: if the contribution is external (not from an organization member), the CI pipeline will not run automatically. After verifying that the CI is safe to run:

brunoapimentel commented 5 months ago

/ok-to-test