summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 18:38:23 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 18:38:23 +0000
commitb69d84b47b6610f8e5c7833851267e6def3091e1 (patch)
tree47266b120a43b843f7bc7020f1dee961ef2aa85a
parent911acbd168f45b7c23ebff181f52b392ad97f311 (diff)
automatic import of python-epiweeks
-rw-r--r--.gitignore1
-rw-r--r--python-epiweeks.spec333
-rw-r--r--sources1
3 files changed, 335 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..68914c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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 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
+
+<!-- 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 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
+
+<!-- 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 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
+
+<!-- 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
diff --git a/sources b/sources
new file mode 100644
index 0000000..3f72b30
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cb800fab6b15d450adc33bdaaf42639d epiweeks-2.1.4.tar.gz