-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: base setup of library packaging and dev tools
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,27 @@ | ||
name: Bump version | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
bump-version: | ||
if: "!startsWith(github.event.head_commit.message, 'bump:')" | ||
runs-on: ubuntu-latest | ||
name: "Bump version and create changelog with commitizen" | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ssh-key: "${{ secrets.GHA_KEY }}" | ||
- name: Create bump and changelog | ||
uses: commitizen-tools/commitizen-action@master | ||
with: | ||
push: false | ||
- name: Push using ssh | ||
run: | | ||
git push origin main --tags | ||
- name: Print Version | ||
run: echo "Bumped to version ${{ steps.cz.outputs.version }}" |
This file contains 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,20 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v1.25.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.10.0 | ||
hooks: | ||
- id: commitizen | ||
- id: commitizen-branch | ||
stages: | ||
- push | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.5 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/psf/black | ||
rev: 23.9.1 | ||
hooks: | ||
- id: black |
This file contains 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,22 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "megham" | ||
version = "0.0.1" | ||
authors = [{name="Saianeesh Keshav Haridas"}] | ||
description = "Tools for working with point clouds" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
keywords = ["point cloud", "affine", "rotations", "mds", "multidimensional scaling", "point set registration", "cpd", "coherent point drift", "mpd", "guassian mixture model"] | ||
license = {text = "GPLv3"} | ||
classifiers = [ "Programming Language :: Python" ] | ||
dependencies = ["numpy"] | ||
|
||
[tool.commitizen] | ||
name = "cz_conventional_commits" | ||
tag_format = "$version" | ||
version_scheme = "semver" | ||
version_provider = "pep621" | ||
update_changelog_on_bump = true |