IntegraSDL / pygats

This is python3 library to combine power of pyautogui, opencv, tesseract, markdown and other staff to automate end-to-end and exploratory testing
MIT License
4 stars 3 forks source link

Prepare package infrastructure for publishing to public python repository #1

Closed vsysoev closed 1 year ago

vsysoev commented 1 year ago

Learn and prepare infrastructure for module based on information https://docs.python.org/3/tutorial/modules.html

n3z0xx commented 1 year ago

In tests:

from testtools import recognizeText, findFuzzyText, findRegExpText

Functions recognizeText, findFuzzyText, findRegExpText never be found in package testtools (link to api)

I believe this testtools are custom module witch does not present in this repo. If this a thing, please commit this module to issue1 branch

vsysoev commented 1 year ago

testtools is mine internal lib. This is why i want to rename it to pymagic-autogui, for example. Feel free to propose new name of library :)

n3z0xx commented 1 year ago

Do I need to include tests in this package? I can't run tests without your testtools.

n3z0xx commented 1 year ago

Also I renamed package to pymagic_autogui

vsysoev commented 1 year ago

Do I need to include tests in this package? I can't run tests without your testtools.

Test should import pymagic-autogui. These tests looks very outdated and should be refactored. Need to add tests for all exported function. You can use TDD-like approach for tests.

vsysoev commented 1 year ago

@n3z0xx please specify the source which you use to build setup.py file. Is this https://docs.python.org/3/distutils/setupscript.html ? Looks like this is pretty old approach. "Legacy version" makes me feel this is outdated. 3.11.1 Documentation » Distributing Python Modules (Legacy version) » 2. Writing the Setup Script

Looks like we need to use https://packaging.python.org/en/latest/tutorials/packaging-projects/

vsysoev commented 1 year ago

How to test modules in development https://docs.pytest.org/en/7.1.x/explanation/goodpractices.html

vsysoev commented 1 year ago

This issue with not found pygats.pygats was due to necessary to run:

pip install --editable .