Skip to content

Commit

Permalink
fix(publishing): add sub-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Mar 28, 2023
1 parent 7df4a28 commit 6737722
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
rm -rf dist
python -m build
- name: Quick test of the built dist
run: |
pip install "src/python/dist/$(ls src/python/dist/ | head -1)"
python -c "import pose_format"
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
Empty file added src/__init__.py
Empty file.
Empty file added src/python/__init__.py
Empty file.
16 changes: 14 additions & 2 deletions src/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "pose_format"
description = "Library for viewing, augmenting, and handling .pose files"
version = "0.2.0"
version = "0.2.1"
keywords = ["Pose Files", "Pose Interpolation", "Pose Augmentation"]
authors = [
{ name = "Amit Moryossef", email = "[email protected]" }
Expand All @@ -26,16 +26,28 @@ dev = [

[tool.setuptools]
packages = [
"pose_format"
"pose_format",
"pose_format.utils",
"pose_format.testing",
"pose_format.numpy",
"pose_format.numpy.representation",
"pose_format.torch",
"pose_format.torch.masked",
"pose_format.torch.representation",
"pose_format.tensorflow",
"pose_format.tensorflow.masked",
"pose_format.tensorflow.representation"
]


[tool.pytest.ini_options]
addopts = "-v"
filterwarnings = [
"ignore::DeprecationWarning:flatbuffers"
]
testpaths = [
"pose_format",
"tests"
]

[tool.yapf]
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 6737722

Please sign in to comment.