Skip to content

Commit

Permalink
Improve setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KivApple committed Oct 15, 2016
1 parent 9d3ec34 commit 53ef5de
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,29 @@
import os
from setuptools import setup


package_dir = os.path.join(os.path.dirname(__file__), 'mcu_info_util')
data_files = []
for root, dirs, files in os.walk(os.path.join(package_dir, 'metadata')):
data_files += [os.path.join(root, file) for file in files]
data_files = [os.path.relpath(data_file, package_dir) for data_file in data_files]


setup(
name='mcu-info-util',
version='0.1',
author='Ivan Kolesnikov',
author_email='kiv.apple@gmail.com',
url='https://github.com/KivApple/mcu-info-util',
packages=['mcu_info_util'],
package_dir={'mcu_info_util': 'mcu_info_util'},
package_data={'mcu_info_util': ['metadata/*', 'metadata/*/*', 'metadata/*/*/*', 'metadata/*/*/*/*']},
entry_points={
'console_scripts': [
'mcu-info-util = mcu_info_util.__main__:main'
]
},
install_requires=[
'six'
]
name='mcu-info-util',
version='0.1',
author='Ivan Kolesnikov',
author_email='kiv.apple@gmail.com',
url='https://github.com/KivApple/mcu-info-util',
packages=['mcu_info_util'],
package_dir={'mcu_info_util': 'mcu_info_util'},
package_data={'mcu_info_util': data_files},
entry_points={
'console_scripts': [
'mcu-info-util = mcu_info_util.__main__:main'
]
},
install_requires=[
'six'
]
)

0 comments on commit 53ef5de

Please sign in to comment.