summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-21 07:59:33 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-21 07:59:33 +0000
commitefc81712dc88dfd97649c88057ed4ceb8abd9cf1 (patch)
tree5fb1d883ad3f0381be8284b352722566ea3efd8c
parent5da0c61de9afcab8824d2defca994cad1316b22c (diff)
automatic import of python-pytest-sugaropeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-pytest-sugar.spec252
-rw-r--r--sources2
3 files changed, 179 insertions, 76 deletions
diff --git a/.gitignore b/.gitignore
index 4e7e88b..e561b68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/pytest-sugar-0.9.6.tar.gz
+/pytest-sugar-0.9.7.tar.gz
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 ✨
-[![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
-[![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi.org/project/pytest-sugar/)
+[![PyPI version](https://img.shields.io/pypi/v/pytest-sugar.svg)](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.
-![Demo](https://i.imgur.com/jER0Jxj.gif)
+![render1667890332624-min](https://user-images.githubusercontent.com/53298/200600769-7b871b26-a36a-4ae6-ae24-945ee83fb74a.gif)
-## 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
+[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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 ✨
-[![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
-[![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](https://pypi.org/project/pytest-sugar/)
+[![PyPI version](https://img.shields.io/pypi/v/pytest-sugar.svg)](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.
-![Demo](https://i.imgur.com/jER0Jxj.gif)
+![render1667890332624-min](https://user-images.githubusercontent.com/53298/200600769-7b871b26-a36a-4ae6-ae24-945ee83fb74a.gif)
-## 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:
+[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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:
-[![Build status](https://travis-ci.org/Teemu/pytest-sugar.svg?branch=master)](https://travis-ci.org/Teemu/pytest-sugar)
-[![Pypi version](https://img.shields.io/pypi/v/pytest-sugar.svg)](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.
+```
-![Demo](https://i.imgur.com/jER0Jxj.gif)
+## 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 ✨
+
+[![PyPI version](https://img.shields.io/pypi/v/pytest-sugar.svg)](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
+![render1667890332624-min](https://user-images.githubusercontent.com/53298/200600769-7b871b26-a36a-4ae6-ae24-945ee83fb74a.gif)
## 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 👷‍♂️
+
+[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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
diff --git a/sources b/sources
index 6244b4b..8504c69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-13f2164bcfedc87792ab7d16441d9d99 pytest-sugar-0.9.6.tar.gz
+fb032173598df0a3d307c02cf549e4f5 pytest-sugar-0.9.7.tar.gz