# HG changeset patch # User Goffi # Date 1522676452 -7200 # Node ID c09d4ce9ad52cd8586abb2af691500333c1e1010 # Parent 0a2d12d4ffd614232bfad3d3bb92cf481698e643 cleaned setup.py diff -r 0a2d12d4ffd6 -r c09d4ce9ad52 setup.py --- 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 . +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)