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