Mercurial > sat_tmp
annotate setup.py @ 47:80fd409ddc91
updated README
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Apr 2018 10:33:22 +0200 |
parents | c8cb4e867897 |
children | 0a2d12d4ffd6 |
rev | line source |
---|---|
45
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
1 #!/usr/bin/env python2 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
2 # -*- coding: utf-8 -*- |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
3 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
4 # SàT tmp: repository to store temporarily patches to third party software |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
5 # until they are merged upstream |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
6 # Copyright (C) 2017 Arnaud Joset (info@agayon.be) |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
7 # Copyright (C) 2009-2017 Jérôme Poisson (goffi@goffi.org) |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
8 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org) |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
9 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
10 # This program is free software: you can redistribute it and/or modify |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
11 # it under the terms of the GNU Affero General Public License as published by |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
12 # the Free Software Foundation, either version 3 of the License, or |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
13 # (at your option) any later version. |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
14 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
15 # This program is distributed in the hope that it will be useful, |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
18 # GNU Affero General Public License for more details. |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
19 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
20 # You should have received a copy of the GNU Affero General Public License |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
21 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
22 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
23 import sys |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
24 from setuptools import setup, find_packages |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
25 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
26 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
27 includefiles = ['COPYING','README'] |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
28 include_modules = [] |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
29 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
30 base = None |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
31 NAME = 'sat_tmp' |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
32 is_wheel = 'bdist_wheel' in sys.argv |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
33 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
34 excluded = [] |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
35 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
36 def create_package_list(base_package): |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
37 return ([base_package] + [base_package + '.' + pkg for pkg in find_packages(base_package)]) |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
38 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
39 setup_info = dict( |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
40 name=NAME, |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
41 version='0.7', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
42 author='Association « Salut à Toi »', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
43 author_email='contact@salut-a-toi.org', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
44 url='https://salut-a-toi.org', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
45 classifiers=['Development Status :: 3 - Alpha', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
46 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
47 'Operating System :: POSIX :: Linux', |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
48 'Topic :: Communications :: Chat'], |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
49 install_requires=['wokkel >= 0.7.1'], |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
50 packages=create_package_list('sat_tmp'), |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
51 zip_safe=True, |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
52 ) |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
53 |
c8cb4e867897
made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff
changeset
|
54 setup(**setup_info) |