forked from pool/python-Delorean
- Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Delorean?expand=0&rev=13
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
Delorean-1.0.0.tar.gz
Normal file
3
Delorean-1.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fe67786e12338523848bec5588a658c4d425e12d53eb51cfef870bec8f576134
|
||||
size 18988
|
||||
73
python-Delorean.changes
Normal file
73
python-Delorean.changes
Normal file
@@ -0,0 +1,73 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 5 15:20:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 17 15:10:01 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- do not require python-mock for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 5 09:52:06 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Format with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 5 01:08:32 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Trim bias and hopes from description. Use noun phrase for summary.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:47:13 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Remove superfluous devel dependency for noarch package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 15:25:07 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
- Update to version 1.0.0
|
||||
+ This release cleans up a lot of older code and makes some small modifications to the `Delorean` API to make it more
|
||||
Pythonic. 1.0.0 includes support for humanizing a `Delorean` object, as well as outputing a localized string
|
||||
representing the `Delorean` object.
|
||||
+ This change introduces the following breaking changes:
|
||||
* `Delorean.epoch` is a property, not a function.
|
||||
* `Delorean.midnight` is a property, not a function.
|
||||
* `Delorean.naive` is a property, not a function.
|
||||
* `Delorean.timezone` is a property, not a function.
|
||||
+ delorean/dates.py
|
||||
* `is_datetime_naive()` no longer returns True when dt is None
|
||||
* `localize()` works with pytz tzinfo objects
|
||||
* `normalize()` works with pytz tzinfo objects
|
||||
* `Delorean.__init__()` accepts tzinfo objects as input to timezone
|
||||
* `Delorean.timezone()` is now a property
|
||||
* Added suport for humanizing a `Delorean` object
|
||||
* Added support for localizing a `Delorean` object for string output
|
||||
+ delorean/interface.py
|
||||
* `parse()` understands `dateutil.tz.tzoffset`, `datetutil.tz.tzlocal` and `dateutil.tz.tzutc` and converts those tzinfo
|
||||
objects into pytz based tzinfo objects. This allows `parse()` to return a `Delorean` object with a `pytz.FixedOffset`
|
||||
timezone attached to it instead of returning a `Delorean` object converted to UTC
|
||||
- Implement single-spec version
|
||||
- Complete spec file rewrite
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 13:05:39 UTC 2016 - tbechtold@suse.com
|
||||
|
||||
- Require python-python-dateutil. package was renamed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 3 07:50:48 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Don't run testsuite, there is none
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 25 09:50:39 UTC 2013 - speilicke@suse.com
|
||||
|
||||
- Add LICENSE.txt and README.rst
|
||||
- Add runtime dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 25 09:06:58 UTC 2013 - prusnak@opensuse.org
|
||||
|
||||
- created package (version 0.2.0)
|
||||
|
||||
72
python-Delorean.spec
Normal file
72
python-Delorean.spec
Normal file
@@ -0,0 +1,72 @@
|
||||
#
|
||||
# spec file for package python-Delorean
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-Delorean
|
||||
Version: 1.0.0
|
||||
Release: 0
|
||||
Summary: Python library for manipulating datetimes
|
||||
License: MIT
|
||||
URL: https://github.com/myusuf3/delorean
|
||||
Source: https://files.pythonhosted.org/packages/source/D/Delorean/Delorean-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Babel >= 2.1.1
|
||||
Requires: python-humanize >= 0.5.1
|
||||
Requires: python-python-dateutil >= 2.4.2
|
||||
Requires: python-pytz >= 2015.7
|
||||
Requires: python-tzlocal >= 1.2
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Babel >= 2.1.1}
|
||||
BuildRequires: %{python_module humanize >= 0.5.1}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil >= 2.4.2}
|
||||
BuildRequires: %{python_module pytz >= 2015.7}
|
||||
BuildRequires: %{python_module tzlocal >= 1.2}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Delorean is a library for clearing up the inconvenient truths that
|
||||
arise dealing with datetimes in Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n Delorean-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# https://github.com/myusuf3/delorean/issues/113
|
||||
sed -i 's:import mock:from unittest import mock:' tests/delorean_tests.py
|
||||
%pytest tests/delorean_tests.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE.txt
|
||||
%{python_sitelib}/delorean
|
||||
%{python_sitelib}/[Dd]elorean-%{version}*info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user