-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea!
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 Report
@@ 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
... and 19 files with indirect coverage changes 📢 Have feedback on the report? Share it here. |
No description provided.