37 Commits

Author SHA1 Message Date
Arnab Mahanti
db1b0953cd Revert "Fix failing python_cibuildwheel workflows" and update (#2271)
* Revert "Switch to older cython version (#2270)"

This reverts commit 3a16339a8c.

* updated to cython<3.0
2023-07-26 12:08:33 -04:00
Arnab Mahanti
3a16339a8c Switch to older cython version (#2270) 2023-07-26 10:51:05 -04:00
Jorrit Wronski
62f9022182 one more typo in the job file 2022-12-08 00:28:51 +01:00
Jorrit Wronski
d9d87a960e Simplify the build selector for Python 2022-12-07 23:55:35 +01:00
Jorrit Wronski
a14412559e Automatically convert ARM64 to arm64 2022-12-07 19:58:12 +01:00
Jorrit Wronski
8375065bc5 back to the old definition 2022-12-07 15:49:13 +01:00
Jorrit Wronski
6bd16ece89 More architecture debugging 2022-12-07 15:46:10 +01:00
Jorrit Wronski
4902147821 Handle missing arch identifier 2022-12-07 15:39:24 +01:00
Jorrit Wronski
8d18be564b Fix the architecture selection 2022-12-07 15:36:49 +01:00
Jorrit Wronski
ab5fbf9203 Update the actions to avoid Node.js 12 warnings 2022-12-07 15:05:03 +01:00
Jorrit Wronski
fc59025b50 use the tagged action 2022-12-07 14:04:28 +01:00
Jorrit Wronski
42989cbfe5 Pass the OS as part of the call 2022-12-07 13:58:47 +01:00
Jorrit Wronski
c9c7018cf9 Build the wheels with a reusable workflow 2022-12-07 13:47:26 +01:00
Jorrit Wronski
2ba2f122a3 Skip one more cross-compilation architecture 2022-12-07 12:01:45 +01:00
Jorrit Wronski
626f8d4a5f Remove the Windows ARM64 builds for now, more debugging is needed 2022-12-07 11:38:39 +01:00
Jorrit Wronski
720355220d Checking for ARM64 on Windows 2022-12-07 00:05:41 +01:00
Jorrit Wronski
76daa5abe6 Force a native build on Linux instead of 64bit 2022-12-06 23:16:03 +01:00
Jorrit Wronski
61e6ed4577 skip universal2 on macOS 2022-12-06 22:51:03 +01:00
Jorrit Wronski
daa265b55c Do not compile i686 on Linux 2022-12-06 22:47:50 +01:00
Jorrit Wronski
17ee4d2144 Renamed the Python build jobs 2022-12-06 22:40:40 +01:00
Jorrit Wronski
18381431c2 Use the default action to build wheels 2022-12-06 22:38:18 +01:00
Jorrit Wronski
522e810574 Build the docs for v6.4.2 (#2191)
- Streamlined the build of the HTML documentation based on a private docker image.
- Invoke doxygen and Sphinx to create the final HTML pages.
- Employ a cache for the GitHub actions to store the output of the expensive tasks.
- Restructured the GitHub actions builders and introduced a naming scheme.
- Fixed a few typos in the docs.
- Automatically publish the documentation to GitHub pages.
2022-12-06 21:49:08 +01:00
Jorrit Wronski
3d423d8034 Use the Python directory 2022-12-01 13:06:52 +01:00
Jorrit Wronski
d390c2927b Include folder names 2022-11-30 00:14:17 +01:00
Jorrit Wronski
49c858fc52 Trying to recreate the old file structure for the download server 2022-11-29 23:48:05 +01:00
Jorrit Wronski
c5bb7c32bc Checking the Python wheel configurations 2022-11-29 23:24:51 +01:00
Ian Bell
269872964f Turn on wheels for python 3.11 2022-11-21 17:25:55 -05:00
Ian Bell
6f4dfa82c1 Turn musl builds back on 2022-04-20 22:22:51 -04:00
Julien Marrec
c66399d31d Simplify CoolProp python bindings cibuildwheel (#2122)
* Try to simplify cibuildwheel setup

* Split up the builds by python version it takes WAY too long otherwise

About 1h15 on mac, 45 min on windows, and Linux didn't finish (but that's becasue of aarch64 I think)

* Remove linux aarch64: docker is hanging because it doesn't pass the --platform tag correctly

```
 Status: Downloaded newer image for quay.io/pypa/manylinux2014_aarch64:2022-03-31-361e6b6
  WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
  eab86187799169ab1ff12c486be2dbfa69f7a676b9a00c20e297c2207b9c293e
      + /bin/true
  standard_init_linux.go:228: exec user process caused: exec format error
```

* Try to use Cmake for Linux, see if it fixes the whl size (which bloated from 6MB to 42 MB)
2022-04-12 19:04:04 -04:00
Julien Marrec
a5f9344737 Missing a py37 build for Windows x64 + fix py38 win32 and py39 win32 (#2120)
* Missing a py37 build for Windows x64
2022-04-12 14:13:10 -04:00
Julien Marrec
06000823dc I moved the TWINE stuff in the wrong step (#2118) 2022-04-11 20:04:25 -04:00
Julien Marrec
8aa50fc270 Fix mac sed (#2116)
* Minimum fix for sed: mac has a weird sed version...

* Make repalcement from python to avoid dealing with weird sed version on mac

* Try to get the size of the wheels (/!\ 100MB max per upload)

* move setting env vars up a block
2022-04-11 12:35:06 -04:00
Ian Bell
51740177af Fix sed for versioning of wheels 2022-03-31 19:07:16 -04:00
Ian Bell
f6fbdb2af6 packaging is also needed 2022-03-31 19:01:57 -04:00
Ian Bell
9b03196b44 requests is needed to extract the version 2022-03-31 19:00:17 -04:00
Julien Marrec
76b48b35f2 Configure upload to pypi/testpypi (#2109)
* Enable upload to testpypi

* Figure out the next available version to avoid override (especially for testpypi, shouldn't happen for pypi as we should bump in CMakeLists)
2022-03-31 18:53:39 -04:00
Julien Marrec
149a40d88b Add github action to build python wheels (including python 3.9 and 3.10) (#2097)
* Fix build error: `src/Backends/IF97/IF97Backend.h:54:34: error: call of overloaded ‘abs(double)’ is ambiguous`

Found with the manylinux_2_24_x86_64

gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

* Register MSVC 2019 and 2022 in setup.py

* setup.py: when calling cmake, build in parallel

* Enable using Env variables instead of passing them as args to setup.py

* Github actions for linux: try 1

* use actions/checkout@v3 for submodules

* mod setup.py:; typo

* Random shot for cibuildwheel for all platforms

* I thought package_dir was a flag, but it's positional

* typo in cmake_compiler

* add cython to setup_requires

* try a pryproject.toml to install cython

* try more requirements?

* pywin32 only found on win32 I guess

* Try with CIBW_BEFORE_BUILD instead

* try to enable msvc via vcvarsall on windows, and pass MACOSX_DEPLOYMENT_TARGET

* more tweaks for windoze

* disable tests for now (fails on windows)

* tweak mac again: it seems mac doesn't understand a C++ lambda, so like it's using pre C++11

* tweak

* try 10.15 for mac...

* try to  force C++11 since mac picks up the path where lambdas are used...

* Move back down to 10.9 now that C++11 is enabled and it works on mac, it should be enough

* Try to debug win32

* Enable part of the upload step (minus the upload) to list the wheels

* try to allow win32 to fail for now (instead of plain disabling)

* Disable the python_linux.yml workflow, so cibuildwheels works fine.

* Adjust the upload step to point to the right folder

* make LGTM python happy
2022-03-31 09:26:31 -04:00