File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,7 @@ def get_metadata(package, field):
1313 """
1414 with codecs .open (os .path .join (package , "__init__.py" ), encoding = "utf-8" ) as fp :
1515 init_py = fp .read ()
16- return re .search (
17- "^__{}__ = ['\" ]([^'\" ]+)['\" ]" .format (field ), init_py , re .MULTILINE
18- ).group (1 )
16+ return re .search ("^__{}__ = ['\" ]([^'\" ]+)['\" ]" .format (field ), init_py , re .MULTILINE ).group (1 )
1917
2018
2119def readme ():
@@ -48,7 +46,7 @@ def readme():
4846 description = "Declarative model lifecycle hooks." ,
4947 author = get_metadata ("django_lifecycle" , "author" ),
5048 author_email = get_metadata ("django_lifecycle" , "author_email" ),
51- packages = ["django_lifecycle" , "django_lifecycle_checks" ],
49+ packages = ["django_lifecycle" , "django_lifecycle_checks" , "django_lifecycle.conditions" ],
5250 url = "https://github.com/rsinger86/django-lifecycle" ,
5351 project_urls = {
5452 "Documentation" : "https://rsinger86.github.io/django-lifecycle/" ,
You can’t perform that action at this time.
0 commit comments