Skip to content

Latest commit

 

History

History
103 lines (71 loc) · 1.32 KB

DEV_README.md

File metadata and controls

103 lines (71 loc) · 1.32 KB

EasyROI

Developer Manual

Requirements

python3
cv2
numpy

Running test code

  • Create virtual environment and activate it
python3 -m venv venv_easy_roi
source venv_easy_roi/bin/activate
  • install requirements.txt
pip3 install -r requirements.txt
git clone https://github.com/saharshleo/easyROI.git
python dev_main.py

Packaging

  • Create setup.py

  • Create README.md

  • Folder structure should be

    easyROI .
    ├── EasyROI
    │ ├── init.py
    │ ├── utils.py
    │ └── easyROI.py
    ├── setup.py
    ├── LICENSE
    └── README.md

  • Create packaging environment

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
pip3 install wheel
pip3 install twine
  • Creating wheel file
python setup.py sdist bdist_wheel
  • Publishing
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
  • For testing published library
  • Create testing environment
python3 -m venv venv_test
source venv_test/bin/activate
  • Install or Upgrade EasyROI
pip3 install EasyROI

OR

pip3 install EasyROI --upgrade
  • Test library
python test_library.py

TODO

See progress in TODO.md