Skip to content

Contributor's guide and getting started section content#11

Open
rgrupesh wants to merge 3 commits intoPolyPhyHub:mainfrom
rgrupesh:sphinx-modified
Open

Contributor's guide and getting started section content#11
rgrupesh wants to merge 3 commits intoPolyPhyHub:mainfrom
rgrupesh:sphinx-modified

Conversation

@rgrupesh
Copy link
Collaborator

@rgrupesh rgrupesh commented Sep 6, 2022

Sub tasks:

  • Installation
  • FAQs
  • Troubleshooting
  • Release Guide
  • Code of Conduct
  • Licence
  • Contributing to the code base
  • Contributing to the documentation

Signed-off-by: Rupesh <rupeshgelal9@gmail.com>
Signed-off-by: Rupesh <rupeshgelal9@gmail.com>
Signed-off-by: Rupesh <rupeshgelal9@gmail.com>
Copy link
Contributor

@PatriceJada PatriceJada left a comment

Choose a reason for hiding this comment

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

Hey @rgrupesh , I went through your documentation and made some suggestions. Please go through them.


Clone your fork to your local machine::

git clone git@github.com:USERNAME/FORKED-PROJECT.git
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make this specific to the project, remove FORKED-PROJECT

git clone git@github.com:YourLogin/polyphy.git
git@github.com:YourLogin//PolyPhy-Website.git


Create a new branch named newfeature or its own simple informative name::

git branch newfeature
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to git branch -b newfeature


git branch -va

Checkout your master branch and merge upstream::
Copy link
Contributor

Choose a reason for hiding this comment

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

You've been usingmasterthrough the whole documentation but we are using main


1. Make sure all unit tests are successful.

2. Tag the current commit on the main branch with a release tag, e.g., ``v1.2.3``.
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use bumpversion package and it will automatically bump the version numbers. Currently, we are looking at 2 places where the version will change

[bumpversion:file:src/polyphy/_version.py]

[bumpversion:file:setup.py]

https://github.com/PolyPhyHub/PolyPhy/blob/main/.bumpversion.cfg

5. Run ``tox -e build`` and check that the files in ``dist`` have the correct version (no ``.dirty`` or ``git hash``) according to the git tag.
Also check the sizes of the distributions, if they are too big (e.g., ``> 500KB``), unwanted clutter may have been accidentally included.

6. Run ``tox -e publish -- --repository pypi`` and check that everything were uploaded to `PyPI <https://pypi.org/>`_ correctly.
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to first publish on testpypi and then pypi

Testing
########

Running tests locally
Copy link
Contributor

Choose a reason for hiding this comment

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

Type "help", "copyright", "credits" or "license" for more information.
>>> import polyphy
[Taichi] version 1.0.3, llvm 10.0.0, commit fae94a21, osx, python 3.8.9
>>> polyphy.lib.run_2D()
Copy link
Contributor

Choose a reason for hiding this comment

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

polyphy.run3d("run3d")or polyphy.run2d("run2d")

@PatriceJada
Copy link
Contributor

@rgrupesh @AsavariA @OskarElek It would be nice if we could have these tests pass so that we can merge this. Also could you point me to the URL for the website? Is there a way to run this locally?

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants