annotate setup.py @ 48:0a2d12d4ffd6

setup.py: use a minor version for first release
author Goffi <goffi@goffi.org>
date Mon, 02 Apr 2018 10:34:43 +0200
parents c8cb4e867897
children c09d4ce9ad52
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
48
0a2d12d4ffd6 setup.py: use a minor version for first release
Goffi <goffi@goffi.org>
parents: 45
diff changeset
4 # SàT tmp: repository to store temporary patches for third party software
45
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
5 # Copyright (C) 2017 Arnaud Joset (info@agayon.be)
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
6 # Copyright (C) 2009-2017 Jérôme Poisson (goffi@goffi.org)
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
7 # Copyright (C) 2013-2016 Adrien Cossa (souliane@mailoo.org)
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
8
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
9 # 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
10 # 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
11 # the Free Software Foundation, either version 3 of the License, or
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
12 # (at your option) any later version.
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
13
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
14 # 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
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
17 # GNU Affero General Public License for more details.
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
18
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
19 # 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
20 # 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
21
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
22 import sys
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
23 from setuptools import setup, find_packages
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
24
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 includefiles = ['COPYING','README']
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
27 include_modules = []
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
28
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
29 base = None
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
30 NAME = 'sat_tmp'
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
31 is_wheel = 'bdist_wheel' in sys.argv
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
32
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
33 excluded = []
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
34
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
35 def create_package_list(base_package):
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
36 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
37
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
38 setup_info = dict(
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
39 name=NAME,
48
0a2d12d4ffd6 setup.py: use a minor version for first release
Goffi <goffi@goffi.org>
parents: 45
diff changeset
40 version='0.0.1',
45
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
41 author='Association « Salut à Toi »',
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
42 author_email='contact@salut-a-toi.org',
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
43 url='https://salut-a-toi.org',
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
44 classifiers=['Development Status :: 3 - Alpha',
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
45 '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
46 'Operating System :: POSIX :: Linux',
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
47 'Topic :: Communications :: Chat'],
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
48 install_requires=['wokkel >= 0.7.1'],
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
49 packages=create_package_list('sat_tmp'),
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
50 zip_safe=True,
c8cb4e867897 made proper package + installation
Arnaud Joset <info@agayon.be>
parents:
diff changeset
51 )
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 setup(**setup_info)