Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions humanized_opening_hours/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"""
# flake8: noqa

__version__ = "1.0.0b3"
__appname__ = "osm_humanized_opening_hours"
__author__ = "rezemika <reze.mika@gmail.com>"
__licence__ = "AGPLv3"

import os as _os
import gettext as _gettext
_gettext.install("HOH",
Expand All @@ -26,6 +21,7 @@
)
)

from humanized_opening_hours.version import __version__, __appname__, __author__, __licence__
from humanized_opening_hours.main import OHParser, sanitize, days_of_week
from humanized_opening_hours.temporal_objects import easter_date
from humanized_opening_hours.rendering import AVAILABLE_LOCALES
Expand Down
6 changes: 3 additions & 3 deletions humanized_opening_hours/field.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ EVENT : "dawn" | "sunrise" | "sunset" | "dusk"
EASTER : "easter"
OPEN : " open"
CLOSED : " closed" | " off"
ALWAYS_OPEN.2 : "24/7"
WEEK.2 : "week "
ALWAYS_OPEN : "24/7"
WEEK : "week "

TWO_DIGITS.1 : /[0-9][0-9]+/
YEAR.3 : /([12][0-9]{3})+/
YEAR : /([12][0-9]{3})+/

PLUS_OR_MINUS : "+" | "-"

Expand Down
4 changes: 4 additions & 0 deletions humanized_opening_hours/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__version__ = "1.0.0b3"
__appname__ = "osm_humanized_opening_hours"
__author__ = "rezemika <reze.mika@gmail.com>"
__licence__ = "AGPLv3"
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
astral==1.7.1
Babel==2.6.0
Babel==2.9.0
pytz==2020.5
lark-parser==0.11.1
flake8==3.6.0
lark-parser==0.6.5
pyflakes==2.0.0
pytz==2018.7
twine==1.12.1
requests==2.20.1
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
astral==1.7.1
Babel==2.6.0
pytz==2018.7
lark-parser==0.6.5
Babel==2.9.0
pytz==2020.5
lark-parser==0.11.1
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from setuptools import setup, find_packages
import os

import humanized_opening_hours

BASE_DIR = os.path.dirname(os.path.realpath(__file__))
exec(open(os.path.join(
BASE_DIR, 'humanized_opening_hours', 'version.py')).read())

setup(
name="osm_humanized_opening_hours",
version=humanized_opening_hours.__version__,
version=__version__, # noqa
packages=find_packages(exclude=["doc", "tests"]),
author="rezemika",
author_email="reze.mika@gmail.com",
Expand Down