From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

Author Notes

These are the Author's notes to himself.

To Do list

As always check the github repository for current status on issues.

Only use decimal version numbers; 0.14.1 will not be indexed

How to Release

Using Dzil

The author keeps forgetting how to run dzil.

Release checklist

Design Decisions

Dist::Zilla and PodWeaver

Dzil can be a pain, but it makes the release to CPAN step easier and promises to build me an RPM spec file. PodWeaver adds in the NAME and VERSION sections of the Pod, in case you're wondering why it's not in the build_module.pl script.

Need to remember to commit all the files in the repository before releasing.

Perl Critic

Errors that appear on perlcritic and why the design ignores them

stern

Making changes to PhysicalConstants.xml

Any changes should be kept
Look in data/old_versions/constants_YEAR_VERSION.xml As a change is made, make copy of PhysicalConstants.xml to the year and upcoming release version of Astro::Constants

Adding a Constant

There is a script that will add a number of constants to the Constants file script/add_constants.pl assumes the following:

Modifying a Constant

For now I edit the XML with XML Copy Editor. Rather than building an editor, I should have a validator.

Deprecating a Constant

One step per version. No faster.

Changing a Name

Removing a constant

Add symbol to PhysicalConstants.xml schema

Design decisions

PhysicalConstants

I chose to keep the Constant definitions in XML for its language independance and validation tools. Other people have the ability to edit the file and I'd like a way of verifying that the definition file is correct before the processing tools get blown out of the water.

Packaging for Distros

Fedora

Looking at Fedora's 2024 instructions I installed fedora-packager and fedora-review.