Skip to content

Commit

Permalink
chore: Include conditions folder
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueSoria committed Mar 1, 2024
1 parent 59beba8 commit 31724a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ def get_metadata(package, field):
"""
with codecs.open(os.path.join(package, "__init__.py"), encoding="utf-8") as fp:
init_py = fp.read()
return re.search(
"^__{}__ = ['\"]([^'\"]+)['\"]".format(field), init_py, re.MULTILINE
).group(1)
return re.search("^__{}__ = ['\"]([^'\"]+)['\"]".format(field), init_py, re.MULTILINE).group(1)


def readme():
Expand Down Expand Up @@ -48,7 +46,7 @@ def readme():
description="Declarative model lifecycle hooks.",
author=get_metadata("django_lifecycle", "author"),
author_email=get_metadata("django_lifecycle", "author_email"),
packages=["django_lifecycle", "django_lifecycle_checks"],
packages=["django_lifecycle", "django_lifecycle_checks", "django_lifecycle.conditions"],
url="https://github.com/rsinger86/django-lifecycle",
project_urls={
"Documentation": "https://rsinger86.github.io/django-lifecycle/",
Expand Down

0 comments on commit 31724a4

Please sign in to comment.