diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:15:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 07:15:40 +0000 |
| commit | e794b73edb9ed0f03edd4afe5f89cfed8654f807 (patch) | |
| tree | 737d5f81d5b052bb75b2d0c8189542588ca95498 | |
| parent | a923d7141870035619d36dcf92dcfed1de389733 (diff) | |
automatic import of python-pytz
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-pytz.spec | 186 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 188 insertions, 0 deletions
@@ -0,0 +1 @@ +/pytz-2023.3.tar.gz diff --git a/python-pytz.spec b/python-pytz.spec new file mode 100644 index 0000000..80e9856 --- /dev/null +++ b/python-pytz.spec @@ -0,0 +1,186 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pytz +Version: 2023.3 +Release: 1 +Summary: World timezone definitions, modern and historical +License: MIT +URL: http://pythonhosted.org/pytz +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5e/32/12032aa8c673ee16707a9b6cdda2b09c0089131f35af55d443b6a9c69c1d/pytz-2023.3.tar.gz +BuildArch: noarch + + +%description +Introduction +~~~~~~~~~~~~ +pytz brings the Olson tz database into Python. This library allows +accurate and cross platform timezone calculations using Python 2.4 +or higher. It also solves the issue of ambiguous times at the end +of daylight saving time, which you can read more about in the Python +Library Reference (``datetime.tzinfo``). +Almost all of the Olson timezones are supported. + Projects using Python 3.9 or later should be using the support + now included as part of the standard library, and third party + packages work with it such as `tzdata <https://pypi.org/project/tzdata/>`_. + pytz offers no advantages beyond backwards compatibility with + code written for earlier versions of Python. + This library differs from the documented Python API for + tzinfo implementations; if you want to create local wallclock + times you need to use the ``localize()`` method documented in this + document. In addition, if you perform date arithmetic on local + times that cross DST boundaries, the result may be in an incorrect + timezone (ie. subtract 1 minute from 2002-10-27 1:00 EST and you get + 2002-10-27 0:59 EST instead of the correct 2002-10-27 1:59 EDT). A + ``normalize()`` method is provided to correct this. Unfortunately these + issues cannot be resolved without modifying the Python datetime + implementation (see PEP-431). +Installation +~~~~~~~~~~~~ +This package can either be installed using ``pip`` or from a tarball using the +standard Python distutils. +If you are installing using ``pip``, you don't need to download anything as the +latest version will be downloaded for you from PyPI:: + pip install pytz +If you are installing from a tarball, run the following command as an +administrative user:: + python setup.py install +pytz for Enterprise +~~~~~~~~~~~~~~~~~~~ +Available as part of the Tidelift Subscription. +The maintainers of pytz and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytz?utm_source=pypi-pytz&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_. +Example & Usage +~~~~~~~~~~~~~~~ + +%package -n python3-pytz +Summary: World timezone definitions, modern and historical +Provides: python-pytz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pytz +Introduction +~~~~~~~~~~~~ +pytz brings the Olson tz database into Python. This library allows +accurate and cross platform timezone calculations using Python 2.4 +or higher. It also solves the issue of ambiguous times at the end +of daylight saving time, which you can read more about in the Python +Library Reference (``datetime.tzinfo``). +Almost all of the Olson timezones are supported. + Projects using Python 3.9 or later should be using the support + now included as part of the standard library, and third party + packages work with it such as `tzdata <https://pypi.org/project/tzdata/>`_. + pytz offers no advantages beyond backwards compatibility with + code written for earlier versions of Python. + This library differs from the documented Python API for + tzinfo implementations; if you want to create local wallclock + times you need to use the ``localize()`` method documented in this + document. In addition, if you perform date arithmetic on local + times that cross DST boundaries, the result may be in an incorrect + timezone (ie. subtract 1 minute from 2002-10-27 1:00 EST and you get + 2002-10-27 0:59 EST instead of the correct 2002-10-27 1:59 EDT). A + ``normalize()`` method is provided to correct this. Unfortunately these + issues cannot be resolved without modifying the Python datetime + implementation (see PEP-431). +Installation +~~~~~~~~~~~~ +This package can either be installed using ``pip`` or from a tarball using the +standard Python distutils. +If you are installing using ``pip``, you don't need to download anything as the +latest version will be downloaded for you from PyPI:: + pip install pytz +If you are installing from a tarball, run the following command as an +administrative user:: + python setup.py install +pytz for Enterprise +~~~~~~~~~~~~~~~~~~~ +Available as part of the Tidelift Subscription. +The maintainers of pytz and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytz?utm_source=pypi-pytz&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_. +Example & Usage +~~~~~~~~~~~~~~~ + +%package help +Summary: Development documents and examples for pytz +Provides: python3-pytz-doc +%description help +Introduction +~~~~~~~~~~~~ +pytz brings the Olson tz database into Python. This library allows +accurate and cross platform timezone calculations using Python 2.4 +or higher. It also solves the issue of ambiguous times at the end +of daylight saving time, which you can read more about in the Python +Library Reference (``datetime.tzinfo``). +Almost all of the Olson timezones are supported. + Projects using Python 3.9 or later should be using the support + now included as part of the standard library, and third party + packages work with it such as `tzdata <https://pypi.org/project/tzdata/>`_. + pytz offers no advantages beyond backwards compatibility with + code written for earlier versions of Python. + This library differs from the documented Python API for + tzinfo implementations; if you want to create local wallclock + times you need to use the ``localize()`` method documented in this + document. In addition, if you perform date arithmetic on local + times that cross DST boundaries, the result may be in an incorrect + timezone (ie. subtract 1 minute from 2002-10-27 1:00 EST and you get + 2002-10-27 0:59 EST instead of the correct 2002-10-27 1:59 EDT). A + ``normalize()`` method is provided to correct this. Unfortunately these + issues cannot be resolved without modifying the Python datetime + implementation (see PEP-431). +Installation +~~~~~~~~~~~~ +This package can either be installed using ``pip`` or from a tarball using the +standard Python distutils. +If you are installing using ``pip``, you don't need to download anything as the +latest version will be downloaded for you from PyPI:: + pip install pytz +If you are installing from a tarball, run the following command as an +administrative user:: + python setup.py install +pytz for Enterprise +~~~~~~~~~~~~~~~~~~~ +Available as part of the Tidelift Subscription. +The maintainers of pytz and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. `Learn more. <https://tidelift.com/subscription/pkg/pypi-pytz?utm_source=pypi-pytz&utm_medium=referral&utm_campaign=enterprise&utm_term=repo>`_. +Example & Usage +~~~~~~~~~~~~~~~ + +%prep +%autosetup -n pytz-2023.3 + +%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-pytz -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2023.3-1 +- Package Spec generated @@ -0,0 +1 @@ +fe54c8f8a1544b4e78b523b264ab071b pytz-2023.3.tar.gz |
