Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainv committed May 29, 2024
1 parent befee80 commit 603441b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:
export CPLUS_INCLUDE_PATH=/usr/include/gdal
export C_INCLUDE_PATH=/usr/include/gdal
python3 -m pip install gdal==$(gdal-config --version)
# Install geefcc dev
python3 -m pip install https://github.com/ghislainv/geefcc/archive/master.zip
# Install other requirements
# Install requirements
python3 -m pip install -r requirements.txt
python3 -m pip install .
- name: Lint with flake8
Expand Down
26 changes: 11 additions & 15 deletions docsrc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,27 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
import os
import sys
import datetime
import re # Regular expression

# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))


# -- Project information -----------------------------------------------------

project = "forestatrisk"
copyright = "2020, Ghislain Vieilledent"
author = "Ghislain Vieilledent"
_today = datetime.date.today()
year = _today.year
copyright = f"{year}, Cirad"

# The full version, including alpha/beta/rc tags
version = re.search(
r'^__version__\s*=\s*"(.*)"',
open("../forestatrisk/__init__.py").read(),
re.M
).group(1)
with open("../forestatrisk/__init__.py", encoding="utf-8") as init_file:
init_text = init_file.read()
author = re.search('^__author__\\s*=\\s*"(.*)"', init_text, re.M).group(1)
version = re.search('^__version__\\s*=\\s*"(.*)"', init_text, re.M).group(1)
release = version

# -- Sphynx options ----------------------------------------------------------
add_module_names = False
add_function_parentheses = True

# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
numpy
earthengine-api
gdal
numpy
geefcc
matplotlib
pandas
patsy
Expand Down
1 change: 0 additions & 1 deletion test/__init__.py

This file was deleted.

0 comments on commit 603441b

Please sign in to comment.