-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and version (#133)
* Changed workflows to only use conda-forge and updated readme+environment accordingly. * Set minimum python version. Removed unused pdal dependency. Ran black for formatting. * Added dynamic docs version. Added manual pypi publish trigger. Bumped version. * Added dev-environment.yml * Updated workflow to use new dev-environment.yml * Changed to test step names that makes more sense. * Added missing requirement and fixed test that fails randomly. * Simplified doc building script to not use subprocess. Will work better on Windows. * Attempt to make readthedocs happy nr 1. * Attempt to make readthedocs happy nr 2. * Attempt to make readthedocs happy nr 3.
- Loading branch information
1 parent
84d56ae
commit f07fc05
Showing
10 changed files
with
148 additions
and
88 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
fail_on_warning: false | ||
|
||
# Optionally build your docs in additional formats such as PDF and ePub | ||
formats: [] | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: dev-requirements.txt | ||
- method: pip | ||
path: . |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: xdem-dev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python>=3.7 | ||
- proj>=7.2 | ||
- geopandas | ||
- numba | ||
- matplotlib | ||
- opencv | ||
- pyproj | ||
- rasterio | ||
- scipy | ||
- tqdm | ||
- scikit-image | ||
- proj-data | ||
- scikit-gstat | ||
- pytransform3d | ||
- geoutils | ||
|
||
# Development-specific | ||
- pytest | ||
- pytest-xdist | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- numpydoc | ||
- sphinxcontrib-programoutput | ||
- flake8 | ||
- sphinx-autodoc-typehints |
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 |
---|---|---|
|
@@ -5,31 +5,44 @@ | |
from setuptools import setup | ||
from setuptools.command.install import install | ||
|
||
FULLVERSION = '0.0.2-2' | ||
FULLVERSION = "0.0.3" | ||
VERSION = FULLVERSION | ||
|
||
with open(os.path.join(os.path.dirname(__file__), "README.md")) as infile: | ||
LONG_DESCRIPTION = infile.read() | ||
|
||
setup(name='xdem', | ||
version=FULLVERSION, | ||
description='Set of tools to manipulate Digital Elevation Models (DEMs) ', | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
url='https://github.com/GlacioHack/xdem', | ||
author='The GlacioHack Team', | ||
author_email="[email protected]", # This is needed for PyPi unfortunately. | ||
license='BSD-3', | ||
packages=['xdem'], | ||
install_requires=[ | ||
'numpy', 'scipy', 'rasterio', 'geopandas', | ||
'pyproj', 'tqdm', 'scikit-gstat', 'scikit-image', | ||
"geoutils @ https://github.com/GlacioHack/geoutils/tarball/main" | ||
], | ||
extras_require={'rioxarray': ['rioxarray'], 'richdem': ['richdem'], 'pdal': [ | ||
'pdal'], 'opencv': ['opencv'], "pytransform3d": ["pytransform3d"]}, | ||
scripts=[], | ||
zip_safe=False) | ||
setup( | ||
name="xdem", | ||
version=FULLVERSION, | ||
description="Set of tools to manipulate Digital Elevation Models (DEMs) ", | ||
long_description=LONG_DESCRIPTION, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/GlacioHack/xdem", | ||
author="The GlacioHack Team", | ||
author_email="[email protected]", # This is needed for PyPi unfortunately. | ||
license="BSD-3", | ||
packages=["xdem"], | ||
install_requires=[ | ||
"numpy", | ||
"scipy", | ||
"rasterio", | ||
"geopandas", | ||
"pyproj", | ||
"tqdm", | ||
"scikit-gstat", | ||
"scikit-image", | ||
"geoutils @ https://github.com/GlacioHack/geoutils/tarball/main", | ||
], | ||
extras_require={ | ||
"rioxarray": ["rioxarray"], | ||
"richdem": ["richdem"], | ||
"opencv": ["opencv"], | ||
"pytransform3d": ["pytransform3d"], | ||
}, | ||
python_requires=">=3.7", | ||
scripts=[], | ||
zip_safe=False, | ||
) | ||
|
||
write_version = True | ||
|
||
|
@@ -40,10 +53,9 @@ def write_version_py(filename=None): | |
short_version = '%s' | ||
""" | ||
if not filename: | ||
filename = os.path.join(os.path.dirname(__file__), 'xdem', | ||
'version.py') | ||
filename = os.path.join(os.path.dirname(__file__), "xdem", "version.py") | ||
|
||
a = open(filename, 'w') | ||
a = open(filename, "w") | ||
try: | ||
a.write(cnt % (FULLVERSION, VERSION)) | ||
finally: | ||
|
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