Skip to content

Commit

Permalink
fix setup.py packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
darius BERNARD committed Dec 7, 2016
1 parent ba9ee7b commit b31f218
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion MANIFEST.in
Expand Up @@ -2,4 +2,5 @@ include LICENSE
include README.rst
include CONTRIBUTING.rst
include requirements.txt
include test_requirements.txt
include test_requirements.txt
include rest_models/backend/exec/*
2 changes: 1 addition & 1 deletion rest_models/__init__.py
@@ -1 +1 @@
__VERSION__ = '1.0.0'
__VERSION__ = '1.0.1'
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -14,11 +14,11 @@

version = rest_models.__VERSION__

if not 'DJANGO_SETTINGS_MODULE' in os.environ:
if 'DJANGO_SETTINGS_MODULE' not in os.environ:
os.environ['DJANGO_SETTINGS_MODULE'] = 'testsettings'

if sys.argv[-1] == 'publish':
os.system('cd docs && make html')
# os.system('cd docs && make html')
os.system('python setup.py sdist bdist_wheel upload')
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
Expand Down Expand Up @@ -49,6 +49,8 @@
],
packages=[
'rest_models',
'rest_models.backend',

],
include_package_data=True,
license="GNU GENERAL PUBLIC LICENSE",
Expand Down

0 comments on commit b31f218

Please sign in to comment.