[Notes] [Git][BuildStream/buildstream][tristan/debug-symbols-location-1.2] 3 commits: setup.py: Add fields required for publishing on PyPi



Title: GitLab

Tristan Van Berkom pushed to branch tristan/debug-symbols-location-1.2 at BuildStream / buildstream

Commits:

10 changed files:

Changes:

  • buildstream/data/projectconfig.yaml
    ... ... @@ -72,7 +72,7 @@ variables:
    72 72
       # Generic implementation for stripping debugging symbols
    
    73 73
       strip-binaries: |
    
    74 74
     
    
    75
    -    find "%{install-root}" -type f \
    
    75
    +    cd "%{install-root}" && find -type f \
    
    76 76
           '(' -perm -111 -o -name '*.so*' \
    
    77 77
               -o -name '*.cmxs' -o -name '*.node' ')' \
    
    78 78
           -exec sh -ec \
    
    ... ... @@ -80,7 +80,7 @@ variables:
    80 80
            if [ "$hdr" != "$(printf \\x7fELF)" ]; then
    
    81 81
                exit 0
    
    82 82
            fi
    
    83
    -       debugfile="%{install-root}%{debugdir}/$(basename "$1")"
    
    83
    +       debugfile="%{install-root}%{debugdir}/$1"
    
    84 84
            mkdir -p "$(dirname "$debugfile")"
    
    85 85
            objcopy %{objcopy-extract-args} "$1" "$debugfile"
    
    86 86
            chmod 644 "$debugfile"
    

  • setup.py
    ... ... @@ -224,6 +224,13 @@ def get_cmdclass():
    224 224
     with open('dev-requirements.txt') as dev_reqs:
    
    225 225
         dev_requires = dev_reqs.read().splitlines()
    
    226 226
     
    
    227
    +#####################################################
    
    228
    +#     Prepare package description from README       #
    
    229
    +#####################################################
    
    230
    +with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),
    
    231
    +                       'README.rst')) as readme:
    
    232
    +    long_description = readme.read()
    
    233
    +
    
    227 234
     
    
    228 235
     #####################################################
    
    229 236
     #             Main setup() Invocation               #
    
    ... ... @@ -233,8 +240,13 @@ setup(name='BuildStream',
    233 240
           version=versioneer.get_version(),
    
    234 241
           cmdclass=get_cmdclass(),
    
    235 242
     
    
    243
    +      author='BuildStream Developers',
    
    244
    +      author_email='buildstream-list gnome org',
    
    236 245
           description='A framework for modelling build pipelines in YAML',
    
    237 246
           license='LGPL',
    
    247
    +      long_description=long_description,
    
    248
    +      long_description_content_type='text/x-rst; charset=UTF-8',
    
    249
    +      url='https://gitlab.com/BuildStream/buildstream',
    
    238 250
           packages=find_packages(exclude=('tests', 'tests.*')),
    
    239 251
           package_data={'buildstream': ['plugins/*/*.py', 'plugins/*/*.yaml',
    
    240 252
                                         'data/*.yaml', 'data/*.sh.in']},
    

  • tests/cachekey/project/elements/build1.expected
    1
    -e7de3dd12a1e5307e07859ddf2192443a0ccb1ff48e0adcc6c18f9edc2bd0d7d
    \ No newline at end of file
    1
    +afab4c1a67d1e06489083fa1559bda0b2c8df9b7bc239820ed7cdab30c988a4e
    \ No newline at end of file

  • tests/cachekey/project/elements/build2.expected
    1
    -d74957e0f20a7664e9ceed6cc2ba6c140bd8d8d0712d02066feb442638e8e6ed
    \ No newline at end of file
    1
    +47395a4e6c86372b181ad1fd6443e11b1ab54c480b7be5e5fe816d84eec3b369
    \ No newline at end of file

  • tests/cachekey/project/target.expected
    1
    -01f611e61e948f32035b659d33cdae662d863c99051d0e6746f9c5626138655f
    \ No newline at end of file
    1
    +46f48e5c0ff52370ff0cf2bb23bd2c79da23141e6c17b9aa720f7d97b7194340
    \ No newline at end of file

  • tests/examples/autotools.py
    ... ... @@ -28,7 +28,9 @@ def test_autotools_build(cli, tmpdir, datafiles):
    28 28
     
    
    29 29
         assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
    
    30 30
                                    '/usr/share', '/usr/lib/debug',
    
    31
    -                               '/usr/lib/debug/hello', '/usr/bin/hello',
    
    31
    +                               '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
    
    32
    +                               '/usr/lib/debug/usr/bin/hello',
    
    33
    +                               '/usr/bin/hello',
    
    32 34
                                    '/usr/share/doc', '/usr/share/doc/amhello',
    
    33 35
                                    '/usr/share/doc/amhello/README'])
    
    34 36
     
    

  • tests/examples/flatpak-autotools.py
    ... ... @@ -47,8 +47,10 @@ def test_autotools_build(cli, tmpdir, datafiles):
    47 47
     
    
    48 48
         assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
    
    49 49
                                    '/usr/share', '/usr/lib/debug',
    
    50
    -                               '/usr/lib/debug/hello', '/usr/bin/hello',
    
    51
    -                               '/usr/share/doc', '/usr/share/doc/amhello',
    
    50
    +                               '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
    
    51
    +                               '/usr/lib/debug/usr/bin/hello',
    
    52
    +                               '/usr/bin/hello', '/usr/share/doc',
    
    53
    +                               '/usr/share/doc/amhello',
    
    52 54
                                    '/usr/share/doc/amhello/README'])
    
    53 55
     
    
    54 56
     
    

  • tests/integration/autotools.py
    ... ... @@ -31,8 +31,10 @@ def test_autotools_build(cli, tmpdir, datafiles):
    31 31
     
    
    32 32
         assert_contains(checkout, ['/usr', '/usr/lib', '/usr/bin',
    
    33 33
                                    '/usr/share', '/usr/lib/debug',
    
    34
    -                               '/usr/lib/debug/hello', '/usr/bin/hello',
    
    35
    -                               '/usr/share/doc', '/usr/share/doc/amhello',
    
    34
    +                               '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
    
    35
    +                               '/usr/lib/debug/usr/bin/hello',
    
    36
    +                               '/usr/bin/hello', '/usr/share/doc',
    
    37
    +                               '/usr/share/doc/amhello',
    
    36 38
                                    '/usr/share/doc/amhello/README'])
    
    37 39
     
    
    38 40
     
    

  • tests/integration/cmake.py
    ... ... @@ -27,7 +27,9 @@ def test_cmake_build(cli, tmpdir, datafiles):
    27 27
         assert result.exit_code == 0
    
    28 28
     
    
    29 29
         assert_contains(checkout, ['/usr', '/usr/bin', '/usr/bin/hello',
    
    30
    -                               '/usr/lib/debug', '/usr/lib/debug/hello'])
    
    30
    +                               '/usr/lib/debug', '/usr/lib/debug/usr',
    
    31
    +                               '/usr/lib/debug/usr/bin',
    
    32
    +                               '/usr/lib/debug/usr/bin/hello'])
    
    31 33
     
    
    32 34
     
    
    33 35
     @pytest.mark.datafiles(DATA_DIR)
    

  • tests/integration/compose.py
    ... ... @@ -39,7 +39,8 @@ def create_compose_element(name, path, config={}):
    39 39
         # Test flat inclusion
    
    40 40
         ([], [], ['/usr', '/usr/lib', '/usr/bin',
    
    41 41
                   '/usr/share', '/usr/lib/debug',
    
    42
    -              '/usr/lib/debug/hello', '/usr/bin/hello',
    
    42
    +              '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
    
    43
    +              '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello',
    
    43 44
                   '/usr/share/doc', '/usr/share/doc/amhello',
    
    44 45
                   '/usr/share/doc/amhello/README',
    
    45 46
                   '/tests', '/tests/test']),
    
    ... ... @@ -53,13 +54,17 @@ def create_compose_element(name, path, config={}):
    53 54
                                   '/usr/share/doc/amhello/README']),
    
    54 55
         # Test with only runtime excluded
    
    55 56
         ([], ['runtime'], ['/usr', '/usr/lib', '/usr/share',
    
    56
    -                       '/usr/lib/debug', '/usr/lib/debug/hello',
    
    57
    +                       '/usr/lib/debug', '/usr/lib/debug/usr',
    
    58
    +                       '/usr/lib/debug/usr/bin',
    
    59
    +                       '/usr/lib/debug/usr/bin/hello',
    
    57 60
                            '/usr/share/doc', '/usr/share/doc/amhello',
    
    58 61
                            '/usr/share/doc/amhello/README',
    
    59 62
                            '/tests', '/tests/test']),
    
    60 63
         # Test with runtime and doc excluded
    
    61 64
         ([], ['runtime', 'doc'], ['/usr', '/usr/lib', '/usr/share',
    
    62
    -                              '/usr/lib/debug', '/usr/lib/debug/hello',
    
    65
    +                              '/usr/lib/debug', '/usr/lib/debug/usr',
    
    66
    +                              '/usr/lib/debug/usr/bin',
    
    67
    +                              '/usr/lib/debug/usr/bin/hello',
    
    63 68
                                   '/tests', '/tests/test']),
    
    64 69
         # Test with runtime simultaneously in- and excluded
    
    65 70
         (['runtime'], ['runtime'], ['/usr', '/usr/lib', '/usr/share']),
    
    ... ... @@ -72,7 +77,8 @@ def create_compose_element(name, path, config={}):
    72 77
         # Test excluding a custom 'test' domain
    
    73 78
         ([], ['test'], ['/usr', '/usr/lib', '/usr/bin',
    
    74 79
                         '/usr/share', '/usr/lib/debug',
    
    75
    -                    '/usr/lib/debug/hello', '/usr/bin/hello',
    
    80
    +                    '/usr/lib/debug/usr', '/usr/lib/debug/usr/bin',
    
    81
    +                    '/usr/lib/debug/usr/bin/hello', '/usr/bin/hello',
    
    76 82
                         '/usr/share/doc', '/usr/share/doc/amhello',
    
    77 83
                         '/usr/share/doc/amhello/README'])
    
    78 84
     ])
    



  • [Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]