source: setup.py @ 214:2cd86b3ffa36

Last change on this file since 214:2cd86b3ffa36 was 214:2cd86b3ffa36, checked in by Ralph Meijer <ralphm@…>, 4 years ago

Don't change the version number just yet.

  • Property exe set to *
File size: 1.4 KB
Line 
1#!/usr/bin/env python
2
3# Copyright (c) Ralph Meijer.
4# See LICENSE for details.
5
6import sys
7from setuptools import setup
8
9# Make sure 'twisted' doesn't appear in top_level.txt
10
11try:
12    from setuptools.command import egg_info
13    egg_info.write_toplevel_names
14except (ImportError, AttributeError):
15    pass
16else:
17    def _top_level_package(name):
18        return name.split('.', 1)[0]
19
20    def _hacked_write_toplevel_names(cmd, basename, filename):
21        pkgs = dict.fromkeys(
22            [_top_level_package(k)
23                for k in cmd.distribution.iter_distribution_names()
24                if _top_level_package(k) != "twisted"
25            ]
26        )
27        cmd.write_file("top-level names", filename, '\n'.join(pkgs) + '\n')
28
29    egg_info.write_toplevel_names = _hacked_write_toplevel_names
30
31if sys.version_info < (3, 0):
32    requiredTwisted = "15.5.0"
33else:
34    requiredTwisted = "16.4.0"
35
36setup(name='wokkel',
37      version='0.7.1',
38      description='Twisted Jabber support library',
39      author='Ralph Meijer',
40      author_email='ralphm@ik.nu',
41      maintainer_email='ralphm@ik.nu',
42      url='http://wokkel.ik.nu/',
43      license='MIT',
44      platforms='any',
45      packages=[
46          'wokkel',
47          'wokkel.test',
48          'twisted.plugins',
49      ],
50      package_data={'twisted.plugins': ['twisted/plugins/server.py']},
51      zip_safe=False,
52      install_requires=[
53          'Twisted >= %s' % requiredTwisted,
54          'python-dateutil',
55      ],
56)
Note: See TracBrowser for help on using the repository browser.