Added setup.py to allow automated testing.
Also moved the tests directory to top-level, as they shouldn't be part of the pillar directory.
This commit is contained in:
parent
1769f20620
commit
ebcb6bc5f8
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,9 +3,13 @@
|
||||
*.pyc
|
||||
*.sublime*
|
||||
*.ropeproject*
|
||||
*.swp
|
||||
|
||||
config.py
|
||||
|
||||
.ropeproject/*
|
||||
|
||||
pillar/application/static/storage/
|
||||
/build
|
||||
/.cache
|
||||
/pillar/pillar.egg-info/
|
||||
|
14
setup.py
Normal file
14
setup.py
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Setup file for testing, not for packaging/distribution."""
|
||||
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
name='pillar',
|
||||
version='1.0',
|
||||
packages=setuptools.find_packages('pillar', exclude=['manage']),
|
||||
package_dir={'': 'pillar'}, # tell setuptools packages are under src
|
||||
tests_require=['pytest', 'httpretty'],
|
||||
zip_safe=False,
|
||||
)
|
@ -10,7 +10,9 @@ TEST_EMAIL_ADDRESS = '%s@testing.blender.org' % TEST_EMAIL_USER
|
||||
|
||||
os.environ['BLENDER_ID_ENDPOINT'] = BLENDER_ID_ENDPOINT
|
||||
os.environ['MONGO_DBNAME'] = 'unittest'
|
||||
os.environ['EVE_SETTINGS'] = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'settings.py')
|
||||
os.environ['EVE_SETTINGS'] = os.path.join(
|
||||
os.path.dirname(os.path.dirname(__file__)),
|
||||
'pillar', 'settings.py')
|
||||
|
||||
from application import app
|
||||
from application.utils import authentication as auth
|
Loading…
x
Reference in New Issue
Block a user