Skip to content
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

Separate Python packages #50

Merged
merged 19 commits into from
Sep 7, 2023
Merged

Conversation

paleolimbot
Copy link
Contributor

No description provided.

@@ -18,7 +18,7 @@ release of the geoarrow specification.
## Get started in Python

```python
import geoarrow.pyarrow as ga
import geoarrow.c.pyarrow as ga
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This made me wonder... can you do nested namespace packages? Like I wonder if I could distribute

geoarrow.rs.core
geoarrow.rs.proj
geoarrow.rs.geos
geoarrow.rs.gdal

as four different pypi packages

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a follow up, yes it works!

> tree
.
├── README.md
├── geoarrow
│   └── rs
│       └── core
│           ├── __init__.py
│           └── __pycache__
│               └── __init__.cpython-311.pyc
├── poetry.lock
└── pyproject.toml
> poetry run python
Python 3.11.4 (main, Aug 10 2023, 18:50:38) [Clang 14.0.3 (clang-1403.0.22.14.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import geoarrow
>>> import geoarrow.rs
>>> import geoarrow.rs.core
hello from geoarrow.rs.core

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python is truly the wild west of packaging 🤯

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #50 (d39f837) into main (73a5d09) will decrease coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #50      +/-   ##
==========================================
- Coverage   93.56%   93.45%   -0.12%     
==========================================
  Files          30       11      -19     
  Lines        5003     1527    -3476     
==========================================
- Hits         4681     1427    -3254     
+ Misses        322      100     -222     
Files Changed Coverage Δ
python/geoarrow-c/src/geoarrow/c/__init__.py 100.00% <ø> (ø)
python/geoarrow-c/src/geoarrow/c/_lib.pyx 86.63% <ø> (ø)
python/geoarrow-c/src/geoarrow/c/lib.py 100.00% <ø> (ø)
python/geoarrow-c/src/geoarrow/c/pandas.py 93.46% <ø> (ø)
...thon/geoarrow-c/src/geoarrow/c/pyarrow/__init__.py 100.00% <ø> (ø)
python/geoarrow-c/src/geoarrow/c/pyarrow/_array.py 90.37% <ø> (ø)
...thon/geoarrow-c/src/geoarrow/c/pyarrow/_compute.py 98.04% <ø> (ø)
...thon/geoarrow-c/src/geoarrow/c/pyarrow/_dataset.py 99.52% <ø> (ø)
...ython/geoarrow-c/src/geoarrow/c/pyarrow/_kernel.py 94.25% <ø> (ø)
...ython/geoarrow-c/src/geoarrow/c/pyarrow/_scalar.py 63.88% <ø> (ø)
... and 1 more

... and 19 files with indirect coverage changes

📢 Have feedback on the report? Share it here.

@paleolimbot paleolimbot marked this pull request as ready for review September 7, 2023 19:51
@paleolimbot paleolimbot merged commit a50551d into geoarrow:main Sep 7, 2023
3 of 4 checks passed
@paleolimbot paleolimbot deleted the python-namespace branch September 7, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants