-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
executable file
·52 lines (41 loc) · 1.41 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
"""
Lazily-evaluated dictionaries
A ``LazyDicitonary`` behaves mostly like an ordinary ``dict``, except:
* item values are frozen upon reading, and
* values that are callable and take 1 or 0 arguments are called once before
freezing
* if the value takes 1 argument, the ``LazyDictionary`` instance will be
supplied as the argument.
"""
from setuptools import setup
from lazydict import get_version
doc = __doc__.strip("\n").split("\n")
classifiers = """
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: OS Independent
"""
name = "lazydict"
version = get_version()
def download_url(name, version):
fmt = 'https://pypi.python.org/packages/source/{0}/{1}/{1}-{2}.tar.gz'
return fmt.format(name[0], name, version)
setup(
name= name,
version= version,
url= 'https://github.com/janrain/lazydict',
download_url= download_url(name, version),
author= "Colin von Heuring",
author_email= "colin@von.heuri.ng",
description= doc[0],
long_description="\n".join(doc[2:]),
classifiers= filter(None, classifiers.split("\n")),
license= "MIT License",
platforms= ['any'],
py_modules= ['lazydict'],
test_suite= 'test'
)