annotate setup.py @ 1:a4188f41ca35 default tip

basically the thing
author Jeff Hammel <k0scist@gmail.com>
date Fri, 02 Jan 2015 13:22:09 -0800
parents dc90512b9c98
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 """
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 setup packaging script for AtomicWrite
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 """
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 import os
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 version = "0.1"
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 dependencies = []
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10 # allow use of setuptools/distribute or distutils
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11 kw = {}
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 try:
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13 from setuptools import setup
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 kw['entry_points'] = """
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 [console_scripts]
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16 """
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 kw['install_requires'] = dependencies
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18 except ImportError:
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 from distutils.core import setup
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20 kw['requires'] = dependencies
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 try:
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 here = os.path.dirname(os.path.abspath(__file__))
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 description = file(os.path.join(here, 'README.txt')).read()
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25 except IOError:
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 description = ''
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 setup(name='AtomicWrite',
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 version=version,
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 description="write file contents atomically in one operation",
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 long_description=description,
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34 author='Jeff Hammel',
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35 author_email='k0scist@gmail.com',
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 url='http://k0s.org/hg/AtomicWrite',
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37 license='MIT',
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 packages=['atomic'],
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 include_package_data=True,
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 zip_safe=False,
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 **kw
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 )
dc90512b9c98 boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43