forked from irmen/Pyro4
-
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.
include certs in sdist, made setup.py test command work. Fixes irmen#216
- Loading branch information
Showing
5 changed files
with
44 additions
and
33 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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from __future__ import print_function | ||
import sys | ||
import re | ||
import unittest | ||
|
||
try: | ||
# try setuptools first, to get access to build_sphinx and test commands | ||
|
@@ -12,19 +13,26 @@ | |
|
||
using_setuptools = False | ||
|
||
|
||
def pyro_test_suite(): | ||
testloader = unittest.TestLoader() | ||
testsuite = testloader.discover("tests/PyroTests", pattern="test*.py") | ||
return testsuite | ||
|
||
|
||
if __name__ == '__main__': | ||
with open("src/Pyro4/constants.py") as constants_file: | ||
# extract the VERSION definition from the Pyro4.constants module without importing it | ||
version_line = next(line for line in constants_file if line.startswith("VERSION")) | ||
pyro4_version = re.match("VERSION ?= ?['\"](.+)['\"]", version_line).group(1) | ||
print('Pyro version = %s' % pyro4_version) | ||
|
||
setupargs = { | ||
"name": "Pyro4", | ||
"version": pyro4_version, | ||
"license": "MIT", | ||
"description": "distributed object middleware for Python (RPC)", | ||
"long_description": """Pyro means PYthon Remote Objects. | ||
setup( | ||
name="Pyro4", | ||
version=pyro4_version, | ||
license="MIT", | ||
description="distributed object middleware for Python (RPC)", | ||
long_description="""Pyro means PYthon Remote Objects. | ||
It is a library that enables you to build applications in which | ||
objects can talk to eachother over the network, with minimal programming effort. | ||
You can just use normal Python method calls, with almost every possible parameter | ||
|
@@ -38,20 +46,21 @@ | |
The documentation can be found here: http://pyro4.readthedocs.io | ||
""", | ||
"author": "Irmen de Jong", | ||
"author_email": "[email protected]", | ||
"keywords": ["distributed objects", "RPC", "remote method call", "IPC"], | ||
"url": "http://pyro4.readthedocs.io", | ||
"package_dir": {'': 'src'}, | ||
"packages": ['Pyro4', 'Pyro4.socketserver', 'Pyro4.test', 'Pyro4.utils'], | ||
"scripts": [], | ||
"platforms": "any", | ||
"install_requires": ["serpent>=1.27"], | ||
"extras_require": { | ||
author="Irmen de Jong", | ||
author_email="[email protected]", | ||
keywords=["distributed objects", "RPC", "remote method call", "IPC"], | ||
url="http://pyro4.readthedocs.io", | ||
package_dir={'': 'src'}, | ||
packages=['Pyro4', 'Pyro4.socketserver', 'Pyro4.test', 'Pyro4.utils'], | ||
scripts=[], | ||
platforms="any", | ||
test_suite="setup.pyro_test_suite", | ||
install_requires=["serpent>=1.27"], | ||
extras_require={ | ||
":python_version<'3.4'": ["selectors34"] | ||
}, | ||
"requires": ["serpent"], | ||
"classifiers": [ | ||
requires=["serpent"], | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Development Status :: 6 - Mature", | ||
"Intended Audience :: Developers", | ||
|
@@ -69,20 +78,18 @@ | |
"Topic :: System :: Distributed Computing", | ||
"Topic :: System :: Networking" | ||
], | ||
"entry_points": { | ||
entry_points={ | ||
'console_scripts': [ | ||
'pyro4-ns = Pyro4.naming:main', | ||
'pyro4-nsc = Pyro4.nsc:main', | ||
'pyro4-test-echoserver = Pyro4.test.echoserver:main', | ||
'pyro4-check-config = Pyro4.configuration:main', | ||
'pyro4-flameserver = Pyro4.utils.flameserver:main', | ||
'pyro4-httpgateway = Pyro4.utils.httpgateway:main' | ||
'pyro4-ns=Pyro4.naming:main', | ||
'pyro4-nsc=Pyro4.nsc:main', | ||
'pyro4-test-echoserver=Pyro4.test.echoserver:main', | ||
'pyro4-check-config=Pyro4.configuration:main', | ||
'pyro4-flameserver=Pyro4.utils.flameserver:main', | ||
'pyro4-httpgateway=Pyro4.utils.httpgateway:main' | ||
] | ||
}, | ||
"options": {"install": {"optimize": 0}} | ||
} | ||
|
||
setup(**setupargs) | ||
options={"install": {"optimize": 0}} | ||
) | ||
|
||
if len(sys.argv) >= 2 and sys.argv[1].startswith("install"): | ||
print("\nOnly the Pyro library has been installed (version %s)." % pyro4_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