apache / airflow

Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
https://airflow.apache.org/
Apache License 2.0
35.21k stars 13.76k forks source link

Move import to make PythonOperator working on Windows #40424

Closed jscheffl closed 2 days ago

jscheffl commented 3 days ago

As I was testing the PoC for AIP-69 (#40224) for Windows compatability I saw some error beings raised because of problematic import of fnctl in Windows. This is used (and was introduced by me) to lock exclusive access for virtualenv install. But other code is not affected. Therefore moved the import to the location where needed and... whoops. PoC with Windows was (almost) working.

This PR therefore does not enable Windows support but fixes one of the problems.

related: #10388

potiuk commented 2 days ago

Rebasing... The twine issue was caused by https://github.com/pypa/twine/issues/1125 that made twine maintainer to yank 5.1.0 and release 5.1.1 2 hours ago.

jscheffl commented 2 days ago

@potiuk Thanks for the rebase-as-a-service, made it :-D