PyCharm setup

SSH Deployment

  1. In PyCharm, go to : Tools -> Deployment -> Configuration
  2. Under the Connection tab, select the type (SFTP), enter the host, username and authentication type.
  3. Under the Mappings tab, enter the local path and deployment (remote) patch.
  4. Click on OK to leave the Configuration box.
  5. Synchronize with Tools -> Deployment -> Sync with Deployed to…
  6. Select Tools -> Deployment -> Automatic Upload

Libraries

  1. Copy the content of /opt/zenoss/Products locally to c:reposzenoss.ProductsProducts
  2. Copy the content of /opt/zenoss/lib/python locally to c:reposzenoss.python
  3. Copy the content of /opt/zenoss/ZenPacks/ZenPacks.zenoss.PythonCollector-* locally to c:reposZenPacks.zenoss.PythonCollector
  4. In PyCharm, go to File -> Settings.
  5. Select Project -> Project Interpreter.
  6. Select Python 2.7.12, click on cogwheel and select More.
  7. Click on the last button “Show paths for the selected interpreter”
  8. Add the following content roots:
  1. c:reposzenoss.Products
  2. c:reposzenoss.python
  3. c:reposZenPacks.zenoss.PythonCollector

Git setup

  1. Select VCS -> Enable Version Control Integration
  2. Select Git and click on OK
  3. Create a .gitignore file
  4. Select root folder and select VCS -> Git -> Add
  5. Select VCS -> Git -> Commit Directory
  6. Enter a commit message and click on Commit.
  7. Select VCS -> Import into Version Control -> Share Project on GitHub
  8. Click on Continue

GitHub integration

  1. Click on VCS -> Import into Version Control -> Share Project on GitHub.
  2. Confirm the repository name and click on Share.