%global _empty_manifest_terminate_build 0 Name: python-epiweeks Version: 2.1.4 Release: 1 Summary: Epidemiological weeks calculation based on the US CDC (MMWR) and ISO week numbering systems License: MIT URL: https://github.com/mhalshehri/epiweeks Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/a5/bcfcc132544cb8670995031e6998e60db95a0a64b5b39e17d5e78b918655/epiweeks-2.1.4.tar.gz BuildArch: noarch %description # epiweeks A Python package to calculate epidemiological weeks using the US CDC (MMWR) and ISO week numbering systems. [![Build Status](https://img.shields.io/github/workflow/status/mhalshehri/epiweeks/Release)][build] [![Coverage Status](https://img.shields.io/badge/coverage-100%25-success)][coverage] [![Code Quality](https://img.shields.io/codefactor/grade/github/mhalshehri/epiweeks/main?&label=codefactor)][quality] [![Docs Status](https://img.shields.io/readthedocs/epiweeks/stable)][docs] [![PyPI Downloads](https://img.shields.io/pypi/dm/epiweeks?color=blue)][downloads] [![PyPI Version](https://img.shields.io/pypi/v/epiweeks)][pypi-version] [![Conda Version](https://img.shields.io/conda/vn/bioconda/epiweeks)][conda-version] [![Package License](https://img.shields.io/github/license/mhalshehri/epiweeks)][license] [build]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [coverage]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [quality]: https://www.codefactor.io/repository/github/mhalshehri/epiweeks/overview/main [docs]: https://epiweeks.readthedocs.io [downloads]: https://pypistats.org/packages/epiweeks [pypi-version]: https://pypi.python.org/pypi/epiweeks [conda-version]: https://anaconda.org/bioconda/epiweeks [license]: https://github.com/mhalshehri/epiweeks/blob/main/LICENSE ## Features - Support for both the US CDC (MMWR) and ISO week numbering systems. - Accurate and tested calculations. - Intuitive, clean, and easy-to-use interface. - Calculation of the start and end dates of weeks. - Iteration of year's weeks or week's dates. - Rich comparison between weeks. - Logical operations for weeks (addition, subtraction and containment). - Validation of input data. - Works on Python 3.6+ with zero dependencies. - Thoroughly tested with 100% test coverage. ## Installation To install using `pip`, run: ```shell pip install epiweeks ``` To install using `conda`, run: ```shell conda install -c bioconda epiweeks ``` ## Basic Usage ```python from epiweeks import Week, Year week = Week(2019, 1) print(week.enddate()) # 2019-01-05 for week in Year(2019).iterweeks(): print(week.enddate()) # 2019-01-05 # 2019-01-12 # ... # 2019-12-21 # 2019-12-28 ``` ## Documentation Please see for full documentation of this package, including background, more usage examples and API reference. ## License This project is licensed under the terms of the MIT license. %package -n python3-epiweeks Summary: Epidemiological weeks calculation based on the US CDC (MMWR) and ISO week numbering systems Provides: python-epiweeks BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-epiweeks # epiweeks A Python package to calculate epidemiological weeks using the US CDC (MMWR) and ISO week numbering systems. [![Build Status](https://img.shields.io/github/workflow/status/mhalshehri/epiweeks/Release)][build] [![Coverage Status](https://img.shields.io/badge/coverage-100%25-success)][coverage] [![Code Quality](https://img.shields.io/codefactor/grade/github/mhalshehri/epiweeks/main?&label=codefactor)][quality] [![Docs Status](https://img.shields.io/readthedocs/epiweeks/stable)][docs] [![PyPI Downloads](https://img.shields.io/pypi/dm/epiweeks?color=blue)][downloads] [![PyPI Version](https://img.shields.io/pypi/v/epiweeks)][pypi-version] [![Conda Version](https://img.shields.io/conda/vn/bioconda/epiweeks)][conda-version] [![Package License](https://img.shields.io/github/license/mhalshehri/epiweeks)][license] [build]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [coverage]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [quality]: https://www.codefactor.io/repository/github/mhalshehri/epiweeks/overview/main [docs]: https://epiweeks.readthedocs.io [downloads]: https://pypistats.org/packages/epiweeks [pypi-version]: https://pypi.python.org/pypi/epiweeks [conda-version]: https://anaconda.org/bioconda/epiweeks [license]: https://github.com/mhalshehri/epiweeks/blob/main/LICENSE ## Features - Support for both the US CDC (MMWR) and ISO week numbering systems. - Accurate and tested calculations. - Intuitive, clean, and easy-to-use interface. - Calculation of the start and end dates of weeks. - Iteration of year's weeks or week's dates. - Rich comparison between weeks. - Logical operations for weeks (addition, subtraction and containment). - Validation of input data. - Works on Python 3.6+ with zero dependencies. - Thoroughly tested with 100% test coverage. ## Installation To install using `pip`, run: ```shell pip install epiweeks ``` To install using `conda`, run: ```shell conda install -c bioconda epiweeks ``` ## Basic Usage ```python from epiweeks import Week, Year week = Week(2019, 1) print(week.enddate()) # 2019-01-05 for week in Year(2019).iterweeks(): print(week.enddate()) # 2019-01-05 # 2019-01-12 # ... # 2019-12-21 # 2019-12-28 ``` ## Documentation Please see for full documentation of this package, including background, more usage examples and API reference. ## License This project is licensed under the terms of the MIT license. %package help Summary: Development documents and examples for epiweeks Provides: python3-epiweeks-doc %description help # epiweeks A Python package to calculate epidemiological weeks using the US CDC (MMWR) and ISO week numbering systems. [![Build Status](https://img.shields.io/github/workflow/status/mhalshehri/epiweeks/Release)][build] [![Coverage Status](https://img.shields.io/badge/coverage-100%25-success)][coverage] [![Code Quality](https://img.shields.io/codefactor/grade/github/mhalshehri/epiweeks/main?&label=codefactor)][quality] [![Docs Status](https://img.shields.io/readthedocs/epiweeks/stable)][docs] [![PyPI Downloads](https://img.shields.io/pypi/dm/epiweeks?color=blue)][downloads] [![PyPI Version](https://img.shields.io/pypi/v/epiweeks)][pypi-version] [![Conda Version](https://img.shields.io/conda/vn/bioconda/epiweeks)][conda-version] [![Package License](https://img.shields.io/github/license/mhalshehri/epiweeks)][license] [build]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [coverage]: https://github.com/mhalshehri/epiweeks/actions/workflows/release.yml [quality]: https://www.codefactor.io/repository/github/mhalshehri/epiweeks/overview/main [docs]: https://epiweeks.readthedocs.io [downloads]: https://pypistats.org/packages/epiweeks [pypi-version]: https://pypi.python.org/pypi/epiweeks [conda-version]: https://anaconda.org/bioconda/epiweeks [license]: https://github.com/mhalshehri/epiweeks/blob/main/LICENSE ## Features - Support for both the US CDC (MMWR) and ISO week numbering systems. - Accurate and tested calculations. - Intuitive, clean, and easy-to-use interface. - Calculation of the start and end dates of weeks. - Iteration of year's weeks or week's dates. - Rich comparison between weeks. - Logical operations for weeks (addition, subtraction and containment). - Validation of input data. - Works on Python 3.6+ with zero dependencies. - Thoroughly tested with 100% test coverage. ## Installation To install using `pip`, run: ```shell pip install epiweeks ``` To install using `conda`, run: ```shell conda install -c bioconda epiweeks ``` ## Basic Usage ```python from epiweeks import Week, Year week = Week(2019, 1) print(week.enddate()) # 2019-01-05 for week in Year(2019).iterweeks(): print(week.enddate()) # 2019-01-05 # 2019-01-12 # ... # 2019-12-21 # 2019-12-28 ``` ## Documentation Please see for full documentation of this package, including background, more usage examples and API reference. ## License This project is licensed under the terms of the MIT license. %prep %autosetup -n epiweeks-2.1.4 %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-epiweeks -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Sun Apr 23 2023 Python_Bot - 2.1.4-1 - Package Spec generated