%global _empty_manifest_terminate_build 0 Name: python-timeless Version: 0.2.7 Release: 1 Summary: Datetime for people in a hurry. License: MIT URL: https://github.com/ericmiguel/timeless Source0: https://mirrors.aliyun.com/pypi/web/packages/92/71/5b2f738293e45cdfbe05cdef36ece575237055864d5fb90e5bd159e2b502/timeless-0.2.7.tar.gz BuildArch: noarch Requires: python3-dateutil Requires: python3-tzdata Requires: python3-pandas Requires: python3-typing-extensions Requires: python3-backports-zoneinfo %description # Timeless - a datetime toolkit for people in a hurry. **Timeless** sits on sholders of giants to provide a simple and easy to use datetime toolkit. Simple date ranges, datetime operations and just one import. This package is a work in progress and it was created as a study object. ## 🧠 Features - ✔️ very simple API - ✔️ minimal code to get things done - ✔️ easy use with other packages - ✔️ just one import - ✔️ few dependencies ## 📦 Installation ```bash pip install timeless ``` ## 📝 Why Timeless? It provides a simple API, heavily inspired by [Pendulum](https://github.com/sdispater/pendulum). I love Pendulum, although since last year (maybe 2 years) it doesn't seem to be actively maintained. If you like Pendulum, you will like Timeless. If you want a easy to adopt, integrate and expand package, you will like Timeless. ## 💻 Sample usage Timeless use two main concepts: `Datetime` and `Period`. A datetime is a point in Time, and a Period is a duration. Timeless doesn`t differentiate between datetime and date objects. All datetimes are assumed to be in the UTC+00:00 timezone if any other timezone isn`t specified. ```python import timeless start = timeless.datetime(1900, 1, 1, zone="UTC") end = start.add(years=1) end.subtract(months=1) start.set(year=2099, month=2, day=26, hour=5, zone="America/Sao_Paulo") start.is_past() # True start.is_future() # False start.set(year=2099).is_future() # True ``` ## 📜 Docs The docs are under development, but it's (very) early stage is already [available](https://ericmiguel.github.io/timeless/). ## 🏗️ Development Timeless relies on [Poetry](https://github.com/python-poetry/poetry). Install the Python dependencies with: ```bash poetry install ``` ## ⚗️ Testing ```bash poetry run pytest --cov=timeless tests/ ``` %package -n python3-timeless Summary: Datetime for people in a hurry. Provides: python-timeless BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-timeless # Timeless - a datetime toolkit for people in a hurry. **Timeless** sits on sholders of giants to provide a simple and easy to use datetime toolkit. Simple date ranges, datetime operations and just one import. This package is a work in progress and it was created as a study object. ## 🧠 Features - ✔️ very simple API - ✔️ minimal code to get things done - ✔️ easy use with other packages - ✔️ just one import - ✔️ few dependencies ## 📦 Installation ```bash pip install timeless ``` ## 📝 Why Timeless? It provides a simple API, heavily inspired by [Pendulum](https://github.com/sdispater/pendulum). I love Pendulum, although since last year (maybe 2 years) it doesn't seem to be actively maintained. If you like Pendulum, you will like Timeless. If you want a easy to adopt, integrate and expand package, you will like Timeless. ## 💻 Sample usage Timeless use two main concepts: `Datetime` and `Period`. A datetime is a point in Time, and a Period is a duration. Timeless doesn`t differentiate between datetime and date objects. All datetimes are assumed to be in the UTC+00:00 timezone if any other timezone isn`t specified. ```python import timeless start = timeless.datetime(1900, 1, 1, zone="UTC") end = start.add(years=1) end.subtract(months=1) start.set(year=2099, month=2, day=26, hour=5, zone="America/Sao_Paulo") start.is_past() # True start.is_future() # False start.set(year=2099).is_future() # True ``` ## 📜 Docs The docs are under development, but it's (very) early stage is already [available](https://ericmiguel.github.io/timeless/). ## 🏗️ Development Timeless relies on [Poetry](https://github.com/python-poetry/poetry). Install the Python dependencies with: ```bash poetry install ``` ## ⚗️ Testing ```bash poetry run pytest --cov=timeless tests/ ``` %package help Summary: Development documents and examples for timeless Provides: python3-timeless-doc %description help # Timeless - a datetime toolkit for people in a hurry. **Timeless** sits on sholders of giants to provide a simple and easy to use datetime toolkit. Simple date ranges, datetime operations and just one import. This package is a work in progress and it was created as a study object. ## 🧠 Features - ✔️ very simple API - ✔️ minimal code to get things done - ✔️ easy use with other packages - ✔️ just one import - ✔️ few dependencies ## 📦 Installation ```bash pip install timeless ``` ## 📝 Why Timeless? It provides a simple API, heavily inspired by [Pendulum](https://github.com/sdispater/pendulum). I love Pendulum, although since last year (maybe 2 years) it doesn't seem to be actively maintained. If you like Pendulum, you will like Timeless. If you want a easy to adopt, integrate and expand package, you will like Timeless. ## 💻 Sample usage Timeless use two main concepts: `Datetime` and `Period`. A datetime is a point in Time, and a Period is a duration. Timeless doesn`t differentiate between datetime and date objects. All datetimes are assumed to be in the UTC+00:00 timezone if any other timezone isn`t specified. ```python import timeless start = timeless.datetime(1900, 1, 1, zone="UTC") end = start.add(years=1) end.subtract(months=1) start.set(year=2099, month=2, day=26, hour=5, zone="America/Sao_Paulo") start.is_past() # True start.is_future() # False start.set(year=2099).is_future() # True ``` ## 📜 Docs The docs are under development, but it's (very) early stage is already [available](https://ericmiguel.github.io/timeless/). ## 🏗️ Development Timeless relies on [Poetry](https://github.com/python-poetry/poetry). Install the Python dependencies with: ```bash poetry install ``` ## ⚗️ Testing ```bash poetry run pytest --cov=timeless tests/ ``` %prep %autosetup -n timeless-0.2.7 %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-timeless -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 0.2.7-1 - Package Spec generated