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

How to set up the dev environment to contribute #469

Closed
ghost opened this issue Nov 29, 2018 · 7 comments
Closed

How to set up the dev environment to contribute #469

ghost opened this issue Nov 29, 2018 · 7 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2018

Hello,

As an external dev, I would like a complete guide to set up my pycharm environment to contribute to this project:

  • Which packages I have to install on my OS.
  • Which python packages I have to install on my python environment.
  • etc.

The aim is to have a functional PyCharm env from a fresh install of a RedHat-based distro like CentOS or Fedora.

Thank you.

@AliceAlbano
Copy link
Contributor

You have a Hammr wiki here with a section contribute : https://github.com/usharesoft/hammr/wiki
It can be a start, and it can also be completed if needed !

@ghost
Copy link
Author

ghost commented Nov 29, 2018

From a fresh installed OS, launch pycharm and open the hammr projet or git clone with pycharm.
Wait a moment (Updating Python Interpreter and Updating Indices) and open any file.

Packages requirements:

- uforge_python_sdk>=3.8.8
- httplib2==0.9
- texttable==0.8.1
- progressbar==2.3
- argparse
- paramiko==1.12
- pyparsing==2.0.2
- pyyaml==3.12
- hurry.filesize==0.9
- termcolor==1.1.0
- junit-xml==1.3
- xmlrunner==1.7.7
- ussclicore==1.0.11
- mock

@ghost
Copy link
Author

ghost commented Nov 29, 2018

Ok it seems it's working if you follow this steps:

  1. yum install -y git gcc python-devel libxml2-devel libxslt-devel
  2. curl https://bootstrap.pypa.io/get-pip.py -O
  3. python get-pip.py pip==8.1.1
  4. Launch pycharm
  5. Open the project hammr
  6. Wait a moment (Updating Python Interpreter and Updating Indices) and open any python file from the project.
  7. When you have the message "Package requirements...", click on "Install requirements"
  8. Enjoy!

@ghost
Copy link
Author

ghost commented Nov 29, 2018

I will PR something

@ghost
Copy link
Author

ghost commented Nov 30, 2018

Hello, on the wiki (https://github.com/usharesoft/hammr/wiki/Contribute), below this text:

If you want to contribute to Hammr, you can review code for opened pull requests, fix logged issues or propose new features in a dedicated pull request. If you encounter issues or bugs using Hammr, you can log them.

You can also open issues if you have an idea for improvement, or help improving the code coverage, by writing unit tests or integration tests.

Can you add something like this:

On a RedHat-based distro (Fedora, CentOS, etc.), you will need to install these packages:
* python2.7
* gcc
* python-devel
* libxml2-devel
* libxslt-devel

And PyCharm will need pip==8.1.1 to install the required python packages.

It's enough to have a working environment.
Thank you !

@locobastos
Copy link

The next step is to explain how to PR.

@ghost
Copy link
Author

ghost commented Dec 3, 2018

Regarding the dependencies, I added them directly in the Wiki.
Regarding the pull request, it a GitHub mechanism, I had to learn how it works.

@ghost ghost closed this as completed Dec 3, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants