forked from buckhx/QuadKey
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: increment version
- Loading branch information
Showing
5 changed files
with
92 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,48 @@ | ||
# Installation | ||
## Installation | ||
### Requirements | ||
This library requires **Python 3.6** or higher. To compile it from source, Cython is required in addition. | ||
|
||
## Requirements | ||
This library requires **Python 3.6** or higher. To compile it by yourself, Cython is required in addition. | ||
|
||
## Using Pip | ||
* `pip3 install pyquadkey2` | ||
### Using Pip | ||
```bash | ||
$ pip install pyquadkey2 | ||
``` | ||
|
||
Pip installation is only tested for Linux and Mac, yet. If you encounter problems with the installation on Windows, please report them as a new issue. | ||
|
||
## From archive | ||
* Download the latest [release](https://github.com/n1try/pyquadkey2/releases) as archive (`.tar.gz`) or wheel (`.whl`), e.g. `0.1.1.tar.gz` | ||
* Install it with pip: `pip3 install 0.1.1.tar.gz` | ||
### From archive | ||
```bash | ||
$ wget https://github.com/muety/pyquadkey2/releases/download/0.2.1/pyquadkey2-0.2.1.tar.gz | ||
$ pip install pyquadkey2-0.2.1.tar.gz | ||
``` | ||
|
||
### From source | ||
#### Prerequisites (`Linux`) | ||
* `gcc` | ||
* Fedora: `dnf install @development-tools` | ||
* Ubuntu / Debian: `apt install build-essential` | ||
* `python3-devel` | ||
* Fedora: `dnf install python3-devel` | ||
* Ubuntu / Debian: `apt install python3-dev` | ||
* Others: See [here](https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory/21530768#21530768) | ||
|
||
#### Prerequisites (`Windows`) | ||
* Visual C++ Build Tools 2015 (with Windows 10 SDK) (see [here](https://devblogs.microsoft.com/python/unable-to-find-vcvarsall-bat/#i-need-a-package-that-has-no-wheel-what-can-i-do)) | ||
|
||
#### Build | ||
```bash | ||
# Check out repo | ||
$ git clone https://github.com/muety/pyquadkey2 | ||
|
||
# Create and active virtual environment (optional) | ||
$ python -m venv ./venv | ||
$ source venv/bin/activate | ||
|
||
# Install depencencies | ||
$ pip install -r requirements.txt | ||
|
||
## From source | ||
* Clone repository: `git clone https://github.com/n1try/pyquadkey2` | ||
* Make sure Cython is installed: `pip3 install cython` | ||
* Compile Cython modules: `cd pyquadkey2/quadkey/tilesystem && python3 setup.py build_ext --inplace && ../../` | ||
* Install the library with Pip: `pip3 install .` | ||
# Compile | ||
$ cd src/pyquadkey2/quadkey/tilesystem && python setup.py build_ext --inplace && cd ../../../.. | ||
|
||
## Troubleshooting | ||
* `ImportError: cannot import name 'tilesystem'`: Simply try `pip3 install --upgrade pyquadkey2` once again. Second time usually works, as required build extensions are installed then. This is a known issue and will be fixed in the future. | ||
# Install as module | ||
$ pip install . | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,13 @@ | |
|
||
setup( | ||
name='pyquadkey2', | ||
version='0.2.0', | ||
version='0.2.1', | ||
description='Python implementation of geographical tiling using QuadKeys as proposed by Microsoft', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
author='Ferdinand Mütsch', | ||
author_email='[email protected]', | ||
url='https://github.com/n1try/pyquadkey2', | ||
url='https://github.com/muety/pyquadkey2', | ||
packages=find_packages('src'), | ||
package_dir={'': 'src'}, | ||
classifiers=[ | ||
|
@@ -34,8 +34,8 @@ | |
'Typing :: Typed' | ||
], | ||
project_urls={ | ||
'Bug Tracker': 'https://github.com/n1try/pyquadkey2/issues', | ||
'Source Code': 'https://github.com/n1try/pyquadkey2', | ||
'Bug Tracker': 'https://github.com/muety/pyquadkey2/issues', | ||
'Source Code': 'https://github.com/muety/pyquadkey2', | ||
'Documentation': 'https://docs.muetsch.io/pyquadkey2/' | ||
}, | ||
keywords='tiling quadkey quadtile geospatial geohash', | ||
|