-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Šarūnas Navickas
committed
Nov 13, 2015
1 parent
72601cf
commit 1014722
Showing
8 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include requirements |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__all__ = ["tools", "version"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
VERSION = (1, 0, 0) | ||
|
||
|
||
def get_version(): | ||
return ".".join(map(lambda x: str(x), VERSION)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/python | ||
# -*- coding: UTF-8 -*- | ||
from setuptools import setup | ||
from pip.req import parse_requirements | ||
from pip.exceptions import InstallationError | ||
|
||
from robust.version import get_version | ||
|
||
try: | ||
install_reqs = list(parse_requirements("requirements", session={})) | ||
except InstallationError: | ||
# There are no requirements | ||
install_reqs = [] | ||
|
||
setup(name="pyrobustness", | ||
version=get_version(), | ||
description="A simple util library for creating applications which needs to keep running, despite abnormalities", | ||
author="Šarūnas Navickas", | ||
author_email="[email protected]", | ||
license="MIT", | ||
packages=["robust"], | ||
install_requires=[str(ir.req) for ir in install_reqs], | ||
test_suite="nose.collector", | ||
tests_require=["nose"]) |