17
0

33 Commits

Author SHA256 Message Date
201e867ad8 Accepting request 1278583 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1278583
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=15
2025-05-20 15:04:35 +00:00
1054cf80e8 - Update to 10.0.1
* **Moved to Codeberg:** https://codeberg.org/nielsenb-jf/aniso8601
  * :code:`year_range_check` will only shift 0s in from the left for
    year strings of length 2. Since :code:`parse_date` throws an
    :code:`IsoFormatError` for year strings of lengths other than 2 or
    4 this shouldn't significantly change any public API consumers.
  * Specify changelog location in :code:`setup.py`
  * Change to `Woodpecker CI <https://woodpecker-ci.org/>`_
  * Add a CI pipeline to test builders when a tag is pushed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=30
2025-05-20 10:03:06 +00:00
c454997329 Accepting request 1244781 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1244781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=14
2025-02-10 16:35:24 +00:00
5d123dfa2a - update to 10.0.0:
* Reduced accuracy representations of years when parsing a
    calendar date are now only allowed to be [YY] (see 31)
  * No longer specify a Python interpreter version to Black
  * Cleanup unsupported Pylint configuration options
  * Fix used-before-assignment errors
  * Fix coverage issue caused by unreachable conditional in
    _parse_interval_end

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=28
2025-02-03 13:36:37 +00:00
063975dd9a Accepting request 1136427 from devel:languages:python
- require setuptools

  * Removed NegativeDurationError
    otherwise, used to fix 28
- Only BuildRequire python-mock with Python 2.
- inital commit

OBS-URL: https://build.opensuse.org/request/show/1136427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=13
2024-01-03 13:53:28 +00:00
70cd21ce2f - require setuptools
* Removed NegativeDurationError
    otherwise, used to fix 28
- Only BuildRequire python-mock with Python 2.
- inital commit

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=26
2024-01-03 09:40:52 +00:00
1dbf038bcc Accepting request 1097939 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1097939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=12
2023-07-10 14:40:42 +00:00
395cea9369 Accepting request 1097129 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1097129
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=24
2023-07-10 12:16:28 +00:00
3e142e903b - Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=11
2023-05-24 18:22:37 +00:00
OBS User buildservice-autocommit
19202877c3 Updating link to change in openSUSE:Factory/python-aniso8601 revision 11
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=c1e3f8d74684545f0a77c2fe677b9757
2023-05-24 18:22:37 +00:00
OBS User buildservice-autocommit
9e894dba78 Accepting request 1088741 from devel:languages:python
baserev update by copy to link target

OBS-URL: https://build.opensuse.org/request/show/1088741
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=23
2023-05-24 18:22:37 +00:00
d7ef18948d - Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=22
2023-05-23 22:49:45 +00:00
ca314f216b Accepting request 884807 from devel:languages:python
- Update to 9.0.1:
  * Parsing prescribed durations with only hour and second time components (see PR 14)
  * Parsing prescribed durations with only year and day components
  * Add support for concise interval format (see 27)
  * Add explicit bounds of [000, 366] to day of year component _parse_ordinal_date, this adds the same limits to dates of the format YYYYDDD or YYYY-DDD when using parse_date
  * Add range_check_date, range_check_time, range_check_duration, range_check_repeating_interval, and range_check_timezone range checking class methods to BaseTimeBuilder there are no datetime or non-repeating interval check function as they are made of already checked parts
  * PythonTimeBuilder now calls the appropriate range check functions using the range_check_date, range_check_time, range_check_duration, range_check_repeating_interval, and range_check_timezone methods defined in aniso8601.builders
  * Add range_check_duration to PythonTimeBuilder which calls BaseTimeBuilder.range_check_duration and performs additional checks against maximum timedelta size
  * Add range_check_interval to PythonTimeBuilder which handles building concise dates and performs additional checks against maximum timedelta size
  * Add get_datetime_resolution which behaves like get_time_resolution but accepts a ISO 8601 date time as an argument, return value is a TimeResolution
  * Add exceptions.RangeCheckError as a parent type of all failures in the range check methods, it descends from ValueError
  * Add get_duration_resolution which behaves like other resolution helpers, return value is a DurationResolution
  * Add get_interval_resolution which behaves like other resolution helpers, return value is a IntervalResolution
  * Negative durations now fail at the parse step and simply raise ISOFormatError, calling a PythonTimeBuilder.build_duration directly with a negative duration component will yield an ISOFormatError in the range check
  * Raise DayOutOfBoundsError if calendar day exceeds number of days in calendar month
  * Raise ISOFormatError when date or time string contains extra whitespace
  * Raise ISOFormatError when duration contains multiple duration designators ("P"), or time designators ("T")
  * PythonTimeBuilder.build_duration raises YearOutOfBoundsError, MonthOutOfBoundsError, WeekOutOfBoundsError, HoursOutOfBoundsError, MinutesOutOfBoundsError, or SecondsOutOfBoundsError when a given duration component would result in a timedelta that would exceed the maximum size
  * Raise ISOFormatError if number of delimiters is not exactly 1 in parse_interval
  * Raise ISOFormatError when either part of an interval string before of after the delimiter is empty
  * Raise YearOutOfBoundsError in PythonTimeBuilder.build_interval if an interval with a duration would exceed the maximum or minimum years for Python date objects
  * Simplify parse_date, build_date will now be called with explicit None arguments instead of date components not in the parsed string excluded from the call
  * Change get_date_resolution to call parse_date and return the resolution based on the smallest parsed component
  * Simplify parse_time, build_time will now be called with explicit None arguments instead of date components not in the parsed string excluded from the call
  * Change get_time_resolution to call parse_time and return the resolution based on the smallest parsed component
  * TupleBuilder now builds DateTuple, TimeTuple, DatetimeTuple, DurationTuple, IntervalTuple, RepeatingIntervalTuple and TimezoneTuple namedtuples
  * Simplify parse_duration, build_duration will now be called with explicit None arguments when components of a prescribed duration are not present in the ISO 8601 duration string instead of being excluded from the call
  * Remove unused decimalfraction.find_separator
  * Remove unused PythonTimeBuilder._split_to_microseconds
  * Removed NegativeDurationError 
- Switch %pyunittest macro for running tests.

OBS-URL: https://build.opensuse.org/request/show/884807
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=10
2021-04-14 08:10:52 +00:00
1c9ac12766 - Update to 9.0.1:
* Parsing prescribed durations with only hour and second time components (see PR 14)
  * Parsing prescribed durations with only year and day components
  * Add support for concise interval format (see 27)
  * Add explicit bounds of [000, 366] to day of year component _parse_ordinal_date, this adds the same limits to dates of the format YYYYDDD or YYYY-DDD when using parse_date
  * Add range_check_date, range_check_time, range_check_duration, range_check_repeating_interval, and range_check_timezone range checking class methods to BaseTimeBuilder there are no datetime or non-repeating interval check function as they are made of already checked parts
  * PythonTimeBuilder now calls the appropriate range check functions using the range_check_date, range_check_time, range_check_duration, range_check_repeating_interval, and range_check_timezone methods defined in aniso8601.builders
  * Add range_check_duration to PythonTimeBuilder which calls BaseTimeBuilder.range_check_duration and performs additional checks against maximum timedelta size
  * Add range_check_interval to PythonTimeBuilder which handles building concise dates and performs additional checks against maximum timedelta size
  * Add get_datetime_resolution which behaves like get_time_resolution but accepts a ISO 8601 date time as an argument, return value is a TimeResolution
  * Add exceptions.RangeCheckError as a parent type of all failures in the range check methods, it descends from ValueError
  * Add get_duration_resolution which behaves like other resolution helpers, return value is a DurationResolution
  * Add get_interval_resolution which behaves like other resolution helpers, return value is a IntervalResolution
  * Negative durations now fail at the parse step and simply raise ISOFormatError, calling a PythonTimeBuilder.build_duration directly with a negative duration component will yield an ISOFormatError in the range check
  * Raise DayOutOfBoundsError if calendar day exceeds number of days in calendar month
  * Raise ISOFormatError when date or time string contains extra whitespace
  * Raise ISOFormatError when duration contains multiple duration designators ("P"), or time designators ("T")
  * PythonTimeBuilder.build_duration raises YearOutOfBoundsError, MonthOutOfBoundsError, WeekOutOfBoundsError, HoursOutOfBoundsError, MinutesOutOfBoundsError, or SecondsOutOfBoundsError when a given duration component would result in a timedelta that would exceed the maximum size
  * Raise ISOFormatError if number of delimiters is not exactly 1 in parse_interval
  * Raise ISOFormatError when either part of an interval string before of after the delimiter is empty
  * Raise YearOutOfBoundsError in PythonTimeBuilder.build_interval if an interval with a duration would exceed the maximum or minimum years for Python date objects
  * Simplify parse_date, build_date will now be called with explicit None arguments instead of date components not in the parsed string excluded from the call
  * Change get_date_resolution to call parse_date and return the resolution based on the smallest parsed component
  * Simplify parse_time, build_time will now be called with explicit None arguments instead of date components not in the parsed string excluded from the call
  * Change get_time_resolution to call parse_time and return the resolution based on the smallest parsed component
  * TupleBuilder now builds DateTuple, TimeTuple, DatetimeTuple, DurationTuple, IntervalTuple, RepeatingIntervalTuple and TimezoneTuple namedtuples
  * Simplify parse_duration, build_duration will now be called with explicit None arguments when components of a prescribed duration are not present in the ISO 8601 duration string instead of being excluded from the call
  * Remove unused decimalfraction.find_separator
  * Remove unused PythonTimeBuilder._split_to_microseconds
  * Removed NegativeDurationError 
- Switch %pyunittest macro for running tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=20
2021-04-13 05:51:42 +00:00
6bc401593c Accepting request 868435 from devel:languages:python
- update to 8.1.1:
  * Deprecate running tests with python setup.py tests as the test suite
    support in Setuptools is deprecated
  *  Add version to __init__.py
  * Cleaner reading of README.rst into the long_description field of setup.py
  * Define long_description_content_type as text/x-rst
  * Simplify Sphinx configuration
  * Add compat.is_string method, returns True for str, unicode types, False
    otherwise, used to fix 28

OBS-URL: https://build.opensuse.org/request/show/868435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=9
2021-02-02 13:25:30 +00:00
4d251b63a9 - update to 8.1.1:
* Deprecate running tests with python setup.py tests as the test suite
    support in Setuptools is deprecated
  *  Add version to __init__.py
  * Cleaner reading of README.rst into the long_description field of setup.py
  * Define long_description_content_type as text/x-rst
  * Simplify Sphinx configuration
  * Add compat.is_string method, returns True for str, unicode types, False
    otherwise, used to fix 28

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=18
2021-02-01 17:45:30 +00:00
ae32763ecc Accepting request 857119 from devel:languages:python
- update to 8.1.0:
  * Empty string arguments to get_date_resolution and parse_date now raise ISOFormatError, fixes 26
  * None and non-string arguments to get_date_resolution and parse_date now raise ValueError
  * Empty string arguments to parse_duration now raise ISOFormatError
  * None and non-string arguments to parse_duration now raise ValueError
  * Empty string arguments to parse_interval and parse_repeating_interval now raise ISOFormatError
  * None and non-string arguments to parse_interval and parse_repeating_internval now raise ValueError
  * Empty string arguments to get_time_resolution and parse_time now raise ISOFormatError
  * None and non-string arguments to parse_time now raise ValueError
  * None and non-string arguments to parse_timezone now raise ValueError
  * Empty string arguments to parse_datetime now raise ISOFormatError
  * None and non-string arguments to parse_datetime now raise ValueError
  * Missing delimiter in datetime strings when calling parse_datetime now raises ISOFormatError
  * Missing delimiter in regular and repeating interval strings when calling parse_interval and parse_repeating_interval now raises ISOFormatError
  * get_time_resolution now correctly throws ISOFormatError when a time component has too many characters in a time using ":" as a separator

OBS-URL: https://build.opensuse.org/request/show/857119
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=8
2020-12-21 09:24:11 +00:00
4d0deda204 - update to 8.1.0:
* Empty string arguments to get_date_resolution and parse_date now raise ISOFormatError, fixes 26
  * None and non-string arguments to get_date_resolution and parse_date now raise ValueError
  * Empty string arguments to parse_duration now raise ISOFormatError
  * None and non-string arguments to parse_duration now raise ValueError
  * Empty string arguments to parse_interval and parse_repeating_interval now raise ISOFormatError
  * None and non-string arguments to parse_interval and parse_repeating_internval now raise ValueError
  * Empty string arguments to get_time_resolution and parse_time now raise ISOFormatError
  * None and non-string arguments to parse_time now raise ValueError
  * None and non-string arguments to parse_timezone now raise ValueError
  * Empty string arguments to parse_datetime now raise ISOFormatError
  * None and non-string arguments to parse_datetime now raise ValueError
  * Missing delimiter in datetime strings when calling parse_datetime now raises ISOFormatError
  * Missing delimiter in regular and repeating interval strings when calling parse_interval and parse_repeating_interval now raises ISOFormatError
  * get_time_resolution now correctly throws ISOFormatError when a time component has too many characters in a time using ":" as a separator

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=16
2020-12-20 09:48:51 +00:00
3c1c92e196 Accepting request 796375 from devel:languages:python
- Only BuildRequire python-mock with Python 2.

OBS-URL: https://build.opensuse.org/request/show/796375
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=7
2020-04-23 16:32:47 +00:00
40c4bf9c28 - Only BuildRequire python-mock with Python 2.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=14
2020-04-23 04:40:12 +00:00
96765a2211 Accepting request 733338 from devel:languages:python
- Update to 8.0.0:
  * Handle ',' character as a fractional separator, as required by 4.2.2.4, see PR 12
  * Fix semver usage for prelease version, as required by clause 9

OBS-URL: https://build.opensuse.org/request/show/733338
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=6
2019-09-26 18:42:24 +00:00
Tomáš Chvátal
11368796a5 - Update to 8.0.0:
* Handle ',' character as a fractional separator, as required by 4.2.2.4, see PR 12
  * Fix semver usage for prelease version, as required by clause 9

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=12
2019-09-26 07:55:28 +00:00
7b54d1c982 Accepting request 709370 from devel:languages:python
- Update to 7.0.0
 * Handle all fractional components as an integer number of microseconds,
    eliminating rounding issues

OBS-URL: https://build.opensuse.org/request/show/709370
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=5
2019-06-13 21:02:30 +00:00
e7fbfde94b - Update to 7.0.0
* Handle all fractional components as an integer number of microseconds,
    eliminating rounding issues

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=10
2019-06-12 10:34:55 +00:00
Stephan Kulow
b46cd44e19 Accepting request 683738 from devel:languages:python
- Update to 6.0.0:
  * Remove previously deprecated built in version of relativetimebuilder

OBS-URL: https://build.opensuse.org/request/show/683738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=4
2019-03-11 12:51:38 +00:00
Tomáš Chvátal
54419059e8 - Update to 6.0.0:
* Remove previously deprecated built in version of relativetimebuilder

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=8
2019-03-11 09:46:15 +00:00
d2d0926fc3 Accepting request 682126 from devel:languages:python
- Update to 5.1.0:
  * many changes see CHANGELOG.rst

OBS-URL: https://build.opensuse.org/request/show/682126
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=3
2019-03-06 14:52:14 +00:00
Tomáš Chvátal
06b2ed7032 - Update to 5.1.0:
* many changes see CHANGELOG.rst

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=6
2019-03-06 12:06:11 +00:00
be0006835f Accepting request 653910 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/653910
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=2
2018-12-12 16:24:49 +00:00
642de37796 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=4
2018-12-04 13:13:05 +00:00
cc55222e34 Accepting request 630420 from devel:languages:python
python-aniso8601 dep of  python-Flask-RESTful

OBS-URL: https://build.opensuse.org/request/show/630420
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aniso8601?expand=0&rev=1
2018-08-20 14:21:18 +00:00
d97fc41eff OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=2 2018-08-19 19:33:45 +00:00
6003e96e85 osc copypac from project:home:mimi_vx package:python-aniso8601 revision:3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aniso8601?expand=0&rev=1
2018-08-19 19:29:47 +00:00