Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit e8ae566

Browse files
authored
Merge pull request #17 from eea/develop
Implement automatic release gitflow
2 parents cdc002a + ef2902e commit e8ae566

6 files changed

Lines changed: 67 additions & 48 deletions

File tree

CHANGELOG.rst

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
1.1.39 (unreleased)
2-
------------------
1+
Changelog
2+
=========
3+
4+
2.0 (2020-02-13)
5+
--------------------
36
* fix fetching of error message [dumitval]
47
* remove unused import [dumitval]
58
* Fix decode error on user details page [dumitval]
@@ -18,166 +21,166 @@
1821
(no longer using authenticated user's credentials) [dumitval]
1922

2023
1.1.38 (2019-03-05)
21-
------------------
24+
--------------------
2225
* add and use bind credentials for unrestricted search [dumitval]
2326

2427
1.1.37 (2018-06-12)
25-
------------------
28+
--------------------
2629
* avoid crash if uid is not sent to the user details page [dumitval]
2730

2831
1.1.36 (2018-04-27)
29-
------------------
32+
--------------------
3033
* add secondary ldap bind auth for unlimited search [dumitval]
3134

3235
1.1.35 (2018-03-14)
33-
------------------
36+
--------------------
3437
* raise NotFound for disabled users (user directory) [dumitval]
3538

3639
1.1.34 (2018-02-12)
37-
------------------
40+
--------------------
3841
* show the date of the last password change in user details page
3942
refs #92555 [dumitval]
4043

4144
1.1.33 (2018-02-09)
42-
------------------
45+
--------------------
4346
* clearly mark an invalid organisation setting on user details [dumitval]
4447

4548
1.1.32 (2017-06-19)
46-
------------------
49+
--------------------
4750
* password reset supports stricter password policy in ldap [dumitval]
4851

4952
1.1.31 (2016-11-22)
50-
------------------
53+
--------------------
5154
* add os environ to zope environment [dumitval]
5255

5356
1.1.30 (2016-11-21)
54-
------------------
57+
--------------------
5558
* bugfix for users changing Organisation [dumitval]
5659

5760
1.1.29 (2016-10-10)
58-
------------------
61+
--------------------
5962
* show roles at the time a user was disabled [dumitval]
6063

6164
1.1.28 (2016-10-03)
62-
------------------
65+
--------------------
6366
* add organisation title in national language to the organisation
6467
selection list [dumitval]
6568
* add Organisation title (if valid link available)
6669
and Department to the user details page [dumitval]
6770

6871
1.1.27 (2015-11-24)
69-
------------------
72+
--------------------
7073
* fix crash in user details when organisation from user's history was
7174
deleted [dumitval]
7275

7376
1.1.26 (2015-06-08)
74-
------------------
77+
--------------------
7578
* Bug fix: fixed user profile editor for missing organisation field
7679
[tiberich #26247]
7780

7881
1.1.25 (2015-05-19)
79-
------------------
82+
--------------------
8083
* Bug fix: call agent._get_metadata with userdn, not user id
8184
[tiberich]
8285

8386
1.1.24 (2015-04-14)
84-
------------------
87+
--------------------
8588
* is_manager replaced by can_edit_users, bound to permission, not role
8689
[dumitval]
8790

8891
1.1.23 (2015-03-30)
89-
------------------
92+
--------------------
9093
* Change: use bind=True in operations to allow retrieving the email address
9194
[tiberich #24362]
9295

9396
1.1.22 (2015-01-15)
94-
------------------
97+
--------------------
9598
* Bug fix: lineup arrows indicators in changelog with the rest of the text
9699
[tiberich #20422]
97100
* Bug fix: don't show a user as disabled if he's not really disabled
98101
[tiberich #22487]
99102

100103
1.1.21 (2014-10-10)
101-
------------------
104+
--------------------
102105
* Bug fix: removed the visual icon ids, replaced them with some simple arrows
103106
[tiberich #20422]
104107

105108
1.1.20 (2014-09-24)
106-
------------------
109+
--------------------
107110
* Feature: added RESET_ACCOUNT view for the changelog
108111
[tiberich #9164]
109112

110113
1.1.19 (2014-09-19)
111-
------------------
114+
--------------------
112115
* Added method to retrieve user organisation membership
113116
[tiberich #20832]
114117

115118
1.1.18 (2014-07-15)
116-
------------------
119+
--------------------
117120
* Bug fix: fix case when editing user profile and an Organisation Editor was
118121
not found
119122
[tiberich #19143]
120123

121124
1.1.17 (2014-07-03)
122-
------------------
125+
--------------------
123126
* Bug fix: remove all organisations for a user before changing his organisation
124127
[tiberich #19143]
125128

126129
1.1.16 (2014-07-02)
127-
------------------
130+
--------------------
128131
* Bug fix: use the organisation membership for a member when showing his organisation
129132
in the edit form, instead of the 'o' field
130133
[tiberich #19143]
131134

132135
1.1.15 (2014-07-02)
133-
------------------
136+
--------------------
134137
* Bug fix: use the groupware standard_template when Zope is a Naaya groupware
135138
application
136139
[tiberich #19143]
137140

138141
1.1.14 (2014-07-01)
139-
------------------
142+
--------------------
140143
* Bug fix: don't fail when removing user from org if user is not in org
141144
[tiberich #19143]
142145

143146
1.1.13 (2014-07-01)
144-
------------------
147+
--------------------
145148
* Bug fix: use alternate agent to avoid insufficient permissions to perform
146149
LDAP operations
147150
[tiberich #19143]
148151

149152
1.1.12 (2014-07-01)
150-
------------------
153+
--------------------
151154
* Bug fix: remove user from old org when changing his organisation
152155
[tiberich #19143]
153156

154157
1.1.11 (2014-06-30)
155-
------------------
158+
--------------------
156159
* Feature: allow users to select their organisation from a list
157160
[tiberich #19143]
158161

159162
1.1.10 (2014-06-16)
160-
------------------
163+
--------------------
161164
* Bug fix: use the proper author name based on logged in user in changelog
162165
for user operations
163166
[tiberich #20081]
164167

165168
1.1.9 (2014-06-16)
166-
------------------
169+
--------------------
167170
* Bug fix: display the proper organisation name in changelog
168171
[tiberich #20081]
169172

170173
1.1.8 (2014-06-16)
171-
------------------
174+
--------------------
172175
* Bug fix: added views for the ADD_PENDING_TO_ORG changelog action
173176
[tiberich #20081]
174177

175178
1.1.7 (2014-06-10)
176-
------------------
179+
--------------------
177180
* Bugfix related to the encoding of role descriptions [dumitval]
178181

179182
1.1.6 (2014-05-12)
180-
------------------
183+
--------------------
181184
* Bug fix: don't take into consideration "owner of role" when
182185
displaying history of roles
183186
[tiberich #19565]

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pipeline {
130130
}
131131
}
132132

133-
/* stage('Pull Request') {
133+
stage('Pull Request') {
134134
when {
135135
not {
136136
environment name: 'CHANGE_ID', value: ''
@@ -144,7 +144,7 @@ pipeline {
144144
error "Pipeline aborted due to PR not made from develop or hotfix branch"
145145
}
146146
withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN')]) {
147-
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-pr" -e GIT_CHANGE_BRANCH="$CHANGE_BRANCH" -e GIT_CHANGE_AUTHOR="$CHANGE_AUTHOR" -e GIT_CHANGE_TITLE="$CHANGE_TITLE" -e GIT_TOKEN="$GITHUB_TOKEN" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e GIT_ORG="$GIT_ORG" -e GIT_NAME="$GIT_NAME" eeacms/gitflow'''
147+
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-pr" -e GIT_CHANGE_BRANCH="$CHANGE_BRANCH" -e GIT_CHANGE_AUTHOR="$CHANGE_AUTHOR" -e GIT_CHANGE_TITLE="$CHANGE_TITLE" -e GIT_TOKEN="$GITHUB_TOKEN" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e GIT_ORG="$GIT_ORG" -e GIT_NAME="$GIT_NAME" -e GIT_HISTORYFILE=CHANGELOG.rst eeacms/gitflow'''
148148
}
149149
}
150150
}
@@ -161,11 +161,11 @@ pipeline {
161161
steps {
162162
node(label: 'docker') {
163163
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'eea-jenkins', usernameVariable: 'EGGREPO_USERNAME', passwordVariable: 'EGGREPO_PASSWORD'],string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),[$class: 'UsernamePasswordMultiBinding', credentialsId: 'pypi-jenkins', usernameVariable: 'PYPI_USERNAME', passwordVariable: 'PYPI_PASSWORD']]) {
164-
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e EGGREPO_USERNAME="$EGGREPO_USERNAME" -e EGGREPO_PASSWORD="$EGGREPO_PASSWORD" -e GIT_NAME="$GIT_NAME" -e PYPI_USERNAME="$PYPI_USERNAME" -e PYPI_PASSWORD="$PYPI_PASSWORD" -e GIT_ORG="$GIT_ORG" -e GIT_TOKEN="$GITHUB_TOKEN" eeacms/gitflow'''
164+
sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e EGGREPO_USERNAME="$EGGREPO_USERNAME" -e EGGREPO_PASSWORD="$EGGREPO_PASSWORD" -e GIT_NAME="$GIT_NAME" -e PYPI_USERNAME="$PYPI_USERNAME" -e PYPI_PASSWORD="$PYPI_PASSWORD" -e GIT_ORG="$GIT_ORG" -e GIT_TOKEN="$GITHUB_TOKEN" -e GIT_HISTORYFILE=CHANGELOG.rst eeacms/gitflow'''
165165
}
166166
}
167167
}
168-
}*/
168+
}
169169

170170
}
171171

MANIFEST.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
include *.rst
2-
recursive-include eea *
3-
global-exclude *py[co]
4-
1+
include *.md *.rst *.txt
2+
graft docs
3+
graft eea
4+
global-exclude *pyc
5+
global-exclude *~
6+
global-exclude *.un~
7+
global-include *.mo

eea/userseditor/userdetails.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def wrap(self, body_html):
101101
try:
102102
layout = self.aq_parent.getLayoutTool().getCurrentSkin()
103103
main_template = layout.getTemplateById('standard_template')
104-
except:
104+
except Exception:
105105
main_template = self.aq_parent.restrictedTraverse(
106106
'standard_template.pt')
107107
main_page_macro = main_template.macros['page']
@@ -238,7 +238,7 @@ def _prepare_user_page(self, uid):
238238

239239
for (role_id, attrs) in ldap_roles:
240240
roles.append((role_id,
241-
attrs.get('description', ('', ))[0].decode('utf8')))
241+
attrs.get('description', (b'', ))[0].decode('utf8')))
242242
user = agent.user_info(uid)
243243
user['jpegPhoto'] = agent.get_profile_picture(uid)
244244
user['certificate'] = agent.get_certificate(uid)

eea/userseditor/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.0

setup.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1+
import os
12
from setuptools import setup, find_packages
23

3-
setup(name='eea.userseditor',
4-
version='1.1.39',
4+
NAME = "eea.userseditor"
5+
PATH = NAME.split('.') + ['version.txt']
6+
VERSION = open(os.path.join(*PATH)).read().strip()
7+
8+
setup(name=NAME,
9+
version=VERSION,
10+
description="EEA Users Editor",
11+
long_description_content_type="text/x-rst",
12+
long_description=(
13+
open("README.rst").read() + "\n" +
14+
open("CHANGELOG.rst").read()
15+
),
516
author='Eau de Web',
617
author_email='office@eaudeweb.ro',
718
packages=find_packages(),
819
include_package_data=True,
920
platforms=['OS Independent'],
1021
zip_safe=False,
11-
install_requires=['eea.usersdb>=1.3.40', 'deform', 'phonenumbers', 'six'],
22+
install_requires=['eea.usersdb>=1.3.40', 'deform', 'phonenumbers',
23+
'six'],
1224
)

0 commit comments

Comments
 (0)