|
1 |
| -# test |
| 1 | +# dialoget - python library |
| 2 | + |
2 | 3 | python.dialoget.com is a test framework for multilanguage source code, based on decorators
|
3 | 4 |
|
4 |
| -## init |
| 5 | +The test directory structure for Python and Java projects will often follow conventions that are supported by popular testing frameworks and project management tools. |
| 6 | +Below, are typical structures for both languages, which help in organizing tests based on their type (e.g., unit tests, functional tests, integration tests). |
| 7 | + |
| 8 | + |
| 9 | +``` |
| 10 | +dialoget/ |
| 11 | +│ |
| 12 | +├── src/ |
| 13 | +│ └── dialoget.py # Python file with code for the package |
| 14 | +│ |
| 15 | +├── tests/ # Unit tests for the package |
| 16 | +│ ├── dialoget.py |
| 17 | +│ └── test_module2.py |
| 18 | +│ |
| 19 | +├── docs/ # Documentation for the package |
| 20 | +│ ├── conf.py |
| 21 | +│ ├── index.rst |
| 22 | +│ └── ... |
| 23 | +│ |
| 24 | +├── README.md # README file with a description of the package, installation instructions, etc. |
| 25 | +├── LICENSE # License file specifying how the package can be used and shared |
| 26 | +├── setup.py # Setuptools script for installation and distribution of the package |
| 27 | +├── setup.cfg # Configuration settings for setuptools |
| 28 | +├── requirements.txt # File listing all dependencies for the package |
| 29 | +└── .gitignore # Specifies intentionally untracked files to ignore for git |
| 30 | +``` |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +## Build |
| 35 | +build your package, first ensure you have the latest versions of `build` and `wheel` installed: |
| 36 | + |
| 37 | +```shell |
| 38 | +pip install --upgrade build wheel |
| 39 | +``` |
| 40 | + |
| 41 | +## Install |
| 42 | +Run the build module from the root of the project where the `pyproject.toml` file is located: |
| 43 | + |
| 44 | +```shell |
| 45 | +python -m build |
| 46 | +``` |
| 47 | + |
| 48 | +This command will generate distribution files in the newly created `dist/` directory within your project. You will find both a source archive (`.tar.gz`) and a wheel file (`.whl`). |
| 49 | + |
| 50 | +## Publish |
| 51 | +After the build completes successfully, |
| 52 | +upload your package to PyPI using `twine`: |
| 53 | + |
| 54 | +```shell |
| 55 | +pip install --upgrade twine |
| 56 | +twine upload dist/* |
| 57 | +``` |
| 58 | + |
| 59 | +## Manual |
| 60 | + |
| 61 | + |
| 62 | +### init |
5 | 63 | ```bash
|
6 | 64 | pip install --upgrade pip
|
7 | 65 | pip install requests
|
8 |
| -pip install behave |
9 | 66 | pip install setuptools
|
10 |
| -chmod +x test.sh |
11 | 67 | ```
|
12 | 68 |
|
13 |
| -## Start testing |
14 |
| -with one bash script |
| 69 | + |
| 70 | +### Test |
15 | 71 | ```bash
|
16 |
| -./test.sh |
| 72 | +pytest |
| 73 | +#python3 setup.py sdist bdist_wheel |
17 | 74 | ```
|
18 | 75 |
|
19 |
| -or each script in command line |
20 | 76 |
|
| 77 | +### Build |
21 | 78 | ```bash
|
22 |
| -cd test/dialoget |
23 |
| -python3 update_repo_on_github.py |
24 |
| -python3 update_repo_on_github2.py |
25 |
| -python3 create_repo_on_org_github.py |
| 79 | +python -m build |
| 80 | +#python3 setup.py sdist bdist_wheel |
26 | 81 | ```
|
27 | 82 |
|
28 |
| - |
29 |
| - |
30 |
| -The test directory structure for Python and Java projects will often follow conventions that are supported by popular testing frameworks and project management tools. |
31 |
| -Below, are typical structures for both languages, which help in organizing tests based on their type (e.g., unit tests, functional tests, integration tests). |
32 |
| - |
| 83 | +### Publish |
| 84 | +``bash |
| 85 | +twine upload dist/* |
| 86 | +``` |
33 | 87 |
|
34 | 88 | ### Python
|
35 | 89 |
|
|
0 commit comments