-
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.
Refactor python part to publish on pypi + automate pypi publication
- Loading branch information
1 parent
f16e2ab
commit 961ae62
Showing
12 changed files
with
63 additions
and
14 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 |
---|---|---|
|
@@ -6,13 +6,48 @@ on: | |
- "v*.*.*" | ||
|
||
jobs: | ||
build: | ||
release-github: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Release | ||
- name: Release on github | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
make_latest: true | ||
make_latest: true | ||
|
||
deploy-pypi: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/pdal-ign-macro/ | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
# See https://github.com/marketplace/actions/setup-micromamba | ||
- name: setup-micromamba | ||
uses: mamba-org/[email protected] | ||
with: | ||
environment-file: environment.yml | ||
environment-name: pdal_ign_plugin # activate the environment | ||
cache-environment: true | ||
cache-downloads: true | ||
generate-run-shell: true | ||
|
||
- name: Build pip package | ||
shell: micromamba-shell {0} | ||
run: | | ||
rm -rf tmp | ||
rm -rf pdal_ign_macro.egg-info | ||
rm -rf dist | ||
python -m build | ||
- name: pypi-publish | ||
uses: pypa/[email protected] |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ xcode | |
.vscode | ||
build | ||
install | ||
dist | ||
|
||
# all pycache directories | ||
__pycache__ | ||
|
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
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
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
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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 |
---|---|---|
@@ -1,13 +1,19 @@ | ||
[project] | ||
name = "pdal_ign_macro" | ||
dynamic = ["version"] | ||
readme = "README.md" | ||
description = "Macros and pipelines for Pdal based on the https://github.com/IGNF/pdal-ign-plugin plugin" | ||
dependencies = [] | ||
authors = [ | ||
{ name = "Antoine Lavenant", email = "[email protected]" }, | ||
{ name = "Léa Vauchier", email = "[email protected]" }, | ||
] | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "macro.version.__version__" } | ||
version = { attr = "pdal_ign_macro.version.__version__" } | ||
|
||
[tool.setuptools] | ||
packages = ["macro"] | ||
packages = ["pdal_ign_macro"] | ||
|
||
[tool.black] | ||
line-length = 99 | ||
|
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