diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:38:23 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 18:38:23 +0000 |
commit | b69d84b47b6610f8e5c7833851267e6def3091e1 (patch) | |
tree | 47266b120a43b843f7bc7020f1dee961ef2aa85a | |
parent | 911acbd168f45b7c23ebff181f52b392ad97f311 (diff) |
automatic import of python-epiweeks
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-epiweeks.spec | 333 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 335 insertions, 0 deletions
@@ -0,0 +1 @@ +/epiweeks-2.1.4.tar.gz diff --git a/python-epiweeks.spec b/python-epiweeks.spec new file mode 100644 index 0000000..0bc8e33 --- /dev/null +++ b/python-epiweeks.spec @@ -0,0 +1,333 @@ +%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 + +<!-- start description --> + +A Python package to calculate epidemiological weeks using the US CDC (MMWR) and +ISO week numbering systems. + +<!-- end description --> + +[][build] +[][coverage] +[][quality] +[][docs] +[][downloads] +[][pypi-version] +[][conda-version] +[][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 + +<!-- start summary --> + +## 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 +``` + +<!-- end summary --> + +## Documentation + +Please see <https://epiweeks.readthedocs.io> 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 + +<!-- start description --> + +A Python package to calculate epidemiological weeks using the US CDC (MMWR) and +ISO week numbering systems. + +<!-- end description --> + +[][build] +[][coverage] +[][quality] +[][docs] +[][downloads] +[][pypi-version] +[][conda-version] +[][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 + +<!-- start summary --> + +## 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 +``` + +<!-- end summary --> + +## Documentation + +Please see <https://epiweeks.readthedocs.io> 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 + +<!-- start description --> + +A Python package to calculate epidemiological weeks using the US CDC (MMWR) and +ISO week numbering systems. + +<!-- end description --> + +[][build] +[][coverage] +[][quality] +[][docs] +[][downloads] +[][pypi-version] +[][conda-version] +[][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 + +<!-- start summary --> + +## 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 +``` + +<!-- end summary --> + +## Documentation + +Please see <https://epiweeks.readthedocs.io> 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 +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.4-1 +- Package Spec generated @@ -0,0 +1 @@ +cb800fab6b15d450adc33bdaaf42639d epiweeks-2.1.4.tar.gz |