-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
changed backend directory as python module #206
Merged
Tomansion
merged 101 commits into
main
from
205-debiai-easy-start-module-to-launch-debiai-standlalone
Jul 25, 2024
Merged
Changes from 99 commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
82f38b0
changed backend directory as python module
FadyCoding f95c388
removed unwanted data files from git repo
FadyCoding 8bd3e7c
updated .gitignore
FadyCoding 4e44b64
formated necessary files
FadyCoding 174631f
formatting and cspell
FadyCoding 8741db0
ignore flake8 checks for init files
FadyCoding b1c344e
adjusted files for flake8 checks
FadyCoding 12d5388
cpsell and format
FadyCoding e2b08b0
cspell checks and ignore files added
FadyCoding b5d42d3
added sdist and bdist
FadyCoding 4e57dc0
upgraded version in front and backend
FadyCoding 07939a6
recursive for dist dir into backend package
FadyCoding 4f40926
refactor backend script for imports
FadyCoding 93e4779
conditionnal reloader + debug mode depending on flask env var
FadyCoding a9f8d5e
removed verify function and comments
FadyCoding 4d305ef
deleted build files wrongly pushed before
FadyCoding b764af1
modifcation for merging with main
FadyCoding 551bb0a
cspell
FadyCoding 509ca76
cspell column
FadyCoding 1c91796
Merge branch '205-debiai-easy-start-module-to-launch-debiai-standlalo…
FadyCoding ffa0095
fix browser opening
FadyCoding 64f167d
enhanced setup file
FadyCoding 30685c9
comments
FadyCoding 43a4a78
rename backend to debiaiServer
FadyCoding 274d91e
new workflow pipeline for debiai gui
FadyCoding b0735c5
setuptools added to pipeline
FadyCoding 7ad5619
new name
FadyCoding a923319
version check for back and front and rename
FadyCoding 6738b61
rename backend dir in run section
FadyCoding c075c1e
version update
FadyCoding 07d47ed
ignore files updated
FadyCoding aafff63
rename and version var
FadyCoding 593447b
pipeline actions for build and frontend and command to start debiai
FadyCoding 03a4bc3
frontend dir
FadyCoding fd734d1
frontend test
FadyCoding 57f58f6
version updated
FadyCoding 61626a2
debiai command
FadyCoding 2f934b4
new version and erased beta version
FadyCoding aff0e2b
update version
FadyCoding ed78f9f
build then setup
FadyCoding 7b5aca8
moved frontend copy after build
FadyCoding 9860877
frontend paths
FadyCoding 2e0db8f
frontend build action
FadyCoding 289700e
version updated
FadyCoding f5a4ee7
version fetched from swagger
FadyCoding 34e4d0b
new command and yaml installation
FadyCoding e174194
update swagger version
FadyCoding e187ccb
doc and command options
FadyCoding 8fca906
added connexion dependency
FadyCoding 42ef090
requirements installed in the pipeline
FadyCoding 69601be
requirements path
FadyCoding 4d32f83
path corrected
FadyCoding e01584c
enhanced bash info
FadyCoding 4ee8653
update frontend version
FadyCoding a1c6404
package data to include swagger
FadyCoding e554d7f
no pip upgrade
FadyCoding 6d76195
fixed python version to 3.11
FadyCoding 958335a
version update
FadyCoding 7f4d22a
env var are availables in the package
FadyCoding 382d0e2
version up
FadyCoding ccb957b
env var included through configs files
FadyCoding 295694d
version updated
FadyCoding 86168c0
double check inclusion of config files
FadyCoding 3beb5e1
version update
FadyCoding 8da0c2d
use of pkg ressources to get file paths
FadyCoding 7eeeec4
update swagger version
FadyCoding 98450a0
new path for data direcotry and psutil added to requirements
FadyCoding d662e77
version update
FadyCoding 4e5a78a
colored function instead of ANSI
FadyCoding 45974df
link to doc in bash
FadyCoding 627cf54
ability to choose a port in command line
FadyCoding 90cf087
wsgi for prod server condition
FadyCoding 238ffec
added gevent module
FadyCoding 754bd6a
versionning
FadyCoding 57a17ae
waitress server for prod
FadyCoding 39fa3ba
script to run + docker file updated
FadyCoding 373cf4b
version update
FadyCoding 9f3a22b
disable waitress warning
FadyCoding bf087b2
review
FadyCoding 59e59e4
rename, comments and updated markdown
FadyCoding 294afc6
added images for doc purposes
FadyCoding f2d6c82
added images to md with github links and enahnce number of threads
FadyCoding 7d30399
corrected image links
FadyCoding 359b378
updated version
FadyCoding 90f2396
Merge branch 'main' of https://github.com/debiai/debiai into 205-debi…
FadyCoding ead0c40
rename backend into debiaiServer for PR
FadyCoding ffcf5d3
black
FadyCoding 5601139
update version
FadyCoding 52d991c
flake
FadyCoding bfa4b69
dockerfile
FadyCoding c0ca121
script to run in dev and rename of paths
FadyCoding 9cf823f
Fixed issue with dependencies
Tomansion 2331a47
Fixed issue with Flask env
Tomansion c3cb816
new name for module and correction to workflow
FadyCoding bba2481
Merge branch 'main' into 205-debiai-easy-start-module-to-launch-debia…
FadyCoding 3bb9d39
coorected name
FadyCoding 76035bb
renamed workflow
FadyCoding ba60ea0
test for backend
FadyCoding 5560a14
corrected path
FadyCoding 14fb10b
review
FadyCoding 7688919
added swagger file
FadyCoding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This workflow will upload a Debiai-gui Package using Twine when the main branch is updated | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.11" | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
- name: Build frontend | ||
run: | | ||
cd frontend | ||
npm install | ||
npm run build | ||
cp -r dist ../debiaiServer/dist | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r debiaiServer/requirements.txt | ||
pip install setuptools wheel | ||
- name: Build | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
packages_dir: dist |
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
||
# Build and packaging | ||
dist/ | ||
deployment/ | ||
.vscode/ | ||
build/ | ||
*data/ | ||
*.egg-info/ | ||
|
||
# Dependency directories | ||
frontend/node_modules/ | ||
|
||
# Back | ||
backend/data | ||
# coverage | ||
.coverage | ||
__pycache__/ | ||
|
||
# Front | ||
frontend/node_modules/ | ||
# Scripts | ||
build_and_run.sh | ||
|
||
# Deployement | ||
deployment/ | ||
|
||
# VSCODE | ||
.vscode/ |
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,6 @@ | ||
include debiaiServer/swagger.yaml | ||
include debiaiServer/config/config.env | ||
include debiaiServer/config/config.ini | ||
include images/ * | ||
recursive-include debiaiServer/dist * | ||
|
This file was deleted.
Oops, something went wrong.
Tomansion marked this conversation as resolved.
Show resolved
Hide resolved
Tomansion marked this conversation as resolved.
Show resolved
Hide resolved
|
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,11 @@ | ||
# Remove previous build and dist directories | ||
rm -rf build dist debiaiServer.egg-info | ||
|
||
# Generated source distribution and wheel distribution | ||
python3 setup.py sdist bdist_wheel | ||
|
||
# Install the package | ||
pip install . | ||
|
||
# Run the package | ||
debiai_gui start |
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 @@ | ||
from debiaiServer.websrv import send_frontend, create_app, start_server |
Empty file.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
backend/config/init_config.py → debiaiServer/config/init_config.py
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
Empty file.
12 changes: 7 additions & 5 deletions
12
backend/controller/algoProviders.py → debiaiServer/controller/algoProviders.py
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
14 changes: 9 additions & 5 deletions
14
backend/controller/dataProviders.py → debiaiServer/controller/dataProviders.py
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
4 changes: 2 additions & 2 deletions
4
backend/controller/exportMethods.py → debiaiServer/controller/exportMethods.py
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
2 changes: 1 addition & 1 deletion
2
backend/controller/layouts.py → debiaiServer/controller/layouts.py
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
6 changes: 4 additions & 2 deletions
6
backend/controller/projects.py → debiaiServer/controller/projects.py
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
6 changes: 4 additions & 2 deletions
6
backend/controller/pythonModuleDp.py → debiaiServer/controller/pythonModuleDp.py
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FadyCoding