Skip to content

Conversation

@OyinOlamide
Copy link
Contributor

@OyinOlamide OyinOlamide commented Oct 18, 2021

I am Oyinkansola Awosan, an Outreachy applicant for the December to March cohort. I noticed there was an error in the second block of code under the "Pyenv and setting up virtual-env" part of the guide. There was a letter 's' that was causing problems in the 'checking required packages' command.
I have corrected the error. This way other people who want to contribute to Apache won't face this issue I faced.
Thank you. :)


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

I Oyinkansola Awosan, an Outreachy applicant for the December to March cohort. I noticed there was an error in the second block of code under the "Pyenv and setting up virtual-env" part of the guide. There was a letter 's' that was causing problems in the 'checking required packages' command.
I have corrected the error. This way other people who want to contribute to Apache won't face this issue I faced.
Thank you. :)
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 18, 2021

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
Here are some useful points:

  • Pay attention to the quality of your code (flake8, mypy and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it’s a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

I am Oyinkansola Awosan, an Outreachy applicant for the December to March round.
This commit is to change the second block of code for 'Checking the required packages' under the 'Pyenv and setting up virtual-env' section.
The present block of code returns various errors when run, but the new proposed block of code runs smoothly without errors and would help contributors set up easily when they want to contribute to Apache Airflow.
Thank you.
Copy link
Contributor

@ephraimbuddy ephraimbuddy left a comment

Choose a reason for hiding this comment

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

Other places you should update too are:

  • airflow/breeze

    Lines 276 to 277 in 1571f80

    echo " sudo apt install build-essentials python3.6-dev python3.7-dev python3.8-dev python-dev openssl \\"
    echo " sqlite sqlite-dev default-libmysqlclient-dev libmysqld-dev postgresql"
  • airflow/INSTALL

    Lines 10 to 11 in c747bce

    sudo apt install build-essentials python3.6-dev python3.7-dev python-dev openssl \
    sqlite sqlite-dev default-libmysqlclient-dev libmysqld-dev postgresq

I am Oyinkansola Awosan, an Outreachy applicant for the December - March round.
This commit takes out some unnecessary parts in the second block of code under the 'Pyenv and setting up virtual-env' section.
This update will make setting up easier and smoother for contributors.
Thank you!
@potiuk
Copy link
Member

potiuk commented Oct 18, 2021

Other places you should update too are:

Yeah - would be nice to update those other places too - they give people some guldelines if their installation fails, so it's good if those guidelines are are correct :D

@OyinOlamide
Copy link
Contributor Author

@potiuk @ephraimbuddy @uranusjr
I have updated and made the pull requests.
Please let me know if there's another way I can help or anything else I can do to get the PR merged.
Thank you!

@ephraimbuddy
Copy link
Contributor

@potiuk @ephraimbuddy @uranusjr I have updated and made the pull requests. Please let me know if there's another way I can help or anything else I can do to get the PR merged. Thank you!

Follow the links I posted in my comment above. Locate it and change it too

@OyinOlamide
Copy link
Contributor Author

@potiuk @ephraimbuddy @uranusjr I have updated and made the pull requests. Please let me know if there's another way I can help or anything else I can do to get the PR merged. Thank you!

Follow the links I posted in my comment above. Locate it and change it too

I have done that @ephraimbuddy
Those links also have pull requests now.
You can check them out below.
#19056
#19055

@ephraimbuddy
Copy link
Contributor

@potiuk @ephraimbuddy @uranusjr I have updated and made the pull requests. Please let me know if there's another way I can help or anything else I can do to get the PR merged. Thank you!

Follow the links I posted in my comment above. Locate it and change it too

I have done that @ephraimbuddy Those links also have pull requests now. You can check them out below. #19056 #19055

Sorry, I think I got you confused.
I mean that they should be in this pull request.
Close the others and add the changes to this one

@potiuk
Copy link
Member

potiuk commented Oct 18, 2021

Sorry, I think I got you confused. I mean that they should be in this pull request. Close the others and add the changes to this one

Yeah. Agree those are better together in a single PR

@OyinOlamide
Copy link
Contributor Author

I think I have done that now @potiuk and @ephraimbuddy . Please take a look and let me know if there is any way I can make this better. Thank you! :)

@potiuk potiuk requested a review from ephraimbuddy October 19, 2021 23:59
INSTALL Outdated
sudo apt install build-essentials python3.6-dev python3.7-dev python-dev openssl \
sqlite sqlite-dev default-libmysqlclient-dev libmysqld-dev postgresq
sudo apt install openssl \
sqlite default-libmysqlclient-dev libmysqld-dev postgresql
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need build-essential and libsqlite3-dev here.

Apart from the contributors quick start doc. We need this here and also in breeze.
cc: @uranusjr

Copy link
Member

Choose a reason for hiding this comment

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

Yes we do. The quick start does not need them because they are installed by a previous command, but that's not the case here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Also add python3-dev as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ephraimbuddy I did not remove libsqlite3-dev
Do you want me to add it somewhere in the code?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ephraimbuddy Sorry, but this change is not clear. Both strips of code you mentioned in your last comment seem to be the same or am I missing something?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I meant libmysqld-dev instead of libmysqlclient-dev.

The change should be:

sudo apt install build-essential python3-dev libsqlite3-dev openssl \
                 sqlite default-libmysqlclient-dev libmysqlclient-dev postgresql

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ephraimbuddy Alright, I was not aware of this before. Should this particular change take effect in all three files or just .breeze and INSTALL?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just breeze and install

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've done that now @ephraimbuddy
Please check it out and let me know. Thank you for your patience and help.

@OyinOlamide
Copy link
Contributor Author

Hello @ephraimbuddy @uranusjr @potiuk I think I have carried out these changes now. Please take a look at my last commit and let me know.
Thank you so much for your time and patience. :)

@github-actions
Copy link

The PR is likely ready to be merged. No tests are needed as no important environment files, nor python files were modified by it. However, committers might decide that full test matrix is needed and add the 'full tests needed' label. Then you should rebase it to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Oct 20, 2021
@ephraimbuddy ephraimbuddy merged commit 326e2b1 into apache:main Oct 20, 2021
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 20, 2021

Awesome work, congrats on your first merged pull request!

@potiuk
Copy link
Member

potiuk commented Oct 20, 2021

🎉 🎉 🎉 🎉 🎉 🎉

@OyinOlamide
Copy link
Contributor Author

Thank you so much @potiuk , @ephraimbuddy , @uranusjr

Beyond excited about this and looking forward to doing more. 💯

@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) okay to merge It's ok to merge this PR as it does not require more tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants