Skip to content

Commit

Permalink
Merge pull request #241 from ppoply/par97462/pylerc_changes
Browse files Browse the repository at this point in the history
renaming python package to pylerc + doc updated
  • Loading branch information
tmaurer3 authored Sep 25, 2023
2 parents 667ea61 + 3f1d435 commit facdee4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions OtherLanguages/Python/lerc/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## `pylerc` is the LERC Python package

LERC is an open-source raster format which supports rapid encoding and decoding for any pixel type, with user-set maximum compression error per pixel.

# What's new in Lerc 4.0?

## Option 1, uses numpy masked array
Expand Down
11 changes: 5 additions & 6 deletions OtherLanguages/Python/setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import setuptools
import os

from glob import glob
from os.path import basename, exists, join, getmtime
from shutil import copyfile

dir_path = os.path.dirname(os.path.realpath(__file__))
readme_path = os.path.join(dir_path, "..", "..", "README.md")
readme_path = join("lerc", "README.md")

try:
with open(readme_path, "r") as fh:
Expand All @@ -28,16 +26,17 @@
copyfile(input_binary, output_binary)

setuptools.setup(
name="lerc",
name="pylerc",
version="4.0",
author="esri",
author_email="[email protected]",
description="Limited Error Raster Compression",
# long_description=long_description,
# long_description_content_type="text/markdown",
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache 2",
url="https://github.com/Esri/lerc",
packages=setuptools.find_packages(),
install_requires=["numpy"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Check out the Lerc decoders and encoders in `OtherLanguages/`. You may need to a

### Other download sites

- [Lerc for Python / Conda](https://anaconda.org/Esri/lerc)
- Lerc for Python (pylerc): [Conda](https://anaconda.org/Esri/pylerc) / [PyPI](https://pypi.org/project/pylerc/) (Note: The python package name is being renamed from `lerc` to `pylerc` in the next release- currently available under both names. However, the import name will remain the same (ie. `import lerc`).
- [Lerc for JavaScript / npm](https://www.npmjs.com/package/lerc)
- [Lerc conda-forge install](https://anaconda.org/conda-forge/lerc)

Expand Down
4 changes: 2 additions & 2 deletions build/conda/lerc/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package:
name: lerc
name: pylerc
version: 4.0

build:
Expand All @@ -25,7 +25,7 @@ test:

about:
description: |
LERC is an open-source raster format which supports rapid encoding and decoding
pylerc is the LERC Python package. LERC is an open-source raster format which supports rapid encoding and decoding
for any pixel type, with user-set maximum compression error per pixel.
home: https://esri.github.io/lerc/
dev_url: https://github.com/Esri/lerc
Expand Down

0 comments on commit facdee4

Please sign in to comment.