Skip to content

Commit e63fa1d

Browse files
author
Yaron Schwimmer
authored
Merge pull request #29 from PerimeterX/dev
release 2.0.1
2 parents 5781d87 + 891e987 commit e63fa1d

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ python:
33
- "2.7"
44
# command to install dependencies
55
install:
6+
- pip install -r dev-requirements.txt
67
- pip install -r requirements.txt
78
# command to run tests
89
script:

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [v2.0.1](https://github.com/PerimeterX/perimeterx-python-wsgi) (2018-12-05)
4+
- Fixed copying resources to package on pypi.
5+
36
## [v2.0.0](https://github.com/PerimeterX/perimeterx-python-wsgi/compare/v1.0.17...HEAD) (2018-12-03)
47
- Added Major Enforcer functionalities: Mobile SDK, FirstParty, CaptchaV2, Block handling
58
- Added unit tests
@@ -14,5 +17,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1417
- Added UUID to page requested
1518
- New block/captcha templates
1619
- Delete captcha cookie after evaluation
17-
- Sending original cookie value when decryption fails
18-
20+
- Sending original cookie value when decryption fails

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[PerimeterX](http://www.perimeterx.com) Python Middleware
66
=============================================================
7-
> Latest stable version: [v2.0.0](https://pypi.org/project/perimeterx-python-wsgi/)
7+
> Latest stable version: [v2.0.1](https://pypi.org/project/perimeterx-python-wsgi/)
88
Table of Contents
99
-----------------
1010
- [Installation](#installation)
@@ -27,11 +27,15 @@ Table of Contents
2727
## <a name="installation"></a> Installation
2828
PerimeterX Python middleware is installed via PIP:
2929
`$ pip install perimeterx-python-wsgi`
30+
3031
## <a name="upgrading"></a> Upgrading
3132
Contact [PerimeterX Support](mailto: [email protected]) for details.
3233
## <a name="required_config"></a> Required Configurations
3334
To use PerimeterX middleware on a specific route follow this example:
35+
3436
```python
37+
from perimeterx.middleware import PerimeterX
38+
3539
px_config = {
3640
'app_id': 'APP_ID',
3741
'cookie_key': 'COOKIE_KEY',
@@ -174,4 +178,4 @@ config = {
174178
additional_activity_handler: additional_activity_handler_function,
175179
...
176180
}
177-
```
181+
```

dev-requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mock==2.0.0
2+
requests_mock==1.5.2
3+
pylint==1.9.3

requirements.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1+
pycrypto==2.6.1
12
pystache==0.5.4
2-
mock==2.0.0
33
requests==2.20.1
4-
requests_mock==1.5.2
54
setuptools==40.6.2
6-
pycrypto==2.6.1
7-
pylint

setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
from setuptools import setup
3+
from setuptools import setup, find_packages
44

5-
version = 'v2.0.0'
5+
install_requires = open('./requirements.txt', 'r').readlines()
6+
version = 'v2.0.1'
67
setup(name='perimeterx-python-wsgi',
78
version=version,
89
license='MIT',
@@ -11,10 +12,8 @@
1112
author_email='[email protected]',
1213
url='https://github.com/PerimeterX/perimeterx-python-wsgi',
1314
download_url='https://github.com/PerimeterX/perimeterx-python-wsgi/tarball/' + version,
14-
package_dir={'perimeterx': 'perimeterx'},
15-
install_requires=[
16-
"pystache==0.5.4", 'requests==2.20.1', 'setuptools==40.6.2', 'requests_mock==1.5.2',
17-
'pycrypto==2.6.1', 'mock==2.0.0', 'pylint'],
15+
packages=find_packages(exclude=['dev', 'test*']),
16+
package_data={'perimeterx': ['templates/*']},
17+
install_requires=install_requires,
1818
classifiers=['Intended Audience :: Developers',
1919
'Programming Language :: Python :: 2.7'])
20-

0 commit comments

Comments
 (0)