diff options
author | Donald Stufft <donald@stufft.io> | 2014-12-06 08:31:50 -0500 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2014-12-06 08:31:50 -0500 |
commit | c13b1e80fdde97b05756f3cccdbb0559a72798e5 (patch) | |
tree | 133298f03f03d2a2859fdcb38c452aa16a437f37 | |
parent | 409cfbabcadb613dce0ea68ff591a239033db0ce (diff) | |
parent | c9cfefb0e328428bfd42860ad32330352ec9f863 (diff) | |
download | py-bcrypt-git-c13b1e80fdde97b05756f3cccdbb0559a72798e5.tar.gz |
Merge pull request #29 from alex/scrap-attr-dict
scrapped attribute dict in setup.py, it wasn't doing much
-rw-r--r-- | setup.py | 29 |
1 files changed, 8 insertions, 21 deletions
@@ -11,21 +11,8 @@ CFFI_DEPENDENCY = "cffi>=0.8" SIX_DEPENDENCY = "six>=1.4.1" -class _AttrDict(dict): - - def __getattr__(self, key): - try: - return self[key] - except KeyError: - # to conform with __getattr__ spec - raise AttributeError(key) - - def __setattr__(self, key, value): - self[key] = value - - # Manually extract the __about__ -__about__ = _AttrDict() +__about__ = {} with open("bcrypt/__about__.py") as fp: exec(fp.read(), __about__) @@ -220,16 +207,16 @@ class DummyPyTest(test): setup( - name=__about__.__title__, - version=__about__.__version__, + name=__about__["__title__"], + version=__about__["__version__"], - description=__about__.__summary__, + description=__about__["__summary__"], long_description=open("README.rst").read(), - url=__about__.__uri__, - license=__about__.__license__, + url=__about__["__uri__"], + license=__about__["__license__"], - author=__about__.__author__, - author_email=__about__.__email__, + author=__about__["__author__"], + author_email=__about__["__email__"], install_requires=[ CFFI_DEPENDENCY, |