Skip to content

Commit f014edc

Browse files
vstoykovauvipy
authored andcommitted
Package name should be with dashes not underscores (#32)
1 parent 8779c2e commit f014edc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
def _pyimp():
1717
return 'Python'
1818

19-
NAME = 'django_celery_beat'
19+
NAME = 'django-celery-beat'
20+
PACKAGE = 'django_celery_beat'
2021

2122
E_UNSUPPORTED_PYTHON = '%s 1.0 requires %%s %%s or later!' % (NAME,)
2223

@@ -75,7 +76,7 @@ def add_doc(m):
7576
pats = {re_meta: add_default,
7677
re_doc: add_doc}
7778
here = os.path.abspath(os.path.dirname(__file__))
78-
with open(os.path.join(here, NAME, '__init__.py')) as meta_fh:
79+
with open(os.path.join(here, PACKAGE, '__init__.py')) as meta_fh:
7980
meta = {}
8081
for line in meta_fh:
8182
if line.strip() == '# -eof meta-':

0 commit comments

Comments
 (0)