pfc-geometry 0.2.6__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pfc_geometry-0.2.8/.github/workflows/publish_pypi.yml +55 -0
- {pfc_geometry-0.2.6/pfc_geometry.egg-info → pfc_geometry-0.2.8}/PKG-INFO +4 -2
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/transformation.py +2 -2
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8/pfc_geometry.egg-info}/PKG-INFO +4 -2
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/pyproject.toml +6 -2
- pfc_geometry-0.2.6/.github/workflows/publish_pypi.yml +0 -99
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/.gitignore +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/.vscode/settings.json +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/LICENSE +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/README.md +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/__init__.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/base.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/coordinate_frame.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/gps.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/mass.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/point.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/quaternion.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/testing.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/geometry/time.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/pfc_geometry.egg-info/SOURCES.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/pfc_geometry.egg-info/dependency_links.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/pfc_geometry.egg-info/requires.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/pfc_geometry.egg-info/top_level.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/requirements-dev.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/requirements.txt +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/setup.cfg +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/__init__.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/quat_body_diff_test.csv +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_base.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_coord.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_gps.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_mass.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_point.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_quaternion.py +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_remove_outliers.csv +0 -0
- {pfc_geometry-0.2.6 → pfc_geometry-0.2.8}/tests/test_transform.py +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
|
|
2
|
+
name: Publish to PyPI and TestPyPI
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- 'v[0-9]+.[0-9]+.[0-9]+'
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
name: Build distribution
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- name: Set up Python
|
|
17
|
+
uses: actions/setup-python@v4
|
|
18
|
+
with:
|
|
19
|
+
python-version: ^3.12
|
|
20
|
+
|
|
21
|
+
- name: Install dependencies
|
|
22
|
+
run: pip install -r requirements.txt
|
|
23
|
+
|
|
24
|
+
- name: Install pypa / build
|
|
25
|
+
run: python3 -m pip install build --user
|
|
26
|
+
|
|
27
|
+
- name: Build a binary wheel and a source tarball
|
|
28
|
+
run: python3 -m build
|
|
29
|
+
|
|
30
|
+
- name: Store the distribution packages
|
|
31
|
+
uses: actions/upload-artifact@v3
|
|
32
|
+
with:
|
|
33
|
+
name: python-package-distributions
|
|
34
|
+
path: dist/
|
|
35
|
+
|
|
36
|
+
publish-to-pypi:
|
|
37
|
+
name: Publish Python distribution to PyPI
|
|
38
|
+
needs: build
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
environment:
|
|
41
|
+
name: pypi
|
|
42
|
+
url: https://pypi.org/p/<package-name>
|
|
43
|
+
permissions:
|
|
44
|
+
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
45
|
+
|
|
46
|
+
steps:
|
|
47
|
+
- name: Download all the dists
|
|
48
|
+
uses: actions/download-artifact@v3
|
|
49
|
+
with:
|
|
50
|
+
name: python-package-distributions
|
|
51
|
+
path: dist/
|
|
52
|
+
- name: Publish distribution to PyPI
|
|
53
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
54
|
+
|
|
55
|
+
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.2.
|
|
2
|
+
Name: pfc-geometry
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: A package for handling 3D geometry with a nice interface
|
|
5
5
|
Author-email: Thomas David <thomasdavid0@gmail.com>
|
|
6
6
|
License: GNU GPL v3
|
|
7
|
+
Project-URL: Homepage, https://github.com/PyFlightCoach/geometry
|
|
8
|
+
Project-URL: Documentation, https://pfcdocumentation.readthedocs.io/pyflightcoach/geometry.html
|
|
7
9
|
Classifier: Programming Language :: Python :: 3
|
|
8
10
|
Requires-Python: >=3.12
|
|
9
11
|
Description-Content-Type: text/markdown
|
|
@@ -27,11 +27,11 @@ class Transformation(Base):
|
|
|
27
27
|
args = np.concatenate([args[0].data,Q0().data],axis=1)
|
|
28
28
|
elif isinstance(args[0], Quaternion):
|
|
29
29
|
args = np.concatenate([P0().data,args[0].data],axis=1)
|
|
30
|
-
|
|
30
|
+
elif len(args) == 2:
|
|
31
31
|
_q = args[0] if isinstance(args[0], Quaternion) else args[1]
|
|
32
32
|
_p = args[0] if isinstance(args[0], Point) else args[1]
|
|
33
33
|
assert isinstance(_q, Quaternion) and isinstance(_p, Point), f'expected a Point and a Quaternion, got a {_p.__class__.__name__} and a {_q.__class__.__name__}'
|
|
34
|
-
args = np.concatenate([_p.data, _q.data], axis=1)
|
|
34
|
+
args = [np.concatenate([_p.data, _q.data], axis=1)]
|
|
35
35
|
super().__init__(*args, **kwargs)
|
|
36
36
|
self.p = Point(self.data[:,:3])
|
|
37
37
|
self.q = Quaternion(self.data[:,3:])
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.2.
|
|
2
|
+
Name: pfc-geometry
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: A package for handling 3D geometry with a nice interface
|
|
5
5
|
Author-email: Thomas David <thomasdavid0@gmail.com>
|
|
6
6
|
License: GNU GPL v3
|
|
7
|
+
Project-URL: Homepage, https://github.com/PyFlightCoach/geometry
|
|
8
|
+
Project-URL: Documentation, https://pfcdocumentation.readthedocs.io/pyflightcoach/geometry.html
|
|
7
9
|
Classifier: Programming Language :: Python :: 3
|
|
8
10
|
Requires-Python: >=3.12
|
|
9
11
|
Description-Content-Type: text/markdown
|
|
@@ -6,7 +6,7 @@ requires = [
|
|
|
6
6
|
build-backend = "setuptools.build_meta"
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
|
-
name = "
|
|
9
|
+
name = "pfc-geometry"
|
|
10
10
|
authors = [{name = "Thomas David", email = "thomasdavid0@gmail.com"}]
|
|
11
11
|
description = "A package for handling 3D geometry with a nice interface"
|
|
12
12
|
readme = "README.md"
|
|
@@ -16,8 +16,12 @@ classifiers = ["Programming Language :: Python :: 3",]
|
|
|
16
16
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
17
17
|
|
|
18
18
|
|
|
19
|
+
[project.urls]
|
|
20
|
+
Homepage = "https://github.com/PyFlightCoach/geometry"
|
|
21
|
+
Documentation = "https://pfcdocumentation.readthedocs.io/pyflightcoach/geometry.html"
|
|
22
|
+
|
|
19
23
|
[tool.setuptools.dynamic]
|
|
20
24
|
dependencies = {file = ["requirements.txt"]}
|
|
21
25
|
optional-dependencies = {dev = { file = ["requirements-dev.txt"] }}
|
|
22
26
|
|
|
23
|
-
[tool.setuptools_scm]
|
|
27
|
+
[tool.setuptools_scm]
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
#https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
|
|
2
|
-
name: Publish to PyPI and TestPyPI
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
tags:
|
|
9
|
-
- '**'
|
|
10
|
-
jobs:
|
|
11
|
-
build:
|
|
12
|
-
name: Build distribution
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v4
|
|
17
|
-
|
|
18
|
-
- name: Set up Python
|
|
19
|
-
uses: actions/setup-python@v4
|
|
20
|
-
with:
|
|
21
|
-
python-version: 3.x
|
|
22
|
-
|
|
23
|
-
- name: Install dependencies
|
|
24
|
-
run: pip install -r requirements.txt
|
|
25
|
-
|
|
26
|
-
- name: Install pypa / build
|
|
27
|
-
run: python3 -m pip install build --user
|
|
28
|
-
|
|
29
|
-
- name: Build a binary wheel and a source tarball
|
|
30
|
-
run: python3 -m build
|
|
31
|
-
|
|
32
|
-
- name: Store the distribution packages
|
|
33
|
-
uses: actions/upload-artifact@v3
|
|
34
|
-
with:
|
|
35
|
-
name: python-package-distributions
|
|
36
|
-
path: dist/
|
|
37
|
-
|
|
38
|
-
publish-to-pypi:
|
|
39
|
-
name: Publish Python distribution to PyPI
|
|
40
|
-
needs: build
|
|
41
|
-
runs-on: ubuntu-latest
|
|
42
|
-
environment:
|
|
43
|
-
name: pypi
|
|
44
|
-
url: https://pypi.org/p/<package-name>
|
|
45
|
-
permissions:
|
|
46
|
-
id-token: write # IMPORTANT: mandatory for trusted publishing
|
|
47
|
-
|
|
48
|
-
steps:
|
|
49
|
-
- name: Download all the dists
|
|
50
|
-
uses: actions/download-artifact@v3
|
|
51
|
-
with:
|
|
52
|
-
name: python-package-distributions
|
|
53
|
-
path: dist/
|
|
54
|
-
- name: Publish distribution to PyPI
|
|
55
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
56
|
-
|
|
57
|
-
github-release:
|
|
58
|
-
name: >-
|
|
59
|
-
Sign the Python distribution with Sigstore
|
|
60
|
-
and upload them to GitHub Release
|
|
61
|
-
needs:
|
|
62
|
-
- publish-to-pypi
|
|
63
|
-
runs-on: ubuntu-latest
|
|
64
|
-
|
|
65
|
-
permissions:
|
|
66
|
-
contents: write # IMPORTANT: mandatory for making GitHub Releases
|
|
67
|
-
id-token: write # IMPORTANT: mandatory for sigstore
|
|
68
|
-
|
|
69
|
-
steps:
|
|
70
|
-
- name: Download all the dists
|
|
71
|
-
uses: actions/download-artifact@v3
|
|
72
|
-
with:
|
|
73
|
-
name: python-package-distributions
|
|
74
|
-
path: dist/
|
|
75
|
-
- name: Sign the dists with Sigstore
|
|
76
|
-
uses: sigstore/gh-action-sigstore-python@v1.2.3
|
|
77
|
-
with:
|
|
78
|
-
inputs: >-
|
|
79
|
-
./dist/*.tar.gz
|
|
80
|
-
./dist/*.whl
|
|
81
|
-
- name: Create GitHub Release
|
|
82
|
-
env:
|
|
83
|
-
GITHUB_TOKEN: ${{ github.token }}
|
|
84
|
-
run: >-
|
|
85
|
-
gh release create
|
|
86
|
-
'${{ github.ref_name }}'
|
|
87
|
-
--repo '${{ github.repository }}'
|
|
88
|
-
--notes ""
|
|
89
|
-
- name: Upload artifact signatures to GitHub Release
|
|
90
|
-
env:
|
|
91
|
-
GITHUB_TOKEN: ${{ github.token }}
|
|
92
|
-
# Upload to GitHub Release using the `gh` CLI.
|
|
93
|
-
# `dist/` contains the built packages, and the
|
|
94
|
-
# sigstore-produced signatures and certificates.
|
|
95
|
-
run: >-
|
|
96
|
-
gh release upload
|
|
97
|
-
'${{ github.ref_name }}' dist/**
|
|
98
|
-
--repo '${{ github.repository }}'
|
|
99
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|