-
Notifications
You must be signed in to change notification settings - Fork 60
update to pyproject #256
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
Merged
Merged
update to pyproject #256
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b21f13d
update to pyproject
knaaptime 7b9e98b
scm init
knaaptime 9486df8
update release workflow
knaaptime d65f4d3
Merge remote-tracking branch 'upstream/main' into pr/knaaptime/256
martinfleis 1f57a0c
rm _version reference
knaaptime cbab9ee
rm manifest
knaaptime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,8 +9,6 @@ omit = | |
| docs/conf.py | ||
| setup.py | ||
| */tests/* | ||
| versioneer.py | ||
| *_version.py | ||
|
|
||
| [html] | ||
| directory = coverage_html_report | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| changelog: | ||
| exclude: | ||
| labels: | ||
| - ignore-for-release | ||
| authors: | ||
| - dependabot | ||
| categories: | ||
| - title: Bug Fixes | ||
| labels: | ||
| - bug | ||
| - title: Enhancements | ||
| labels: | ||
| - enhancement | ||
| - title: Other Changes | ||
| labels: | ||
| - "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,66 +1,45 @@ | ||
| name: Release Package | ||
|
|
||
| # Release package on GitHub and publish to PyPI | ||
|
|
||
| # Important: In order to trigger this workflow for the organization | ||
| # repo (organzation-name/repo-name vs. user-name/repo-name), a tagged | ||
| # commit must be made to *organzation-name/repo-name*. If the tagged | ||
| # commit is made to *user-name/repo-name*, a release will be published | ||
| # under the user's name, not the organzation. | ||
|
|
||
| #-------------------------------------------------- | ||
| name: Release & Publish | ||
|
|
||
| on: | ||
| push: | ||
| # Sequence of patterns matched against refs/tags | ||
| tags: | ||
| - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Create release & publish to PyPI | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.x" | ||
|
|
||
| - name: Install Dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install setuptools wheel twine jupyter urllib3 pandas pyyaml | ||
| python setup.py sdist bdist_wheel | ||
|
|
||
| - name: run Changelog | ||
| run: | | ||
| jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=-1 --ExecutePreprocessor.kernel_name=python3 tools/gitcount.ipynb | ||
|
|
||
| - name: cat Changelog | ||
| uses: pCYSl5EDgo/cat@master | ||
| id: changetxt | ||
| with: | ||
| path: ./tools/changelog.md | ||
| env: | ||
| TEXT: ${{ steps.changetxt.outputs.text }} | ||
|
|
||
| - name: Get the tag name | ||
| run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | ||
|
|
||
| - name: Release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| body: ${{ steps.changetxt.outputs.text }} | ||
| body_path: ${{ steps.changetxt.outputs.path }} | ||
| name: Release ${{ env.TAG }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Publish distribution 📦 to PyPI | ||
| uses: pypa/gh-action-pypi-publish@master | ||
| with: | ||
| user: __token__ | ||
| password: ${{ secrets.PYPI_PASSWORD }} | ||
| on: | ||
| push: | ||
| # Sequence of patterns matched against refs/tags | ||
| tags: | ||
| - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Manual Release | ||
| default: test | ||
| required: false | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install setuptools wheel twine jupyter urllib3 pandas pyyaml | ||
| python setup.py sdist bdist_wheel | ||
|
|
||
| - name: Create Release Notes | ||
| uses: actions/github-script@v6 | ||
| with: | ||
| github-token: ${{secrets.GITHUB_TOKEN}} | ||
| script: | | ||
| await github.request(`POST /repos/${{ github.repository }}/releases`, { | ||
| tag_name: "${{ github.ref }}", | ||
| generate_release_notes: true | ||
| }); | ||
|
|
||
| - name: Publish distribution 📦 to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| user: __token__ | ||
| password: ${{ secrets.pypi_password }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| *.pyc | ||
| .ipynb_checkpoints/ | ||
| .DS_Store | ||
| .vscode/ | ||
|
|
||
| # Packages | ||
| *.egg | ||
|
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.