Skip to content

Commit 21f618d

Browse files
author
Jesús Espino
committed
Fixing problem in setup DJANGO_SETTINGS_MODULE dependency for validatefile
1 parent 6e3e7e9 commit 21f618d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from setuptools import setup, find_packages
5-
import validatedfile
6-
74
import os # To avoid an error importing validatedfile for versiontools
85
os.environ['DJANGO_SETTINGS_MODULE'] = 'testing.settings'
96

7+
from setuptools import setup, find_packages
8+
import validatedfile
9+
1010
setup(
1111
name = 'django-validated-file',
1212
version = ":versiontools:validatedfile:",
@@ -25,6 +25,7 @@
2525
],
2626
setup_requires = [
2727
'versiontools >= 1.8',
28+
'python-magic >= 0.4.2',
2829
],
2930
classifiers = [
3031
"Programming Language :: Python",

0 commit comments

Comments
 (0)