-
Notifications
You must be signed in to change notification settings - Fork 8
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
Contributor's guide and getting started section content #11
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Rupesh <[email protected]>
Signed-off-by: Rupesh <[email protected]>
Signed-off-by: Rupesh <[email protected]>
There was a problem hiding this 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 [email protected]:USERNAME/FORKED-PROJECT.git |
There was a problem hiding this comment.
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 [email protected]:YourLogin/polyphy.git
[email protected]:YourLogin//PolyPhy-Website.git
|
||
Create a new branch named newfeature or its own simple informative name:: | ||
|
||
git branch newfeature |
There was a problem hiding this comment.
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:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've been usingmaster
through 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``. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation can be copied from here https://polyphy.readthedocs.io/en/latest/developer.html#running-tests-locally
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() |
There was a problem hiding this comment.
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")
@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? |
Kudos, SonarCloud Quality Gate passed! |
Sub tasks: