Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

_codata.py varies between builds #225

Open
@bmwiedemann

Description

@bmwiedemann

While working on reproducible builds for openSUSE, I found that
ourpython-quantities package always had variations in_codata.py

This can be fixed with

--- a/setup.py+++ b/setup.py@@ -24,7 +24,6 @@ class data(Command):         with open('quantities/constants/_codata.py', 'w') as f:             f.write('# THIS FILE IS AUTOMATICALLY GENERATED\n')             f.write('# ANY CHANGES MADE HERE WILL BE LOST\n')-            f.write(f'# LAST GENERATED: {datetime.now()}\n\n')             f.write('physical_constants = {}\n\n')             for line in data:                 name = line[:55].rstrip().replace('mag.','magnetic')

or with a more complex patch to allow to override the build datehttps://reproducible-builds.org/docs/source-date-epoch/#python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp