Skip to content

Commit

Permalink
address Issue #86 with setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
hupili committed Jul 18, 2013
1 parent 76d0c90 commit d06d548
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include snscli.py snsgui.py README.md VERSION.md CONTRIBUTOR requirements.txt
recursive-include snsapi *.py *.md
recursive-include conf *.example *.ini
include snsapi/data/init-channel.json.example
include snsapi/data/snsgui.ini
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
maintainer_email='[email protected]',
url='https://github.com/hupili/snsapi',
packages=['snsapi', 'snsapi.third', 'snsapi.plugin', 'snsapi.plugin_trial'],
package_data={'snsapi': ['conf/*.ini', 'conf/*.example']},
package_data={'snsapi': ['data/*.ini', 'data/*.example']},
data_files=[
('data', ['snsapi/data/init-channel.json.example', 'snsapi/data/snsgui.ini'])
],
include_package_data=True,
scripts=['snscli.py', 'snsgui.py'],
provides=['snsapi'],
requires=REQUIRES,
Expand Down
1 change: 0 additions & 1 deletion snsapi/conf

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion snsapi/snsconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class SNSConf(object):

#TODO:
# Find better way to organize static package data
SNSAPI_DIR_STATIC_DATA = path.join(path.dirname(path.abspath(__file__)), 'conf')
SNSAPI_DIR_STATIC_DATA = path.join(path.dirname(path.abspath(__file__)), 'data')
_USER_HOME = path.expanduser('~')
_SNSAPI_DIR_USER_ROOT = path.join(_USER_HOME, '.snsapi')
_SNSAPI_DIR_CWD = path.abspath('.')
Expand Down

0 comments on commit d06d548

Please sign in to comment.