potiuk commented on a change in pull request #4932: [AIRFLOW-3611] Simplified 
development workflow
URL: https://github.com/apache/airflow/pull/4932#discussion_r266635718
 
 

 ##########
 File path: setup.py
 ##########
 @@ -35,31 +34,34 @@
 
 PY3 = sys.version_info[0] == 3
 
-with io.open('README.md', encoding='utf-8') as f:
-    long_description = f.read()
+try:
+    FileNotFoundError
+except NameError:
+    FileNotFoundError = IOError
 
+try:
+    with io.open('README.md', encoding='utf-8') as f:
+        long_description = f.read()
+except FileNotFoundError:
+    long_description = ''
 
-class Tox(TestCommand):
-    user_options = [('tox-args=', None, "Arguments to pass to tox")]
+
+class CleanCommand(Command):
+    """Custom clean command to tidy up the project root."""
 
 Review comment:
   Fine for me. I just did not want to change this too much, but Now I am going 
to split this a bit more into several small PRs so maybe such fixes make more 
sense :)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to