Mercurial > sat_tmp
changeset 49:c09d4ce9ad52
cleaned setup.py
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Apr 2018 15:40:52 +0200 |
parents | 0a2d12d4ffd6 |
children | 69b8b0d810f4 |
files | setup.py |
diffstat | 1 files changed, 6 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Mon Apr 02 10:34:43 2018 +0200 +++ b/setup.py Mon Apr 02 15:40:52 2018 +0200 @@ -19,23 +19,15 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +import os import sys -from setuptools import setup, find_packages +from setuptools import setup -includefiles = ['COPYING','README'] -include_modules = [] - -base = None NAME = 'sat_tmp' -is_wheel = 'bdist_wheel' in sys.argv -excluded = [] -def create_package_list(base_package): - return ([base_package] + [base_package + '.' + pkg for pkg in find_packages(base_package)]) - -setup_info = dict( +setup( name=NAME, version='0.0.1', author='Association « Salut à Toi »', @@ -46,8 +38,7 @@ 'Operating System :: POSIX :: Linux', 'Topic :: Communications :: Chat'], install_requires=['wokkel >= 0.7.1'], - packages=create_package_list('sat_tmp'), - zip_safe=True, + packages=['sat_tmp.wokkel', 'sat_tmp.wokkel.test'], + data_files=[(os.path.join(sys.prefix, 'share/doc', NAME), + ['README', 'COPYING'])], ) - -setup(**setup_info)