.gear/dictdiffer.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++ .gear/rules | 3 +++ .gear/tags/list | 1 + .gear/upstream/remotes | 3 +++ pytest.ini | 2 +- setup.py | 8 ------ tox.ini | 11 ++++++--- 7 files changed, 82 insertions(+), 12 deletions(-) diff --git a/.gear/dictdiffer.spec b/.gear/dictdiffer.spec new file mode 100644 index 0000000..f7aecc4 --- /dev/null +++ b/.gear/dictdiffer.spec @@ -0,0 +1,66 @@ +%define _unpackaged_files_terminate_build 1 +%define oname dictdiffer + +%def_with check + +Name: python3-module-%oname +Version: 0.8.1 +Release: alt1 + +Summary: Dictdiffer is a module that helps you to diff and patch dictionaries +License: MIT +Group: Development/Python3 +Url: https://pypi.org/project/dictdiffer/ + +BuildArch: noarch + +# https://github.com/inveniosoftware/dictdiffer.git +Source: %name-%version.tar +Patch0: %name-%version-alt.patch + +BuildRequires(pre): rpm-build-python3 +BuildRequires: python3(setuptools_scm) + +%if_with check +BuildRequires: python3(pytest) +BuildRequires: python3(tox) +%endif + +%description +Dictdiffer is a library that helps you to diff and patch dictionaries. + +%prep +%setup +%autopatch -p1 + +%build +# SETUPTOOLS_SCM_PRETEND_VERSION: when defined and not empty, +# its used as the primary source for the version number in which +# case it will be a unparsed string +export SETUPTOOLS_SCM_PRETEND_VERSION=%version +%python3_build + +%install +export SETUPTOOLS_SCM_PRETEND_VERSION=%version +%python3_build_install + +%check +export SETUPTOOLS_SCM_PRETEND_VERSION=%version +export PIP_NO_BUILD_ISOLATION=no +export PIP_NO_INDEX=YES +export TOXENV=py3 +tox.py3 --sitepackages -vvr + +%files +%doc *.rst LICENSE +%python3_sitelibdir/* + +%changelog +* Wed Oct 14 2020 Stanislav Levin 0.8.1-alt1 +- 0.7.0 -> 0.8.1. + +* Thu Apr 16 2020 Andrey Bychkov 0.7.0-alt2 +- Build for python2 disabled. + +* Tue Mar 06 2018 Aleksei Nikiforov 0.7.0-alt1 +- Initial build for ALT. diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 0000000..699fa1b --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/dictdiffer.spec +tar: v@version@:. +diff: v@version@:. . name=@name@-@version@-alt.patch diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 0000000..1155db0 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +4eaffe56663b266d83cd28119d904d473ff99d4d v0.8.1 diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes new file mode 100644 index 0000000..70ca207 --- /dev/null +++ b/.gear/upstream/remotes @@ -0,0 +1,3 @@ +[remote "upstream"] + url = https://github.com/inveniosoftware/dictdiffer.git + fetch = +refs/heads/*:refs/remotes/upstream/* diff --git a/pytest.ini b/pytest.ini index b898f46..4baa3d8 100644 --- a/pytest.ini +++ b/pytest.ini @@ -8,4 +8,4 @@ [pytest] pep8ignore = docs/conf.py ALL -addopts = --pep8 --doctest-glob='*.rst' --doctest-modules --cov=dictdiffer --cov-report=term-missing docs tests dictdiffer +addopts = tests dictdiffer diff --git a/setup.py b/setup.py index ddc99c2..463c144 100644 --- a/setup.py +++ b/setup.py @@ -20,13 +20,6 @@ from setuptools import find_packages, setup readme = open('README.rst').read() tests_require = [ - 'check-manifest>=0.25', - 'coverage>=4.0', - 'isort>=4.2.2', - 'mock>=1.3.0', - 'pydocstyle>=1.0.0', - 'pytest-cov>=1.8.0', - 'pytest-pep8>=1.0.6', 'pytest>=2.8.0', 'tox>=3.7.0', ] @@ -49,7 +42,6 @@ for key, reqs in extras_require.items(): extras_require['all'].extend(reqs) setup_requires = [ - 'pytest-runner>=2.7', 'setuptools_scm>=3.1.0', ] diff --git a/tox.ini b/tox.ini index 2e063a6..1048312 100644 --- a/tox.ini +++ b/tox.ini @@ -11,7 +11,12 @@ envlist = py27, py34, py35, py36 [testenv] +usedevelop=True deps = pytest - pytest-cov - pytest-pep8 -commands = {envpython} setup.py test +whitelist_externals = + /bin/cp + /bin/sed +commands_pre = + /bin/cp /usr/bin/py.test3 {envbindir}/py.test + /bin/sed -i '1c #!{envpython}' {envbindir}/py.test +commands = {envbindir}/py.test {posargs:-vra}