Skip to content

Commit 0170281

Browse files
committed
Updated setup.py
1 parent b8ecd1d commit 0170281

File tree

1 file changed

+72
-16
lines changed

1 file changed

+72
-16
lines changed

setup.py

Lines changed: 72 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,82 @@
1+
"""
2+
javaobj module exposes an API familiar to users of the standard library marshal,
3+
pickle and json modules.
4+
5+
See:
6+
http://download.oracle.com/javase/6/docs/platform/serialization/spec/protocol.html
7+
8+
:authors: Volodymyr Buell, Thomas Calmant
9+
:license: Apache License 2.0
10+
:version: 0.1.1
11+
:status: Alpha
12+
13+
..
14+
15+
Copyright 2013 Thomas Calmant
16+
17+
Licensed under the Apache License, Version 2.0 (the "License");
18+
you may not use this file except in compliance with the License.
19+
You may obtain a copy of the License at
20+
21+
http://www.apache.org/licenses/LICENSE-2.0
22+
23+
Unless required by applicable law or agreed to in writing, software
24+
distributed under the License is distributed on an "AS IS" BASIS,
25+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26+
See the License for the specific language governing permissions and
27+
limitations under the License.
28+
"""
29+
30+
# Module version
31+
__version_info__ = (0, 1, 1)
32+
__version__ = ".".join(str(x) for x in __version_info__)
33+
34+
# Documentation strings format
35+
__docformat__ = "restructuredtext en"
36+
37+
# ------------------------------------------------------------------------------
38+
139
import os
2-
from setuptools import setup
40+
41+
try:
42+
from setuptools import setup
43+
except ImportError:
44+
from distutils.core import setup
45+
46+
# ------------------------------------------------------------------------------
47+
48+
def read(fname):
49+
"""
50+
Utility method to read the content of a whole file
51+
"""
52+
with open(os.path.join(os.path.dirname(__file__), fname)) as fd:
53+
return fd.read()
54+
55+
# ------------------------------------------------------------------------------
356

457
setup(
5-
name="javaobj",
6-
version="0.1.0",
58+
name="javaobj-tcalmant",
59+
version=__version__,
760
author="Volodymyr Buell",
861
author_email="vbuell@gmail.com",
9-
url="http://code.google.com/p/python-javaobj",
10-
description=("Module for serializing and de-serializing Java objects."),
11-
license="APL2",
62+
maintainer="Thomas Calmant",
63+
maintainer_email="thomas.calmant@gmail.com",
64+
url="https://github.com/tcalmant/python-javaobj",
65+
description="Module for serializing and de-serializing Java objects.",
66+
license='Apache License 2.0',
1267
keywords="python java marshalling serialization",
13-
# packages=['javaobj'],
14-
py_modules = ['javaobj'],
15-
test_suite = "tests",
16-
long_description="Provides functions for reading and writing (writing is WIP currently) " \
17-
"Java objects serialized or will be deserialized by ObjectOutputStream. " \
18-
"This form of object representation is a standard data interchange format " \
19-
"in Java world. javaobj module exposes an API familiar to users of the " \
20-
"standard library marshal, pickle and json modules.",
68+
py_modules=['javaobj'],
69+
test_suite="tests",
70+
long_description=read('README.rst'),
2171
classifiers=[
2272
"Development Status :: 3 - Alpha",
2373
"License :: OSI Approved :: Apache Software License",
74+
'Operating System :: OS Independent',
75+
'Programming Language :: Python :: 2.7',
76+
'Programming Language :: Python :: 3',
77+
'Programming Language :: Python :: 3.0',
78+
'Programming Language :: Python :: 3.1',
79+
'Programming Language :: Python :: 3.2',
80+
'Programming Language :: Python :: 3.3',
2481
"Topic :: Software Development :: Libraries :: Python Modules",
25-
],
26-
)
82+
])

0 commit comments

Comments
 (0)