From 6bd8273cbc32d842018895ac4f20a60cf78d1960 Mon Sep 17 00:00:00 2001 From: Shubhrant Singh Yadav Date: Wed, 10 Jan 2024 18:08:44 +0530 Subject: [PATCH 1/4] Create main.yml for Github actions --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b4ea66c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Deploy to PyPI + +on: + release: + types: + - created + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + + - name: Build and publish to PyPI + run: | + python setup.py sdist bdist_wheel + twine upload dist/* + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} From 9dd99ca5a61ad4f02c1bae09568791f4788cea1e Mon Sep 17 00:00:00 2001 From: Shubhrant Singh Yadav Date: Wed, 10 Jan 2024 18:39:27 +0530 Subject: [PATCH 2/4] Create PR_TEMPLATE.md --- .github/PR_TEMPLATE.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/PR_TEMPLATE.md diff --git a/.github/PR_TEMPLATE.md b/.github/PR_TEMPLATE.md new file mode 100644 index 0000000..bfa27cb --- /dev/null +++ b/.github/PR_TEMPLATE.md @@ -0,0 +1,32 @@ +## Issue that this pull request solves + +Closes: # (issue number) + +## Proposed changes + +### Brief description of what is fixed or changed + +## Types of changes + +_Put an `x` in the boxes that apply_ + +- [ ] Bugfix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Other (please describe): + +## Checklist + +_Put an `x` in the boxes that apply_ + +- [ ] My code follows the [style guidelines of this project](https://docs.google.com/document/d/1GI2Hile8UbGZ82gFe1y4wAVPcNPXip1cmXTzog1S41U/edit) +- [ ] I have performed a self-review of my own code +- [ ] I have created new branch for this pull request +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] My changes does not break the current system and it passes all the current test cases. + +## Other information + +Any other information that is important to this pull request From 7321c2fd39d87fcec5433a768a770388f3e5a0cc Mon Sep 17 00:00:00 2001 From: Shubhrant Singh Yadav Date: Wed, 10 Jan 2024 18:43:51 +0530 Subject: [PATCH 3/4] Create pull_request_template.md --- .github/pull_request_template.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..bfa27cb --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,32 @@ +## Issue that this pull request solves + +Closes: # (issue number) + +## Proposed changes + +### Brief description of what is fixed or changed + +## Types of changes + +_Put an `x` in the boxes that apply_ + +- [ ] Bugfix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Other (please describe): + +## Checklist + +_Put an `x` in the boxes that apply_ + +- [ ] My code follows the [style guidelines of this project](https://docs.google.com/document/d/1GI2Hile8UbGZ82gFe1y4wAVPcNPXip1cmXTzog1S41U/edit) +- [ ] I have performed a self-review of my own code +- [ ] I have created new branch for this pull request +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] My changes does not break the current system and it passes all the current test cases. + +## Other information + +Any other information that is important to this pull request From f55e2555561ba219e74107a3f24527bc3babe3d0 Mon Sep 17 00:00:00 2001 From: Shubhrant Singh Yadav Date: Wed, 10 Jan 2024 18:45:05 +0530 Subject: [PATCH 4/4] Delete .github/PR_TEMPLATE.md Due to wrong file name this file is replaced with pull_request_template.md file --- .github/PR_TEMPLATE.md | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/PR_TEMPLATE.md diff --git a/.github/PR_TEMPLATE.md b/.github/PR_TEMPLATE.md deleted file mode 100644 index bfa27cb..0000000 --- a/.github/PR_TEMPLATE.md +++ /dev/null @@ -1,32 +0,0 @@ -## Issue that this pull request solves - -Closes: # (issue number) - -## Proposed changes - -### Brief description of what is fixed or changed - -## Types of changes - -_Put an `x` in the boxes that apply_ - -- [ ] Bugfix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) -- [ ] Other (please describe): - -## Checklist - -_Put an `x` in the boxes that apply_ - -- [ ] My code follows the [style guidelines of this project](https://docs.google.com/document/d/1GI2Hile8UbGZ82gFe1y4wAVPcNPXip1cmXTzog1S41U/edit) -- [ ] I have performed a self-review of my own code -- [ ] I have created new branch for this pull request -- [ ] I have commented my code, particularly in hard-to-understand areas -- [ ] I have made corresponding changes to the documentation -- [ ] My changes generate no new warnings -- [ ] My changes does not break the current system and it passes all the current test cases. - -## Other information - -Any other information that is important to this pull request