-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- preparing for test suite / introducing pep8 format checks
- Loading branch information
afabiani
committed
Nov 15, 2018
1 parent
14dfecf
commit c2ca09b
Showing
53 changed files
with
1,944 additions
and
1,490 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,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
autopep8 -v -i -a -a -r *.py | ||
autopep8 -v -i -a -a -r src | ||
autopep8 -v -i -a -a -r test |
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,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
flake8 *.py | ||
flake8 src/wpsremote | ||
flake8 test |
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,15 +1,28 @@ | ||
asn1crypto==0.24.0 | ||
astroid==1.4.4 | ||
autopep8==1.4.3 | ||
bcrypt==3.1.4 | ||
cffi==1.11.5 | ||
colorama==0.3.6 | ||
cryptography==2.3.1 | ||
enum34==1.1.6 | ||
flake8==2.5.4 | ||
functools32==3.2.3.post2 | ||
idna==2.7 | ||
ipaddress==1.0.22 | ||
jsonschema==2.5.1 | ||
lazy-object-proxy==1.2.1 | ||
mccabe==0.4.0 | ||
pep8==1.7.0 | ||
psutil==4.0.0 | ||
paramiko==2.4.1 | ||
pep8==1.7.1 | ||
psutil==5.4.7 | ||
pyasn1==0.4.4 | ||
pycodestyle==2.4.0 | ||
pycparser==2.18 | ||
pycrypto==2.6.1 | ||
pyflakes==1.0.0 | ||
pylint==1.5.4 | ||
PyNaCl==1.2.1 | ||
six==1.10.0 | ||
sleekxmpp==1.3.1 | ||
wheel==0.24.0 | ||
wrapt==1.10.6 | ||
sleekxmpp==1.3.3 | ||
wrapt==1.10.10 |
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,2 +1,7 @@ | ||
[metadata] | ||
description-file = README.md | ||
|
||
[flake8] | ||
max-line-length = 120 | ||
exclude=management,scripts,docs,static | ||
ignore=E121,E122,E124,E126,E226 |
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 |
---|---|---|
|
@@ -24,25 +24,38 @@ | |
python setup.py bdist --format=gztar upload -r pypi | ||
python setup.py bdist_wheel upload -r pypi | ||
""" | ||
from setuptools import setup, find_packages | ||
try: # for pip >= 10 | ||
from pip._internal.req import parse_requirements | ||
from pip._internal.download import PipSession | ||
except ImportError: # for pip <= 9.0.3 | ||
from pip.req import parse_requirements | ||
from pip.download import PipSession | ||
from distutils.core import setup | ||
|
||
from setuptools import find_packages | ||
|
||
# Parse requirements.txt to get the list of dependencies | ||
inst_req = parse_requirements('requirements.txt', | ||
session=PipSession()) | ||
REQUIREMENTS = [str(r.req) for r in inst_req] | ||
|
||
try: | ||
readme_text = file('README.md', 'rb').read() | ||
except IOError,e: | ||
except IOError as e: | ||
readme_text = '' | ||
|
||
setup( | ||
name = "wps-remote", | ||
version = "2.15.0", | ||
author = "GeoServer Developers", | ||
author_email = "[email protected]", | ||
description = "A library that allows users to publish their executables as GeoServer WPS Processes through the XMPP protocol", | ||
keywords = "XMPP Beckend for GeoServer Remote WPS ProcessFactory.", | ||
long_description = readme_text, | ||
license = "GPL", | ||
url = "https://github.com/geoserver/wps-remote", | ||
#https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers = [ | ||
name="wps-remote", | ||
version="2.15.0", | ||
author="GeoServer Developers", | ||
author_email="[email protected]", | ||
description="A library that allows users to publish their executables as GeoServer WPS Processes through the XMPP protocol", # noqa | ||
keywords="XMPP Beckend for GeoServer Remote WPS ProcessFactory.", | ||
long_description=readme_text, | ||
license="GPL", | ||
url="https://github.com/geoserver/wps-remote", | ||
# https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)', | ||
'Intended Audience :: Developers', | ||
|
@@ -51,9 +64,9 @@ | |
'Programming Language :: Python', | ||
'Topic :: Scientific/Engineering :: GIS', | ||
], | ||
package_dir = {'':'src'}, | ||
packages = find_packages('src'), | ||
package_data = { | ||
package_dir={'': 'src'}, | ||
packages=find_packages('src'), | ||
package_data={ | ||
'': [ | ||
'xmpp_data/*.*', | ||
'xmpp_data/configs/*.*', | ||
|
@@ -67,25 +80,7 @@ | |
'xmpp_data/test/*.*', | ||
] | ||
}, | ||
include_package_data = True, | ||
test_suite = "test", | ||
install_requires = [ | ||
"astroid==1.4.4", | ||
"colorama==0.3.6", | ||
"flake8==2.5.4", | ||
"functools32", | ||
"jsonschema==2.5.1", | ||
"lazy-object-proxy==1.2.1", | ||
"mccabe==0.4.0", | ||
"paramiko", | ||
"pep8==1.7.0", | ||
"psutil>=4.0.0", | ||
"pycrypto", | ||
"pyflakes==1.0.0", | ||
"pylint==1.5.4", | ||
"six==1.10.0", | ||
"sleekxmpp>=1.3.1", | ||
"wheel==0.24.0", | ||
"wrapt==1.10.10", | ||
], | ||
include_package_data=True, | ||
test_suite="test", | ||
install_requires=REQUIREMENTS, | ||
) |
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
Oops, something went wrong.