@@ -13,78 +13,41 @@ the widely deployed open-source geometry library
1313[ s2geography] ( https://github.com/paleolimbot/s2geography ) which provides a
1414[ GEOS] ( https://libgeos.org ) compatibility layer on top of s2geometry.
1515
16- This library is at an early stage of development.
17-
18- ## Requirements
19-
20- - Python
21- - Numpy
22- - [ s2geography] ( https://github.com/paleolimbot/s2geography ) v0.2.0 or higher
23- - [ s2geometry] ( https://github.com/google/s2geometry ) v0.11.1 or higher
24-
25- Additional requirements when building spherely from source:
26-
27- - C++ compiler supporting C++17 standard
28- - CMake
29- - [ scikit-build-core] ( https://github.com/scikit-build/scikit-build-core )
30-
31- (Note: C++11 or C++14 should work too but we have no plan to maintain
32- compatibility with those older standards)
16+ ** This library is at an early stage of development.**
3317
3418## Installation
3519
36- There is no pre-compiled package available at the moment. See the section below
37- for instructions on how to setup a development environment and build / install
38- spherely from source .
20+ The easiest way to install Spherely is via its binary packages available for
21+ Linux, MacOS, and Windows platforms on [ conda-forge ] ( https://conda-forge.org/ )
22+ and [ PyPI ] ( https://pypi.org/project/spherely/ ) .
3923
40- ## Setting up a development environment using conda
24+ Install the binary wheel using [ pip ] ( https://pip.pypa.io/ ) :
4125
42- After cloning this repo, create a conda environment using the ` ci/environment.yml `
43- file with the required dependencies:
44-
45- ```
46- $ conda env create -f spherely/ci/environment.yml
47- $ conda activate spherely-dev
26+ ``` sh
27+ $ pip install spherely
4828```
4929
50- Build and install ` s2spherely ` :
30+ Install the conda-forge package using
31+ [ conda] ( https://docs.conda.io/projects/conda/en/stable/ ) :
5132
52- ```
53- $ cd spherely
54- $ python -m pip install . -v --no-build-isolation
33+ ``` sh
34+ $ conda install spherely --channel conda-forge
5535```
5636
57- Note that you can specify a build directory in order to avoid rebuilding the
58- whole library from scratch each time after editing the code (requires
59- scikit-build-core v0.2.0+):
37+ To compile and install Spherely from source, see detailed instructions in the
38+ [ documentation] ( https://spherely.readthedocs.io/en/latest/install.html ) .
6039
61- ```
62- $ python -m pip install . -v --no-build-isolation --config-settings build-dir=build/skbuild
63- ```
64-
65- Run the tests:
66-
67- ```
68- $ pytest . -v
69- ```
70-
71- Spherely also uses [ pre-commit] ( https://pre-commit.com/ ) for code
72- auto-formatting and linting at every commit. After installing it, you can enable
73- pre-commit hooks with the following command:
40+ ## Documentation
7441
75- ```
76- $ pre-commit install
77- ```
42+ https://spherely.readthedocs.io
7843
79- (Note: you can skip the pre-commit checks with ` git commit --no-verify ` )
44+ ## License
8045
81- ## Using the latest s2geography version
46+ Spherely is licensed under BSD 3-Clause license. See the LICENSE file for more
47+ details.
8248
83- If you want to compile spherely against the latest version of s2geography, use:
49+ ## Acknowledgment
8450
85- ```
86- $ git clone https://github.com/paleolimbot/s2geography
87- $ cmake -S s2geography -B s2geography/build -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
88- $ cmake --build s2geography/build
89- $ cmake --install s2geography/build
90- ```
51+ The development of this project has been supported by two
52+ [ NumFOCUS] ( https://numfocus.org ) Small Development Grants (GeoPandas 2022 round
53+ 1 and GeoPandas 2023 round 3).
0 commit comments