Skip to content

Commit

Permalink
Update changes for release
Browse files Browse the repository at this point in the history
Also update version.py and use the version number of this for the tests
  • Loading branch information
niccokunzmann committed Sep 28, 2024
1 parent ca260c8 commit 17dba94
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 30 deletions.
6 changes: 1 addition & 5 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ Minor changes:
- Measure branch coverage when running tests.
- Export ``Component`` base class for typing

Breaking changes:

- ...

New features:

- Use ``pyproject.toml`` file instead of ``setup.py``

Bug fixes:

- Fix link to stable release of tox in documentation.
- Fix a bad bytes replace in unescape_char.
- Fix a bad ``bytes`` replace in ``unescape_char``.
- Handle ``ValueError`` in ``vBinary.from_ical``.
- Ignore the BOM character in incorrectly encoded ics files.

Expand Down
1 change: 0 additions & 1 deletion docs/maintenance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ However, only people with ``PyPI environment access for GitHub Actions`` can app
2. Change the ``__version__`` variable in

- the ``src/icalendar/__init__.py`` file and
- in the ``docs/install.rst`` file (look for ``icalendar.__version__``)
3. Create a commit on the ``release`` branch (or equivalent) to release this version.

.. code-block:: bash
Expand Down
87 changes: 63 additions & 24 deletions src/icalendar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,53 +1,92 @@
__version__ = '6.0.0a0'

from icalendar.cal import (
Alarm,
Calendar,
Component,
ComponentFactory,
Event,
Todo,
FreeBusy,
Journal,
Timezone,
TimezoneStandard,
TimezoneDaylight,
FreeBusy,
Alarm,
ComponentFactory,
Component
TimezoneStandard,
Todo,
)

# Parameters and helper methods for splitting and joining string with escaped
# chars.
from icalendar.parser import (
Parameters,
q_join,
q_split,
)

# Property Data Value Types
from icalendar.prop import (
TypesFactory,
vBinary,
vBoolean,
vCalAddress,
vDatetime,
vDate,
vDatetime,
vDDDTypes,
vDuration,
vFloat,
vFrequency,
vGeo,
vInt,
vPeriod,
vWeekday,
vFrequency,
vRecur,
vText,
vTime,
vUri,
vGeo,
vUTCOffset,
TypesFactory,
)
# Parameters and helper methods for splitting and joining string with escaped
# chars.
from icalendar.parser import (
Parameters,
q_split,
q_join,
vWeekday,
)

# Switching the timezone provider
from icalendar.timezone import use_pytz, use_zoneinfo

from .version import __version__, __version_tuple__, version, version_tuple

__all__ = ['Calendar', 'Event', 'Todo', 'Journal', 'Timezone', 'TimezoneStandard', 'TimezoneDaylight', 'FreeBusy', 'Alarm',
'ComponentFactory', 'vBinary', 'vBoolean', 'vCalAddress', 'vDatetime', 'vDate', 'vDDDTypes', 'vDuration',
'vFloat', 'vInt', 'vPeriod','vWeekday', 'vFrequency', 'vRecur', 'vText', 'vTime', 'vUri', 'vGeo', 'vUTCOffset',
'vTypesFactory', 'Parameters', 'q_split', 'q_join', 'use_pytz', 'use_zoneinfo']
__all__ = [
"Calendar",
"Event",
"Todo",
"Journal",
"Timezone",
"TimezoneStandard",
"TimezoneDaylight",
"FreeBusy",
"Alarm",
"ComponentFactory",
"vBinary",
"vBoolean",
"vCalAddress",
"vDatetime",
"vDate",
"vDDDTypes",
"vDuration",
"vFloat",
"vInt",
"vPeriod",
"vWeekday",
"vFrequency",
"vRecur",
"vText",
"vTime",
"vUri",
"vGeo",
"vUTCOffset",
"vTypesFactory",
"Parameters",
"q_split",
"q_join",
"use_pytz",
"use_zoneinfo",
"__version__",
"version",
"__version_tuple__",
"version_tuple",
"TypesFactory",
"Component",
]
1 change: 1 addition & 0 deletions src/icalendar/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Version file as a stable interface for the generated _version.py file."""

try:
from ._version import __version__, __version_tuple__, version, version_tuple
except ModuleNotFoundError:
Expand Down

0 comments on commit 17dba94

Please sign in to comment.