-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from 12rambau/master
v2.0.0
- Loading branch information
Showing
92 changed files
with
48,740 additions
and
2,722 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build | ||
|
||
on: | ||
- push | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
env: | ||
EE_DECRYPT_KEY: ${{ secrets.EE_DECRYPT_KEY }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 1 | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: pip install -r requirements.txt | ||
- name: test with unittest | ||
run: coverage run -m unittest discover -s tests | ||
- name: coverage | ||
run: coverage report -m | ||
- name: cadecov | ||
run: bash <(curl -s https://codecov.io/bash) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,84 @@ | ||
Install the project | ||
------------------- | ||
|
||
run the following command to start developing on the develop branch | ||
|
||
.. code-block:: console | ||
$ git clone https://github.com/12rambau/sepal_ui.git | ||
$ git checkout --track origin/develop | ||
Develop within the project | ||
-------------------------- | ||
|
||
Since 2020-08-14, this repository follows these [development guidelines](https://nvie.com/posts/a-successful-git-branching-model/). The git flow is thus the following: | ||
|
||
.. figure:: https://nvie.com/img/[email protected] | ||
:alt: the Git branching model | ||
:width: 70% | ||
|
||
The git branching model | ||
|
||
Please consider using the :code:`--no-ff` option when merging to keep the repository consistent with PR. | ||
|
||
Install your local modification instead of the Pypi lib | ||
-------------------------------------------------------- | ||
|
||
To validate you modification go to the root folder of the package and run: | ||
|
||
.. code-block:: console | ||
$ python3 setup.py sdist | ||
then install the sepal_ui from your local folder: | ||
|
||
.. code-block:: console | ||
$ pip install -e [your_sepal_ui_folder] | ||
.. warning:: | ||
|
||
Remember that if you create modifications that alter the lib standard functioning It will break the applications that use it on the SEPAL app dashboard. | ||
|
||
What can I push and where | ||
------------------------- | ||
|
||
Our branching system embed some rules to avoid crash of the production environment. If you want to contribute to this framework, here are some basic rules that we try our best to follow : | ||
|
||
- the modification you offer is solving a critical bug in prod : **PR in hotfix** | ||
- the modification you propose solve the following issues : test, documentation, typo, quality, refactoring, translation **PR in master** | ||
- the modification you propose is a new feature : open an issue to discuss with the maintainers and then **PR to develop** | ||
|
||
the maintainers will try their best to use PR for new features, to help the community follow the development, for other modification they will simply push to the appropriate branch | ||
Contribute | ||
========== | ||
|
||
Create a new release | ||
-------------------- | ||
|
||
.. danger:: | ||
|
||
for maintainers only | ||
|
||
In the files change the version number in the following files: | ||
|
||
- :code:`septup.py`: in the setup and the download URL | ||
- :code:`sepal_ui.__init__.py` | ||
- :code:`docs/source/conf.py` | ||
|
||
Then push the current master branch to the release branch. You can now create a new tag with your new version number. use the same convention as the one found in :code:`setup.py`. | ||
|
||
.. warning:: | ||
|
||
The target branch of the new release is :code:`release` not :code:`master`. | ||
|
||
Now publish the new version of the lib on Pypi : | ||
|
||
.. code-block:: console | ||
$ cd sepal_ui | ||
$ python setup.py sdist | ||
$ twine upload dist/sepal_ui-<version number>.tar.gz | ||
Once it's done you need to trigger the rebuild of SEPAL. modify the following `file <https://github.com/openforis/sepal/blob/master/modules/sandbox/docker/script/init_sepal_ui.sh>` with the latest version number and the rebuild will start automatically. |
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
File renamed without changes
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,25 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
""" | ||
ReST directive for creating line break in your documentation when needed. | ||
The directive does note require any argument. | ||
Example:: | ||
.. line-break:: | ||
""" | ||
from docutils import nodes | ||
from docutils.parsers.rst import Directive, directives | ||
|
||
class LineBreak(Directive): | ||
has_content = False | ||
required_arguments = 0 | ||
optional_arguments = 0 | ||
final_argument_whitespace = False | ||
option_spec = {} | ||
html = "<br/>" | ||
|
||
def run(self): | ||
return [nodes.raw('', self.html, format='html')] | ||
|
||
def setup(builder): | ||
directives.register_directive('line-break', LineBreak) | ||
|
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,7 @@ | ||
from enchant.tokenize import Filter | ||
|
||
class Names(Filter): | ||
"""If a word start with a Capital letter ignore it""" | ||
|
||
def _skip(self, word): | ||
return word[0].isupper() |
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,18 @@ | ||
ui | ||
tooltip | ||
ecozones | ||
geospatial | ||
ipynb | ||
modularity | ||
rst | ||
sepalize | ||
sepalization | ||
pythonic | ||
pathlib | ||
sw | ||
md | ||
txt | ||
csv | ||
dataset | ||
submodule |
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,13 @@ | ||
:root { | ||
|
||
/***************************************************************************** | ||
* Color | ||
* | ||
* Colors are defined in rgb string way, "red, green, blue" | ||
**/ | ||
--pts-color-sepal: 24, 102, 145; | ||
|
||
--pst-color-h1: var(--pts-color-sepal); | ||
--pst-color-h2: var(--pts-color-sepal); | ||
--pst-color-active-navigation: var(--pts-color-sepal); | ||
} |
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,7 @@ | ||
i.fa-github:hover { | ||
color: #333; | ||
} | ||
|
||
i.fa-python:hover { | ||
color: #306998; | ||
} |
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
Oops, something went wrong.