Skip to content
Snippets Groups Projects
Commit 7d62ffb8 authored by Duchateau Fabien's avatar Duchateau Fabien
Browse files

[M] updated install files to remove the deprecated --dependency-links pip option

parent 35ce74fd
No related branches found
No related tags found
No related merge requests found
README.md 100644 → 100755
...@@ -9,15 +9,16 @@ Finding a real estate in a new city is still a challenge. We often arrive in a c ...@@ -9,15 +9,16 @@ Finding a real estate in a new city is still a challenge. We often arrive in a c
## Installation instructions ## Installation instructions
### Requirements ### Requirements
- Python, version >=3 - Python, version >=3
- [MongoDB](https://www.mongodb.com/), version >=4 for importing the database about neighbourhoods. - [MongoDB](https://www.mongodb.com/), version >=4 for importing the database about neighbourhoods.
### Installation ### Installation
For installing Predihood, type in a terminal: For installing Predihood, go in the `predihood/` directory and run in a terminal:
``` ```
python3 -m pip install -e predihood/ --process-dependency-links python3 -m pip install -e . -r requirements.txt
``` ```
This command install dependencies, including [mongiris](https://gitlab.liris.cnrs.fr/fduchate/mongiris), a lightweight API which enables the querying of the MongoDB database containing information about French neighbourhoods. This command install dependencies, including [mongiris](https://gitlab.liris.cnrs.fr/fduchate/mongiris), a lightweight API which enables the querying of the MongoDB database containing information about French neighbourhoods.
...@@ -32,13 +33,13 @@ where `/path/to/` is the path to the dump file of the IRIS collection (provided ...@@ -32,13 +33,13 @@ where `/path/to/` is the path to the dump file of the IRIS collection (provided
### Run Predihood ### Run Predihood
For running *Predihood*, type in a terminal: For running *Predihood*, go in the `predihood/predihood/` directory and run in a terminal:
``` ```
python3 main.py python3 main.py
``` ```
After some information, the terminal displays the URL for testing *Predihood* : `http://localhost:8080/`. After some logging information, the terminal displays the URL for testing *Predihood* : `http://localhost:8081/`.
## Example usage ## Example usage
...@@ -50,9 +51,9 @@ For the cartographic interface, an example would be: ...@@ -50,9 +51,9 @@ For the cartographic interface, an example would be:
For the algorithmic interface, an example would be: For the algorithmic interface, an example would be:
1. Choose an algorithm 1. Select an algorithm in the list.
2. Tune it as desired 2. Configure your algorithm as desired by tuning available options.
3. Click on "Train, test and evaluate" button. When computing accuracies is done, a table shows results for each environment variable and each list of indicators. 3. Click on "Train, test and evaluate" button. After execution, a table summarizes results for each environment variable and each list of indicators.
## Tests ## Tests
......
...@@ -2,12 +2,11 @@ setuptools~=41.2.0 ...@@ -2,12 +2,11 @@ setuptools~=41.2.0
numpy~=1.18.3 numpy~=1.18.3
pandas~=1.0.3 pandas~=1.0.3
area~=1.1.1 area~=1.1.1
predihood~=0.13 scikit-learn~=0.22
sklearn~=0.0
scikit-learn~=0.22.2.post1
matplotlib~=3.2.1 matplotlib~=3.2.1
seaborn~=0.10.1 seaborn~=0.10.1
Flask~=1.1.2 Flask~=1.1.2
mongiris~=0.40
requests~=2.23.0 requests~=2.23.0
StringDist~=1.0.9 StringDist~=1.0.9
\ No newline at end of file https://gitlab.liris.cnrs.fr/fduchate/mongiris/-/archive/master/mongiris-master.zip
setup.cfg 100644 → 100755
...@@ -6,23 +6,13 @@ author = Fabien Duchateau ...@@ -6,23 +6,13 @@ author = Fabien Duchateau
author_email = fabien.duchateau@univ-lyon1.fr author_email = fabien.duchateau@univ-lyon1.fr
url = https://gitlab.liris.cnrs.fr/fduchate/predihood.git url = https://gitlab.liris.cnrs.fr/fduchate/predihood.git
download_url = https://gitlab.liris.cnrs.fr/fduchate/predihood.git download_url = https://gitlab.liris.cnrs.fr/fduchate/predihood.git
keywords = visualization search INSEE IRIS keywords = visualization search neighbourhood INSEE IRIS
license_file = LICENSE license_file = LICENSE
[options] [options]
packages = find: packages = find:
include_package_data = True include_package_data = True
zip_safe = False zip_safe = False
install_requires =
flask >= 1.0.2
mongiris >= 0.3
dependency_links =
git+https://fduchate@gitlab.liris.cnrs.fr/fduchate/mongiris.git#egg=mongiris-0.3
#[options.packages.find]
#exclude =
# tests.*,
# data/HiL/*
[options.package_data] [options.package_data]
# package_data is ignored when a MANIFEST.in is provided # package_data is ignored when a MANIFEST.in is provided
......
...@@ -3,8 +3,7 @@ from setuptools import setup ...@@ -3,8 +3,7 @@ from setuptools import setup
import shutil import shutil
# python3 -m setup bdist_wheel sdist # python3 -m setup bdist_wheel sdist
# python3 -m pip install -e ../predihood/ # python3 -m pip install -e . -r requirements.txt
# installation: python -m pip install -e ../predihood/ --process-dependency-links
def delete_dir(directories): # delete directories (ignore errors such as read-only files) def delete_dir(directories): # delete directories (ignore errors such as read-only files)
for directory in directories: for directory in directories:
...@@ -16,5 +15,5 @@ delete_dir(["./predihood.egg-info/", "./build/", "./dist/"]) ...@@ -16,5 +15,5 @@ delete_dir(["./predihood.egg-info/", "./build/", "./dist/"])
readme = open("README.md").read() readme = open("README.md").read()
setup(long_description=readme, install_requires=["scikit-learn", "eli5", "matplotlib", "numpy", "pandas", "requests"]) setup(long_description=readme, install_requires=["scikit-learn", "eli5", "matplotlib", "numpy", "pandas", "requests", "flask"])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment