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

modified publish workflow #952

Merged
merged 5 commits into from
Oct 7, 2024
Merged

Conversation

kecnry
Copy link
Member

@kecnry kecnry commented Oct 3, 2024

This replaces #949, and now adapts the matrix wheel generation used by https://github.com/aprsa/ndpolator/blob/main/.github/workflows/on_release.yaml

@kecnry
Copy link
Member Author

kecnry commented Oct 3, 2024

looks like there is a bug with building the wheel for libphoebe:

building 'libphoebe' extension
        creating build/temp.linux-x86_64-pypy38/phoebe/lib
        g++ -pthread -DNDEBUG -O2 -fPIC -I/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/numpy/core/include -I/opt/python/pp38-pypy38_pp73/include/pypy3.8 -c phoebe/lib/libphoebe.cpp -o build/temp.linux-x86_64-pypy38/phoebe/lib/libphoebe.o -std=c++14
        Traceback (most recent call last):
          File "/opt/python/pp38-pypy38_pp73/lib/pypy3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
            main()
          File "/opt/python/pp38-pypy38_pp73/lib/pypy3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/opt/python/pp38-pypy38_pp73/lib/pypy3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
            return _build_backend().build_wheel(wheel_directory, config_settings,
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/build_meta.py", line 421, in build_wheel
            return self._build_with_temp_dir(
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
            self.run_setup()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/build_meta.py", line 318, in run_setup
            exec(code, locals())
          File "<string>", line 20, in <module>
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/__init__.py", line 117, in setup
            return distutils.core.setup(**attrs)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
            return run_commands(dist)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
            dist.run_commands()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
            self.run_command(cmd)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/dist.py", line 950, in run_command
            super().run_command(command)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/command/bdist_wheel.py", line 398, in run
            self.run_command("build")
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
            self.distribution.run_command(command)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/dist.py", line 950, in run_command
            super().run_command(command)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
            self.run_command(cmd_name)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
            self.distribution.run_command(command)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/dist.py", line 950, in run_command
            super().run_command(command)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
            cmd_obj.run()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/command/build_ext.py", line 98, in run
            _build_ext.run(self)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
            self.build_extensions()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
            self._build_extensions_serial()
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
            self.build_extension(ext)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/command/build_ext.py", line 263, in build_extension
            _build_ext.build_extension(self, ext)
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 581, in build_extension
            self.compiler.link_shared_object(
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/ccompiler.py", line 758, in link_shared_object
            self.link(
          File "/tmp/pip-build-env-dk7xap70/overlay/lib/pypy3.8/site-packages/setuptools/_distutils/unixccompiler.py", line 269, in link
            self.linker_exe
        TypeError: 'NoneType' object is not subscriptable (key slice(None, None, None))
        [end of output]

@aprsa
Copy link
Contributor

aprsa commented Oct 7, 2024

Well, the good news is that I cannot reproduce this locally, i.e. wheel builds without issues on 24.04. But that means that we either need to dig deeper, or change the wheel runner. I'm looking into it.

strategy:
matrix:
os: [ubuntu-22.04, macos-13, macos-14]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of Sep 2024, ubuntu-24.04 runner is supported; can you change it and see if that fixes the issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, same error 🤷‍♂️

@kecnry kecnry marked this pull request as ready for review October 7, 2024 15:20
@kecnry kecnry merged commit 22fa0db into phoebe-project:master Oct 7, 2024
5 of 20 checks passed
@kecnry kecnry deleted the release-workflow branch October 7, 2024 15:20
aprsa added a commit that referenced this pull request Oct 8, 2024
commit 34281b8
Merge: 1584f6c 22fa0db
Author: Kyle Conroy <[email protected]>
Date:   Mon Oct 7 15:16:16 2024 -0400

    Merge 2.4.15 into release-2.5

commit 22fa0db
Author: Kyle Conroy <[email protected]>
Date:   Mon Oct 7 11:20:56 2024 -0400

    modified publish workflow (#952)

    * modified publish workflow using same as https://github.com/aprsa/ndpolator/blob/main/.github/workflows/on_release.yaml
    * address build wheel warnings
    * bump ubuntu runner to 24.04
    * upgrade cibuildwheel
    * skip failing builds

commit fbde243
Author: Kyle Conroy <[email protected]>
Date:   Thu Oct 3 15:48:13 2024 -0400

    2.4.15 bugfix release (#907)

    * Fix handling of include_times for RVs with compute_times/phases. [#889]
    * GPs on models computed in phase-space will be properly computed based on residuals in time space. [#899]
    * Fix units of requivfrac. [#894]
    * Fix adopting mask_phases from lc_geometry. [#896]
    * Fix population of wavelength array in load function for passbands. [#914]
    * Temporarily cap numpy dependency < 2.0. [#930]
    * Fix installation of phoebe-server CLI script to launch from UI. [#929]
    * Fix passing compute to export_solver with features attached. [#922]
    * sigmas_lnf: change handling of noise-nuissance parameter for RVs to no longer depend on the RV amplitude. [#901]
    * Remove duplicated phoebe-server code. [#940]
    * Fix python 3.12+ support by updating invalid escape sequences. [#948]
    * Improved precision in calculation of constraints. [#945]

    ---------

    Co-authored-by: Kelly Hambleton (Prsa) <[email protected]>
    Co-authored-by: David Jones <[email protected]>
    Co-authored-by: Andrej Prsa <[email protected]>
    Co-authored-by: Matthias Fabry <[email protected]>
    Co-authored-by: Matthias Fabry <[email protected]>
    Co-authored-by: Miroslav Broz <[email protected]>

commit bf850e1
Author: Kyle Conroy <[email protected]>
Date:   Thu Oct 3 11:02:38 2024 -0400

    release GH actions workflow (#949)
@kecnry kecnry mentioned this pull request Nov 13, 2024
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.

2 participants