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

Clean up many prereqs #1230

Merged
merged 22 commits into from
Jul 9, 2024
Merged

Clean up many prereqs #1230

merged 22 commits into from
Jul 9, 2024

Conversation

haarg
Copy link
Member

@haarg haarg commented Jun 19, 2024

Remove a bunch of unused prereqs.

Also replace some prereqs with simpler variants.

@haarg haarg force-pushed the haarg/cleanup-deps branch 5 times, most recently from 220e61d to 9e4be13 Compare June 20, 2024 19:28
@oalders
Copy link
Member

oalders commented Jun 28, 2024

Looks like it wants Data::Printer in the tests.

@haarg haarg force-pushed the haarg/cleanup-deps branch from 9e4be13 to ba2770c Compare June 29, 2024 08:45
mickeyn
mickeyn previously approved these changes Jun 29, 2024
haarg added 17 commits July 7, 2024 17:59
Test::Most just obscures what is being used.
We use DateTime::Format::ISO8601 elsewhere for parsing dates, so also
used it in the latest script. This makes the comparison used more
obvious, and removes use of both Regexp::Common::time and Time::Local.
Rather than implementing the OAuth2 controller as a plugin that injects
a controller, just make it a normal controller. This accomplishes the
same thing but is simpler.
Git::Helpers has a bunch of prereqs and provides many functions, when
the only thing we need is checkout_root. That is trivial to implement
ourselves. In the future, we're likely to not even need the sub anymore.
haarg added 2 commits July 7, 2024 18:15
We don't declare a dependency on Data::Printer, but had a module using
it. It was only used for logging, but Log::Contextual already has
functions for printing data structures which we can use instead.
The tests had multiple ways to do a simple HTTP request against the app.

We don't need that. Removing one of them removes multiple modules and
prereqs.
haarg added 3 commits July 7, 2024 18:15
IO::Interactive tries to generalize the concept of "interactivity", but
we don't actually want the general concept. Color log output should be
based on if STDERR is connected to a terminal. And skipping a prompt
should be based on STDIN.
We don't need any of IO::Prompt's extra features or its weird behaviors
and prereqs.
XML::Simple is not recommended because it is hard to use correctly. We
can use XML::XPath instead, and the code is actually simpler.
@haarg haarg force-pushed the haarg/cleanup-deps branch from c7c203a to e0b3afc Compare July 7, 2024 16:16
Copy link

codecov bot commented Jul 7, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 60.75%. Comparing base (eb8a5f0) to head (e0b3afc).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1230      +/-   ##
==========================================
- Coverage   60.81%   60.75%   -0.07%     
==========================================
  Files         163      163              
  Lines        4453     4441      -12     
  Branches      646      646              
==========================================
- Hits         2708     2698      -10     
+ Misses       1512     1510       -2     
  Partials      233      233              
Files Coverage Δ
lib/MetaCPAN/Role/HasConfig.pm 82.35% <100.00%> (ø)
lib/MetaCPAN/Script/Author.pm 54.16% <100.00%> (+0.55%) ⬆️
lib/MetaCPAN/Script/Backpan.pm 12.82% <100.00%> (-2.18%) ⬇️
lib/MetaCPAN/Script/Latest.pm 68.00% <100.00%> (-3.88%) ⬇️
lib/MetaCPAN/Script/Runner.pm 75.60% <ø> (+2.88%) ⬆️
lib/MetaCPAN/Server.pm 25.71% <ø> (-4.02%) ⬇️
lib/MetaCPAN/Server/Controller/OAuth2.pm 24.65% <ø> (ø)
lib/MetaCPAN/Role/Script.pm 58.87% <66.66%> (-0.33%) ⬇️
lib/MetaCPAN/Script/Snapshot.pm 13.51% <33.33%> (-0.78%) ⬇️
lib/MetaCPAN/Util.pm 81.55% <50.00%> (-2.66%) ⬇️

@haarg haarg merged commit 338834e into master Jul 9, 2024
3 checks passed
@haarg haarg deleted the haarg/cleanup-deps branch July 9, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants