Skip to content

Commit

Permalink
Added setup.py
Browse files Browse the repository at this point in the history
Uses versioneer for versioning the build artifacts. All dev builds
have the tag *.*.*.dev0 and all of the real versions have the tag
*.*.*.
  • Loading branch information
mnazbro committed Jul 2, 2015
1 parent c91f09c commit b968ae5
Show file tree
Hide file tree
Showing 9 changed files with 2,250 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
@@ -0,0 +1 @@
typedjsonrpc/_version.py export-subst
9 changes: 9 additions & 0 deletions .gitignore
@@ -0,0 +1,9 @@
.coverage
.idea/
.tox/
*.~
*.egg-info/
*.py[cod]
__pycache__/
build/
dist/
3 changes: 3 additions & 0 deletions DESCRIPTION.rst
@@ -0,0 +1,3 @@
typed-jsonrpc
=============
A typed decorator-based json-rpc library for Python
3 changes: 3 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,3 @@
include DESCRIPTION.rst
include typedjsonrpc/_version.py
include versioneer.py
13 changes: 13 additions & 0 deletions setup.cfg
@@ -0,0 +1,13 @@
[bdist_wheel]
# This flag says that the code is written to work on both Python 2 and Python
# 3. If at all possible, it is good practice to do this. If you cannot, you
# will need to generate wheels for each Python version that you support.
universal=1

[versioneer]
VCS = git
style = pep440
versionfile_source = typedjsonrpc/_version.py
versionfile_build = typedjsonrpc/_version.py
tag_prefix =
parentdir_prefix = typedjsonrpc
58 changes: 58 additions & 0 deletions setup.py
@@ -0,0 +1,58 @@
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

import versioneer

# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path

here = path.abspath(path.dirname(__file__))

with open(path.join(here, "DESCRIPTION.rst"), encoding="utf-8") as f:
long_description = f.read()

setup(
name="typedjsonrpc",

version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),

description="A typed decorator-based json-rpc library for Python",
long_description=long_description,

url="https://github.com/palantir/typedjsonrpc",

author="Michael Nazario",
author_email="mnazario@palantir.com",

license="MIT",

classifiers=[
"Development Status :: 3 - Alpha",

"Intended Audience :: Developers",
"Topic :: Internet :: WWW/HTTP",

"License :: OSI Approved :: MIT License",

"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
],

keywords="jsonrpc json-rpc rpc",

packages=find_packages(exclude=["contrib", "docs", "tests*"]),

install_requires=[],

extras_require={},
)
4 changes: 4 additions & 0 deletions typedjsonrpc/__init__.py
@@ -0,0 +1,4 @@

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions

0 comments on commit b968ae5

Please sign in to comment.