Skip to content

Commit 0e4229f

Browse files
committed
Update package infomation
1 parent 8614724 commit 0e4229f

2 files changed

Lines changed: 38 additions & 29 deletions

File tree

jsondb/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
"""
2+
A flat file database for json objects.
3+
"""
4+
15
from .db import Database
26

3-
__version__ = '0.1.3'
4-
__maintainer__ = 'Gunther Cox'
7+
__version__ = '0.1.4'
8+
__author__ = 'Gunther Cox'
59
__email__ = 'gunthercx@gmail.com'
6-
10+
__url__ = 'https://github.com/gunthercox/jsondb'

setup.py

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,44 @@
66
except ImportError:
77
from distutils.core import setup
88

9-
history = open("history.rst").read().replace(".. :changelog:", "")
9+
HISTORY = open('history.rst').read().replace('.. :changelog:', '')
1010

11-
readme = lambda f: open(f, "r").read()
11+
README = lambda f: open(f, 'r').read()
1212

13-
# Dynamically import the version
14-
version = __import__('jsondb').__version__
13+
# Dynamically import the package information
14+
JSONDB = __import__('jsondb')
15+
VERSION = JSONDB.__version__
16+
AUTHOR = JSONDB.__author__
17+
AUTHOR_EMAIL = JSONDB.__email__
18+
URL = JSONDB.__url__
19+
DESCRIPTION = JSONDB.__doc__
1520

1621
setup(
17-
name="jsondatabase",
18-
version=version,
19-
description="A flat file database for json objects.",
20-
long_description=readme("readme.md") + "\n\n" + history,
21-
author="Gunther Cox",
22-
author_email="gunthercx@gmail.com",
23-
url="https://github.com/gunthercox/jsondb",
24-
packages=["jsondb"],
25-
package_dir={"jsondb": "jsondb"},
22+
name='jsondatabase',
23+
version=VERSION,
24+
description=DESCRIPTION,
25+
long_description=README('readme.md') + '\n\n' + HISTORY,
26+
author=AUTHOR,
27+
author_email=AUTHOR_EMAIL,
28+
url=URL,
29+
packages=['jsondb'],
30+
package_dir={'jsondb': 'jsondb'},
2631
include_package_data=True,
27-
license="BSD",
32+
license='BSD',
2833
zip_safe=True,
29-
keywords = ["jsondb"],
34+
keywords=['jsondb'],
3035
classifiers=[
31-
"Development Status :: 2 - Pre-Alpha",
32-
"Intended Audience :: Developers",
33-
"License :: OSI Approved :: BSD License",
34-
"Natural Language :: English",
35-
"Programming Language :: Python :: 2",
36-
"Programming Language :: Python :: 2.6",
37-
"Programming Language :: Python :: 2.7",
38-
"Programming Language :: Python :: 3",
39-
"Programming Language :: Python :: 3.3",
40-
"Programming Language :: Python :: 3.4",
36+
'Development Status :: 2 - Pre-Alpha',
37+
'Intended Audience :: Developers',
38+
'License :: OSI Approved :: BSD License',
39+
'Natural Language :: English',
40+
'Programming Language :: Python :: 2',
41+
'Programming Language :: Python :: 2.6',
42+
'Programming Language :: Python :: 2.7',
43+
'Programming Language :: Python :: 3',
44+
'Programming Language :: Python :: 3.3',
45+
'Programming Language :: Python :: 3.4',
4146
],
42-
test_suite="tests",
47+
test_suite='tests',
4348
tests_require=[]
4449
)

0 commit comments

Comments
 (0)