Skip to content

Commit 7eea93f

Browse files
committed
Last fixes for v1.0.
* Use consistent version numbering everywhere (now at 1.0) * Move to new release of umapi-client with user-agent capabilities * Set user-agent to user-sync/1.0 (or whatever the version is) * Update to latest version of User Sync Guide (source .docx and PDF)
1 parent 108bacf commit 7eea93f

File tree

10 files changed

+41
-9
lines changed

10 files changed

+41
-9
lines changed

docs/User Sync Guide.docx

752 KB
Binary file not shown.

docs/User Sync Guide.pdf

1.81 MB
Binary file not shown.

docs/User Sync_Guide_2017-01-29.pdf

-534 KB
Binary file not shown.

misc/build/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pycrypto
22
PyYAML
33
psutil
4-
umapi-client>=2.0.1
4+
umapi-client>=2.0.2

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[aliases]
2+
test=nosetests
3+
14
[nosetests]
25
verbosity=3
36
with-doctest=1

setup.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@
2020

2121
from setuptools import setup
2222

23+
version_namespace = {}
24+
with open('user_sync/version.py') as f:
25+
exec(f.read(), version_namespace)
26+
2327
setup(name='user-sync',
24-
version='1.0rc1',
28+
version=version_namespace['__version__'],
2529
description='Application for synchronizing customer directories with the Adobe Enterprise Admin Console',
2630
classifiers=[
2731
'Development Status :: 5 - Production/Stable',
@@ -39,7 +43,7 @@
3943
'pycrypto',
4044
'python-ldap==2.4.25',
4145
'PyYAML',
42-
'umapi-client>=2',
46+
'umapi-client>=2.0.2',
4347
'psutil',
4448
],
4549
setup_requires=['nose>=1.0'],
@@ -52,4 +56,4 @@
5256
'user_sync = user_sync.app:main'
5357
]
5458
},
55-
)
59+
zip_safe=False)

user_sync/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21+
from .version import __version__

user_sync/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
import user_sync.rules
3333
import user_sync.connector.directory
3434
import user_sync.connector.dashboard
35-
36-
APP_VERSION = "1.0rc1"
35+
from user_sync.version import __version__ as APP_VERSION
3736

3837
LOG_STRING_FORMAT = '%(asctime)s %(process)d %(levelname)s %(name)s - %(message)s'
3938
LOG_DATE_FORMAT ='%Y-%m-%d %H:%M:%S'

user_sync/connector/dashboard.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
import helper
2221
import json
23-
import jwt
2422
import logging
2523

24+
import jwt
2625
import umapi_client
2726

27+
import helper
28+
import user_sync.config
29+
import user_sync.helper
2830
import user_sync.identity_type
31+
from user_sync.version import __version__ as APP_VERSION
2932

3033
try:
3134
from jwt.contrib.algorithms.pycrypto import RSAAlgorithm
@@ -86,7 +89,8 @@ def __init__(self, name, caller_options):
8689
ims_host=ims_host,
8790
ims_endpoint_jwt=server_options['ims_endpoint_jwt'],
8891
user_management_endpoint=um_endpoint,
89-
test_mode=options['test_mode']
92+
test_mode=options['test_mode'],
93+
user_agent="user-sync/" + APP_VERSION
9094
)
9195
logger.info('API initialized on: %s', um_endpoint)
9296

user_sync/version.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2016-2017 Adobe Systems Incorporated. All rights reserved.
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to deal
5+
# in the Software without restriction, including without limitation the rights
6+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
# copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included in all
11+
# copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
# SOFTWARE.
20+
21+
__version__ = '1.0'

0 commit comments

Comments
 (0)