From 59dd8837d05d28c00a25ab537ffc89d15f8a37f4 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 15 May 2023 04:13:12 +0000 Subject: automatic import of python-appmap --- python-appmap.spec | 191 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 python-appmap.spec (limited to 'python-appmap.spec') diff --git a/python-appmap.spec b/python-appmap.spec new file mode 100644 index 0000000..ab0cc42 --- /dev/null +++ b/python-appmap.spec @@ -0,0 +1,191 @@ +%global _empty_manifest_terminate_build 0 +Name: python-appmap +Version: 1.15.1 +Release: 1 +Summary: Create AppMap files by recording a Python application. +License: MIT +URL: https://github.com/applandinc/appmap-python +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/40/7b/8c8f11688c3975183af1c057eb1dc9e42ac9288dc7cf91c8c22b41cb23b3/appmap-1.15.1.tar.gz +BuildArch: noarch + +Requires: python3-PyYAML +Requires: python3-inflection +Requires: python3-importlib-metadata +Requires: python3-importlib-resources +Requires: python3-packaging + +%description +Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) +``` +[Note that the current configuration requires a 10.0 for the Travis build to pass. To make +this easier to achieve, convention and refactoring checks have both been disabled. They +should be reenabled as soon as possible.] +## Testing +### pytest +Note that you must install the dependencies contained in +[requirements-test.txt](requirements-test.txt) before running tests. See the explanation in +[pyproject.toml](pyproject.toml) for details. +[pytest](https://docs.pytest.org/en/stable/) for testing: +``` +% cd appmap-python +% pip install -r requirements-test.txt +% poetry run pytest +``` +### tox +Additionally, the `tox` configuration provides the ability to run the tests for all +supported versions of Python and djanggo. +`tox` requires that all the correct versions of Python to be available to create +the test environments. [pyenv](https://github.com/pyenv/pyenv) is an easy way to manage +multiple versions of Python, and the [xxenv-latest +plugin](https://github.com/momo-lab/xxenv-latest) can help get all the latest versions. +```sh +% brew install pyenv +% git clone https://github.com/momo-lab/xxenv-latest.git "$(pyenv root)"/plugins/xxenv-latest +% cd appmap-python +% pyenv latest local 3.{9,6,7,8} +% for v in 3.{9,6,7,8}; do pyenv latest install $v; done +% poetry run tox +``` +## Code Coverage +[coverage](https://coverage.readthedocs.io/) for coverage: +``` +% cd appmap-python +% poetry run coverage run -m pytest +% poetry run coverage html +% open htmlcov/index.html +``` + +%package -n python3-appmap +Summary: Create AppMap files by recording a Python application. +Provides: python-appmap +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-appmap +Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) +``` +[Note that the current configuration requires a 10.0 for the Travis build to pass. To make +this easier to achieve, convention and refactoring checks have both been disabled. They +should be reenabled as soon as possible.] +## Testing +### pytest +Note that you must install the dependencies contained in +[requirements-test.txt](requirements-test.txt) before running tests. See the explanation in +[pyproject.toml](pyproject.toml) for details. +[pytest](https://docs.pytest.org/en/stable/) for testing: +``` +% cd appmap-python +% pip install -r requirements-test.txt +% poetry run pytest +``` +### tox +Additionally, the `tox` configuration provides the ability to run the tests for all +supported versions of Python and djanggo. +`tox` requires that all the correct versions of Python to be available to create +the test environments. [pyenv](https://github.com/pyenv/pyenv) is an easy way to manage +multiple versions of Python, and the [xxenv-latest +plugin](https://github.com/momo-lab/xxenv-latest) can help get all the latest versions. +```sh +% brew install pyenv +% git clone https://github.com/momo-lab/xxenv-latest.git "$(pyenv root)"/plugins/xxenv-latest +% cd appmap-python +% pyenv latest local 3.{9,6,7,8} +% for v in 3.{9,6,7,8}; do pyenv latest install $v; done +% poetry run tox +``` +## Code Coverage +[coverage](https://coverage.readthedocs.io/) for coverage: +``` +% cd appmap-python +% poetry run coverage run -m pytest +% poetry run coverage html +% open htmlcov/index.html +``` + +%package help +Summary: Development documents and examples for appmap +Provides: python3-appmap-doc +%description help +Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) +``` +[Note that the current configuration requires a 10.0 for the Travis build to pass. To make +this easier to achieve, convention and refactoring checks have both been disabled. They +should be reenabled as soon as possible.] +## Testing +### pytest +Note that you must install the dependencies contained in +[requirements-test.txt](requirements-test.txt) before running tests. See the explanation in +[pyproject.toml](pyproject.toml) for details. +[pytest](https://docs.pytest.org/en/stable/) for testing: +``` +% cd appmap-python +% pip install -r requirements-test.txt +% poetry run pytest +``` +### tox +Additionally, the `tox` configuration provides the ability to run the tests for all +supported versions of Python and djanggo. +`tox` requires that all the correct versions of Python to be available to create +the test environments. [pyenv](https://github.com/pyenv/pyenv) is an easy way to manage +multiple versions of Python, and the [xxenv-latest +plugin](https://github.com/momo-lab/xxenv-latest) can help get all the latest versions. +```sh +% brew install pyenv +% git clone https://github.com/momo-lab/xxenv-latest.git "$(pyenv root)"/plugins/xxenv-latest +% cd appmap-python +% pyenv latest local 3.{9,6,7,8} +% for v in 3.{9,6,7,8}; do pyenv latest install $v; done +% poetry run tox +``` +## Code Coverage +[coverage](https://coverage.readthedocs.io/) for coverage: +``` +% cd appmap-python +% poetry run coverage run -m pytest +% poetry run coverage html +% open htmlcov/index.html +``` + +%prep +%autosetup -n appmap-1.15.1 + +%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-appmap -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot - 1.15.1-1 +- Package Spec generated -- cgit v1.2.3