diff options
Diffstat (limited to 'python-pytest-sugar.spec')
-rw-r--r-- | python-pytest-sugar.spec | 252 |
1 files changed, 177 insertions, 75 deletions
diff --git a/python-pytest-sugar.spec b/python-pytest-sugar.spec index a17657f..f519b2b 100644 --- a/python-pytest-sugar.spec +++ b/python-pytest-sugar.spec @@ -1,64 +1,100 @@ %global _empty_manifest_terminate_build 0 Name: python-pytest-sugar -Version: 0.9.6 +Version: 0.9.7 Release: 1 Summary: pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly). License: BSD URL: https://pivotfinland.com/pytest-sugar/ -Source0: https://mirrors.nju.edu.cn/pypi/web/packages/11/71/2bddd9f3f7fb267b31d7c6236dfb021d28b843f810b3fff57cf9194ef34b/pytest-sugar-0.9.6.tar.gz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/57/18/fe569040c5796879288544b1cc98888fce1754138d54e8287ed21614491e/pytest-sugar-0.9.7.tar.gz BuildArch: noarch Requires: python3-pytest Requires: python3-termcolor Requires: python3-packaging +Requires: python3-black +Requires: python3-flake8 +Requires: python3-pre-commit %description -# pytest-sugar +# pytest-sugar ✨ -[](https://travis-ci.org/Teemu/pytest-sugar) -[](https://pypi.org/project/pytest-sugar/) +[](https://pypi.org/project/pytest-sugar/) -pytest-sugar is a plugin for [pytest](http://pytest.org) that shows -failures and errors instantly and shows a progress bar. +This plugin extends [pytest](http://pytest.org) by showing failures and errors instantly, adding a progress bar, improving the test results, and making the output look better. - + -## Similar projects +## Installation -- [pytest-rich](https://github.com/nicoddemus/pytest-rich) -- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty) +To install pytest-sugar: -## Requirements + python -m pip install pytest-sugar -You will need the following prerequisites in order to use pytest-sugar: +Once installed, the plugin is activated automatically. Run your tests normally: -- Python 2.7, 3.4 or newer -- pytest 2.9.0 or newer -- pytest-xdist 1.14 or above if you want the progress bar to work while running - tests in parallel + pytest -## Installation +If you would like more detailed output (one test per line), then you may use the verbose option: -To install pytest-sugar: + pytest --verbose + +If you would like to run tests without pytest-sugar, use: - pip install pytest-sugar + pytest -p no:sugar -Then run your tests with: +## How to contribute 👷♂️ - $ pytest +[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375 +) -If you would like more detailed output (one test per line), then you may use the verbose option: +Make sure to read our [Code of Conduct](https://github.com/Teemu/pytest-sugar/blob/master/.github/CODE_OF_CONDUCT.md). You can get started modifying the codebase with the following commands. Alternatively, you can try Github Codespaces (click the badge above). Push the changes to your repository & create a pull request. - $ pytest --verbose +```` +git clone git@github.com:Teemu/pytest-sugar.git +cd pytest-sugar +python -m venv .venv +source .venv/bin/activate +echo ".venv" >> .git/info/exclude +pip install -e ".[dev]" +pre-commit install +```` -If you would like to run tests without pytest-sugar, use: +There are two ways of running tests. We have our proper tests: + +```` +pytest . +```` + +There are also fake tests that can be used to visualise the output: + +```` +pytest faketests +```` - $ pytest -p no:sugar +When submitting a pull request, please add a `RELEASE.md` file in the root of the project that contains the release type (major, minor, patch) and a summary of the changes that will be used as the release changelog entry. For example: + +```markdown +Release type: patch + +For long-running tests, display minutes and not only seconds. +``` + +## Requirements + +You will need the following prerequisites in order to use pytest-sugar: + +- Python 3.8 or newer +- pytest 6.2 or newer ## Running on Windows If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details. +## Similar projects + +- [pytest-rich](https://github.com/nicoddemus/pytest-rich) +- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty) + %package -n python3-pytest-sugar Summary: pytest-sugar is a plugin for pytest that changes the default look and feel of pytest (e.g. progressbar, show tests that fail instantly). @@ -67,106 +103,172 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pytest-sugar -# pytest-sugar +# pytest-sugar ✨ -[](https://travis-ci.org/Teemu/pytest-sugar) -[](https://pypi.org/project/pytest-sugar/) +[](https://pypi.org/project/pytest-sugar/) -pytest-sugar is a plugin for [pytest](http://pytest.org) that shows -failures and errors instantly and shows a progress bar. +This plugin extends [pytest](http://pytest.org) by showing failures and errors instantly, adding a progress bar, improving the test results, and making the output look better. - + -## Similar projects +## Installation -- [pytest-rich](https://github.com/nicoddemus/pytest-rich) -- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty) +To install pytest-sugar: -## Requirements + python -m pip install pytest-sugar -You will need the following prerequisites in order to use pytest-sugar: +Once installed, the plugin is activated automatically. Run your tests normally: -- Python 2.7, 3.4 or newer -- pytest 2.9.0 or newer -- pytest-xdist 1.14 or above if you want the progress bar to work while running - tests in parallel + pytest -## Installation +If you would like more detailed output (one test per line), then you may use the verbose option: -To install pytest-sugar: + pytest --verbose - pip install pytest-sugar +If you would like to run tests without pytest-sugar, use: -Then run your tests with: + pytest -p no:sugar - $ pytest +## How to contribute 👷♂️ -If you would like more detailed output (one test per line), then you may use the verbose option: +[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375 +) - $ pytest --verbose +Make sure to read our [Code of Conduct](https://github.com/Teemu/pytest-sugar/blob/master/.github/CODE_OF_CONDUCT.md). You can get started modifying the codebase with the following commands. Alternatively, you can try Github Codespaces (click the badge above). Push the changes to your repository & create a pull request. -If you would like to run tests without pytest-sugar, use: +```` +git clone git@github.com:Teemu/pytest-sugar.git +cd pytest-sugar +python -m venv .venv +source .venv/bin/activate +echo ".venv" >> .git/info/exclude +pip install -e ".[dev]" +pre-commit install +```` - $ pytest -p no:sugar +There are two ways of running tests. We have our proper tests: -## Running on Windows +```` +pytest . +```` -If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details. +There are also fake tests that can be used to visualise the output: +```` +pytest faketests +```` -%package help -Summary: Development documents and examples for pytest-sugar -Provides: python3-pytest-sugar-doc -%description help -# pytest-sugar +When submitting a pull request, please add a `RELEASE.md` file in the root of the project that contains the release type (major, minor, patch) and a summary of the changes that will be used as the release changelog entry. For example: -[](https://travis-ci.org/Teemu/pytest-sugar) -[](https://pypi.org/project/pytest-sugar/) +```markdown +Release type: patch -pytest-sugar is a plugin for [pytest](http://pytest.org) that shows -failures and errors instantly and shows a progress bar. +For long-running tests, display minutes and not only seconds. +``` - +## Requirements + +You will need the following prerequisites in order to use pytest-sugar: + +- Python 3.8 or newer +- pytest 6.2 or newer + +## Running on Windows + +If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details. ## Similar projects - [pytest-rich](https://github.com/nicoddemus/pytest-rich) - [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty) -## Requirements -You will need the following prerequisites in order to use pytest-sugar: +%package help +Summary: Development documents and examples for pytest-sugar +Provides: python3-pytest-sugar-doc +%description help +# pytest-sugar ✨ + +[](https://pypi.org/project/pytest-sugar/) + +This plugin extends [pytest](http://pytest.org) by showing failures and errors instantly, adding a progress bar, improving the test results, and making the output look better. -- Python 2.7, 3.4 or newer -- pytest 2.9.0 or newer -- pytest-xdist 1.14 or above if you want the progress bar to work while running - tests in parallel + ## Installation To install pytest-sugar: - pip install pytest-sugar + python -m pip install pytest-sugar -Then run your tests with: +Once installed, the plugin is activated automatically. Run your tests normally: - $ pytest + pytest If you would like more detailed output (one test per line), then you may use the verbose option: - $ pytest --verbose + pytest --verbose If you would like to run tests without pytest-sugar, use: - $ pytest -p no:sugar + pytest -p no:sugar + +## How to contribute 👷♂️ + +[](https://github.com/codespaces/new?hide_repo_select=true&ref=master&repo=10950375 +) + +Make sure to read our [Code of Conduct](https://github.com/Teemu/pytest-sugar/blob/master/.github/CODE_OF_CONDUCT.md). You can get started modifying the codebase with the following commands. Alternatively, you can try Github Codespaces (click the badge above). Push the changes to your repository & create a pull request. + +```` +git clone git@github.com:Teemu/pytest-sugar.git +cd pytest-sugar +python -m venv .venv +source .venv/bin/activate +echo ".venv" >> .git/info/exclude +pip install -e ".[dev]" +pre-commit install +```` + +There are two ways of running tests. We have our proper tests: + +```` +pytest . +```` + +There are also fake tests that can be used to visualise the output: + +```` +pytest faketests +```` + +When submitting a pull request, please add a `RELEASE.md` file in the root of the project that contains the release type (major, minor, patch) and a summary of the changes that will be used as the release changelog entry. For example: + +```markdown +Release type: patch + +For long-running tests, display minutes and not only seconds. +``` + +## Requirements + +You will need the following prerequisites in order to use pytest-sugar: + +- Python 3.8 or newer +- pytest 6.2 or newer ## Running on Windows If you are seeing gibberish, you might want to try changing charset and fonts. See [this comment]( https://github.com/Teemu/pytest-sugar/pull/49#issuecomment-146567670) for more details. +## Similar projects + +- [pytest-rich](https://github.com/nicoddemus/pytest-rich) +- [pytest-pretty](https://github.com/samuelcolvin/pytest-pretty) + %prep -%autosetup -n pytest-sugar-0.9.6 +%autosetup -n pytest-sugar-0.9.7 %build %py3_build @@ -206,5 +308,5 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog -* Fri Apr 07 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.6-1 +* Fri Apr 21 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.7-1 - Package Spec generated |