summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-mamba.spec471
-rw-r--r--sources1
3 files changed, 473 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2e71b4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mamba-0.11.2.tar.gz
diff --git a/python-mamba.spec b/python-mamba.spec
new file mode 100644
index 0000000..1f51d07
--- /dev/null
+++ b/python-mamba.spec
@@ -0,0 +1,471 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mamba
+Version: 0.11.2
+Release: 1
+Summary: The definitive testing tool for Python. Born under the banner of Behavior Driven Development.
+License: MIT/X11
+URL: http://nestorsalceda.github.io/mamba
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/91/2fda06c9fa628a27bebebab6d8c078f1c048124d5c626283ee0edf47b577/mamba-0.11.2.tar.gz
+BuildArch: noarch
+
+
+%description
+# mamba: the definitive test runner for Python
+
+[![Build Status](https://travis-ci.org/nestorsalceda/mamba.svg)](https://travis-ci.org/nestorsalceda/mamba)
+[![Latest PyPI Version](https://img.shields.io/pypi/v/mamba.svg)](https://pypi.python.org/pypi/mamba)
+[![Read The Docs Status](https://readthedocs.org/projects/pip/badge/)](https://mamba-bdd.readthedocs.io/en/latest/)
+[![PyPI pyversions](https://img.shields.io/pypi/pyversions/mamba.svg)](https://pypi.python.org/pypi/mamba/)
+
+
+**mamba** is the definitive test runner for Python. Born under the banner of [behavior-driven development](https://en.wikipedia.org/wiki/Behavior-driven_development).
+
+## Install
+
+I recommend to use pipenv for managing your dependencies, thus you can install mamba like any other Python package.
+
+By example:
+
+```
+ $ pipenv install mamba
+```
+
+But you also can use pip:
+
+```
+ $ pip install mamba
+```
+
+
+## Getting Started
+
+Write a very simple example that describes your code behaviour:
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+
+Run the example, and don't forget to watch it fail!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ F
+
+ 1 examples failed of 1 ran in 0.0023 seconds
+
+ Failures:
+
+ 1) Tennis it starts with 0 - 0 score
+ Failure/Error: tennis_spec.py game = Game(rafa_nadal, roger_federer)
+ NameError: global name 'Game' is not defined
+
+ File "tennis_spec.py", line 8, in 00000001__it starts with 0 - 0 score--
+ game = Game(rafa_nadal, roger_federer)
+```
+
+Now write as little code for making it pass.
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ import tennis
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = tennis.Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+```python
+ # tennis.py
+
+ class Game(object):
+ def __init__(self, player1, player2):
+ pass
+
+ def score(self):
+ return (0, 0)
+```
+
+Run the spec file and enjoy that all tests are green!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ .
+
+ 1 examples ran in 0.0022 seconds
+```
+
+## Settings
+
+Mamba provides a way to configuration using `spec/spec_helper.py` or `specs/spec_helper.py`
+This module function is read after parsing arguments so configure function overrides settings
+
+A sample config file :
+
+```python
+def configure(settings):
+ # settings.slow_test_threshold = 0.075
+ # settings.enable_code_coverage = False
+ # settings.code_coverage_file = '.coverage'
+ settings.format = 'documentation'
+ # settings.no_color = False
+ # settings.tags = None
+
+```
+## Official Manual
+
+You can read more features about mamba in its [official manual](https://mamba-bdd.readthedocs.io/en/latest/)
+
+## Contributors
+
+Here's a [list](https://github.com/nestorsalceda/mamba/graphs/contributors) of all the people who have contributed.
+
+I'm really grateful to each and every of them!
+
+If you want to be one of them, fork [repository](http://github.com/nestorsalceda/mamba) and send a pull request.
+
+%package -n python3-mamba
+Summary: The definitive testing tool for Python. Born under the banner of Behavior Driven Development.
+Provides: python-mamba
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mamba
+# mamba: the definitive test runner for Python
+
+[![Build Status](https://travis-ci.org/nestorsalceda/mamba.svg)](https://travis-ci.org/nestorsalceda/mamba)
+[![Latest PyPI Version](https://img.shields.io/pypi/v/mamba.svg)](https://pypi.python.org/pypi/mamba)
+[![Read The Docs Status](https://readthedocs.org/projects/pip/badge/)](https://mamba-bdd.readthedocs.io/en/latest/)
+[![PyPI pyversions](https://img.shields.io/pypi/pyversions/mamba.svg)](https://pypi.python.org/pypi/mamba/)
+
+
+**mamba** is the definitive test runner for Python. Born under the banner of [behavior-driven development](https://en.wikipedia.org/wiki/Behavior-driven_development).
+
+## Install
+
+I recommend to use pipenv for managing your dependencies, thus you can install mamba like any other Python package.
+
+By example:
+
+```
+ $ pipenv install mamba
+```
+
+But you also can use pip:
+
+```
+ $ pip install mamba
+```
+
+
+## Getting Started
+
+Write a very simple example that describes your code behaviour:
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+
+Run the example, and don't forget to watch it fail!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ F
+
+ 1 examples failed of 1 ran in 0.0023 seconds
+
+ Failures:
+
+ 1) Tennis it starts with 0 - 0 score
+ Failure/Error: tennis_spec.py game = Game(rafa_nadal, roger_federer)
+ NameError: global name 'Game' is not defined
+
+ File "tennis_spec.py", line 8, in 00000001__it starts with 0 - 0 score--
+ game = Game(rafa_nadal, roger_federer)
+```
+
+Now write as little code for making it pass.
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ import tennis
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = tennis.Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+```python
+ # tennis.py
+
+ class Game(object):
+ def __init__(self, player1, player2):
+ pass
+
+ def score(self):
+ return (0, 0)
+```
+
+Run the spec file and enjoy that all tests are green!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ .
+
+ 1 examples ran in 0.0022 seconds
+```
+
+## Settings
+
+Mamba provides a way to configuration using `spec/spec_helper.py` or `specs/spec_helper.py`
+This module function is read after parsing arguments so configure function overrides settings
+
+A sample config file :
+
+```python
+def configure(settings):
+ # settings.slow_test_threshold = 0.075
+ # settings.enable_code_coverage = False
+ # settings.code_coverage_file = '.coverage'
+ settings.format = 'documentation'
+ # settings.no_color = False
+ # settings.tags = None
+
+```
+## Official Manual
+
+You can read more features about mamba in its [official manual](https://mamba-bdd.readthedocs.io/en/latest/)
+
+## Contributors
+
+Here's a [list](https://github.com/nestorsalceda/mamba/graphs/contributors) of all the people who have contributed.
+
+I'm really grateful to each and every of them!
+
+If you want to be one of them, fork [repository](http://github.com/nestorsalceda/mamba) and send a pull request.
+
+%package help
+Summary: Development documents and examples for mamba
+Provides: python3-mamba-doc
+%description help
+# mamba: the definitive test runner for Python
+
+[![Build Status](https://travis-ci.org/nestorsalceda/mamba.svg)](https://travis-ci.org/nestorsalceda/mamba)
+[![Latest PyPI Version](https://img.shields.io/pypi/v/mamba.svg)](https://pypi.python.org/pypi/mamba)
+[![Read The Docs Status](https://readthedocs.org/projects/pip/badge/)](https://mamba-bdd.readthedocs.io/en/latest/)
+[![PyPI pyversions](https://img.shields.io/pypi/pyversions/mamba.svg)](https://pypi.python.org/pypi/mamba/)
+
+
+**mamba** is the definitive test runner for Python. Born under the banner of [behavior-driven development](https://en.wikipedia.org/wiki/Behavior-driven_development).
+
+## Install
+
+I recommend to use pipenv for managing your dependencies, thus you can install mamba like any other Python package.
+
+By example:
+
+```
+ $ pipenv install mamba
+```
+
+But you also can use pip:
+
+```
+ $ pip install mamba
+```
+
+
+## Getting Started
+
+Write a very simple example that describes your code behaviour:
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+
+Run the example, and don't forget to watch it fail!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ F
+
+ 1 examples failed of 1 ran in 0.0023 seconds
+
+ Failures:
+
+ 1) Tennis it starts with 0 - 0 score
+ Failure/Error: tennis_spec.py game = Game(rafa_nadal, roger_federer)
+ NameError: global name 'Game' is not defined
+
+ File "tennis_spec.py", line 8, in 00000001__it starts with 0 - 0 score--
+ game = Game(rafa_nadal, roger_federer)
+```
+
+Now write as little code for making it pass.
+
+```python
+ # tennis_spec.py
+
+ from mamba import description, context, it
+ from expects import expect, equal
+
+ import tennis
+
+ with description('Tennis') as self:
+ with it('starts with 0 - 0 score'):
+ rafa_nadal = "Rafa Nadal"
+ roger_federer = "Roger Federer"
+ game = tennis.Game(rafa_nadal, roger_federer)
+
+ expect(game.score()).to(equal((0, 0)))
+```
+
+```python
+ # tennis.py
+
+ class Game(object):
+ def __init__(self, player1, player2):
+ pass
+
+ def score(self):
+ return (0, 0)
+```
+
+Run the spec file and enjoy that all tests are green!
+
+```
+ $ pipenv run mamba tennis_spec.py
+
+ .
+
+ 1 examples ran in 0.0022 seconds
+```
+
+## Settings
+
+Mamba provides a way to configuration using `spec/spec_helper.py` or `specs/spec_helper.py`
+This module function is read after parsing arguments so configure function overrides settings
+
+A sample config file :
+
+```python
+def configure(settings):
+ # settings.slow_test_threshold = 0.075
+ # settings.enable_code_coverage = False
+ # settings.code_coverage_file = '.coverage'
+ settings.format = 'documentation'
+ # settings.no_color = False
+ # settings.tags = None
+
+```
+## Official Manual
+
+You can read more features about mamba in its [official manual](https://mamba-bdd.readthedocs.io/en/latest/)
+
+## Contributors
+
+Here's a [list](https://github.com/nestorsalceda/mamba/graphs/contributors) of all the people who have contributed.
+
+I'm really grateful to each and every of them!
+
+If you want to be one of them, fork [repository](http://github.com/nestorsalceda/mamba) and send a pull request.
+
+%prep
+%autosetup -n mamba-0.11.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mamba -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.11.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6ef885a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b68d55d00b5ad1ad5c5d6d9593fe24f9 mamba-0.11.2.tar.gz