## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name plotnine # Use forge macros to pull from GitHub %global forgeurl https://github.com/has2k1/plotnine # Run selected tests %bcond tests 1 # Run all tests %bcond all_tests 0 Name: python-%{pypi_name} Version: 0.13.0 Release: %{autorelease} Summary: Implementation of a grammar of graphics in Python, based on ggplot2 %forgemeta BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} # BSD-3-Clause applies to plotnine/themes/seaborn_rcmod.py # GPL-2.0-only applies to plotnine/themes/theme_tufte.py License: MIT AND BSD-3-Clause AND GPL-2.0-only URL: https://plotnine.readthedocs.io/en/stable Source0: %forgesource %global _description %{expand: Implementation of a grammar of graphics in Python, based on ggplot2. The grammar allows users to compose plots by explicitly mapping data to the visual objects that make up the plot. Plotting with a grammar is powerful, it makes custom (and otherwise complex) plots easy to think about and then create, while the simple plots remain simple. Welcome to Plot 9 from Outerspace 🪐 🦇} %description %_description %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-geopandas BuildRequires: python3-adjustText BuildRequires: comic-neue-fonts BuildRequires: git-core %if %{with tests} BuildRequires: python3-pytest BuildRequires: python3-shapely %endif %description -n python3-%{pypi_name} %_description %pyproject_extras_subpkg -n python3-%{pypi_name} extra %prep %forgeautosetup -p1 -S git # Disable coverage in pytest sed -i -e 's/--cov=plotnine --cov-report=xml //' pyproject.toml git add --all git commit -m '[Fedora]: Disable linters' git tag v%{version} %generate_buildrequires %pyproject_buildrequires -x extra %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l %{pypi_name} %check %if %{with tests} %if %{without all_tests} # For a a more readable input to %%pytest # Most tests fail image comparison for unknown reasons. # To the naked eye the images appear identical. # For test scripts where all or almost all tests fail, # we ignore the entire test i="${i-}${i+ }--ignore tests/test_annotation_logticks.py" i="${i-}${i+ }--ignore tests/test_coords.py" i="${i-}${i+ }--ignore tests/test_facets.py" i="${i-}${i+ }--ignore tests/test_geom_boxplot.py" i="${i-}${i+ }--ignore tests/test_geom_density.py" i="${i-}${i+ }--ignore tests/test_geom_freqpoly.py" i="${i-}${i+ }--ignore tests/test_geom_map.py" i="${i-}${i+ }--ignore tests/test_geom_text_label.py" i="${i-}${i+ }--ignore tests/test_lint_and_format.py" i="${i-}${i+ }--ignore tests/test_scale_labelling.py" i="${i-}${i+ }--ignore tests/test_stat_ecdf.py" # For test scripts where some tests fail we list those tests # or a glob matching those k="${k-}${k+ and }not test_stat_bin_2d" k="${k-}${k+ and }not test_geom_crossbar" k="${k-}${k+ and }not test_labeller_cols_both_wrap" k="${k-}${k+ and }not test_labeller_cols_both_grid" k="${k-}${k+ and }not test_labeller_towords" k="${k-}${k+ and }not test_aslabeller_dict_0tag" k="${k-}${k+ and }not test_uneven_num_of_lines" k="${k-}${k+ and }not test_bar_count" k="${k-}${k+ and }not test_histogram_count" k="${k-}${k+ and }not test_stat_count_int" k="${k-}${k+ and }not test_stat_count_float" k="${k-}${k+ and }not test_discrete_y" k="${k-}${k+ and }not test_contours" k="${k-}${k+ and }not test_arrow" k="${k-}${k+ and }not test_arrow_facets" k="${k-}${k+ and }not test_line" k="${k-}${k+ and }not test_square" k="${k-}${k+ and }not test_rectangle" k="${k-}${k+ and }not test_rect_aesthetics" k="${k-}${k+ and }not test_tile_aesthetics" k="${k-}${k+ and }not test_area_aesthetics" k="${k-}${k+ and }not test_scale_area_coordatalip" k="${k-}${k+ and }not test_legend_fill_ratio" k="${k-}${k+ and }not test_nudge" k="${k-}${k+ and }not test_stack_non_linear_scale" k="${k-}${k+ and }not test_dodge_preserve_single_text" k="${k-}${k+ and }not test_dodge2" k="${k-}${k+ and }not test_dodge2_varwidth" k="${k-}${k+ and }not test_scalars" k="${k-}${k+ and }not test_series_labelling" k="${k-}${k+ and }not test_save_as_pdf_pages_closes_plots" k="${k-}${k+ and }not test_multiple_aesthetics" k="${k-}${k+ and }not test_missing_data_discrete_scale" k="${k-}${k+ and }not test_datetime_scale_limits" k="${k-}${k+ and }not test_args" k="${k-}${k+ and }not test_mean_sdl" k="${k-}${k+ and }not test_theme" k="${k-}${k+ and }not test_default" k="${k-}${k+ and }not test_legend" k="${k-}${k+ and }not test_turn_off_guide" k="${k-}${k+ and }not test_facet_grid" k="${k-}${k+ and }not test_facet_wrap" k="${k-}${k+ and }not test_plot_margin_protruding_axis_text" k="${k-}${k+ and }not test_colorbar_frame" k="${k-}${k+ and }not test_different_colorbar_themes" k="${k-}${k+ and }not test_inside_legend_90pct_top_right" # Test failing image comparison since version 0.13.0. k="${k-}${k+ and }not test_discrete_y" k="${k-}${k+ and }not test_midpoint" k="${k-}${k+ and }not test_line" k="${k-}${k+ and }not test_rect_aesthetics" k="${k-}${k+ and }not test_tile_aesthetics" k="${k-}${k+ and }not test_legend_fill_ratio" k="${k-}${k+ and }not test_args" %endif %pytest -v ${i-} ${k+-k }"${k-}" %else %pyproject_check_import %endif %files -n python3-plotnine -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Fri Mar 01 2024 Sandro - 0.13.0-4 - Extra extra ... the towncrier calls. * Fri Mar 01 2024 Sandro - 0.13.0-3 - Refactor test exclusion * Fri Mar 01 2024 Sandro - 0.13.0-2 - Disable failing tests * Tue Feb 20 2024 Packit - 0.13.0-1 - [packit] 0.13.0 upstream release - Resolves rhbz#2265128 * Fri Jan 26 2024 Fedora Release Engineering - 0.12.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.12.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jan 04 2024 Benjamin A. Beasley - 0.12.4-5 - Assert a license file is automatically handled; don’t package a duplicate * Fri Nov 17 2023 Sandro - 0.12.4-4 - Review exclusion list * Fri Nov 17 2023 Sandro - 0.12.4-3 - Use modular, expandable test exclusion syntax * Thu Nov 16 2023 Sandro - 0.12.4-2 - Tag build for setupstools_scm * Thu Nov 16 2023 Sandro - 0.12.4-1 - Update to 0.12.4 (RHBZ#2248134) * Thu Nov 16 2023 Sandro - 0.12.3-4 - Add Packit config * Thu Nov 16 2023 Sandro - 0.12.3-2 - Use forge macros and pull from GitHub * Sun Sep 03 2023 Sandro - 0.12.3-1 - Update to 0.12.3 (RHBZ#2224511) * Thu Jul 20 2023 Elliott Sales de Andrade - 0.12.1-2 - Rebuild for Python 3.12b4 * Sun Jul 02 2023 Sandro - 0.12.1-1 - Update to 0.12.1 (RHBZ#2196634) * Wed Apr 19 2023 Sandro - 0.10.1-8 - Drop '-S git' from %%autosetup since we have no patches * Tue Apr 18 2023 Sandro - 0.10.1-7 - Rebuild for updated python-mizani * Fri Jan 20 2023 Fedora Release Engineering - 0.10.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 19 2022 Elliott Sales de Andrade - 0.10.1-5 - Drop support for i686 * Tue Nov 01 2022 Sandro - 0.10.1-4 - Fix tests for f36 - Remove test files causing ImportError - Disable one additional test in f36 * Mon Oct 24 2022 Sandro - 0.10.1-3 - Initial release (RHBZ#2133439) * Mon Oct 24 2022 Sandro - 0.10.1-2 - amend! Initial release (BZ#2133439) * Mon Oct 24 2022 Sandro - 0.10.1-1 - Initial release (BZ#2133439) ## END: Generated by rpmautospec