Skip to content

Commit 57fc846

Browse files
authored
Merge pull request #33 from ernstleierzopf/development
Remove dependency on python3-pkg-resources
2 parents 032e30f + 043413c commit 57fc846

File tree

10 files changed

+21
-45
lines changed

10 files changed

+21
-45
lines changed

tasks/RedHat.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
- name: Install python3-cerberus
2-
pip:
3-
name: cerberus
4-
executable: pip3
5-
state: latest
6-
71
- name: pip self-update
82
pip:
93
name: pip

tasks/debian-buster.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
executable: pip3
55
state: latest
66

7-
- name: Install python3-cerberus
8-
pip:
9-
name: cerberus
10-
executable: pip3
11-
state: latest
12-
137
- name: Install python3-kafka
148
pip:
159
name: kafka-python

tasks/main.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,13 @@
150150
state: latest
151151
extra_args: "{{pip_extra_args}}"
152152

153+
- name: Install python3-cerberus
154+
pip:
155+
name: cerberus
156+
executable: pip3
157+
state: latest
158+
extra_args: "{{pip_extra_args}}"
159+
153160
- name: Find zmq
154161
find:
155162
paths: "{{aminer_pythonpath}}"
@@ -164,6 +171,13 @@
164171
file_type: "directory"
165172
register: pyzmqlibs
166173

174+
- name: Find cerberus
175+
find:
176+
paths: "{{aminer_pythonpath}}"
177+
patterns: 'cerberus'
178+
file_type: "directory"
179+
register: cerberus
180+
167181
- name: Link zmq
168182
file:
169183
src: "{{ item.path }}"
@@ -178,6 +192,13 @@
178192
state: link
179193
with_items: "{{pyzmqlibs.files }}"
180194

195+
- name: Link cerberus
196+
file:
197+
src: "{{ item.path }}"
198+
dest: "/etc/aminer/conf-enabled/{{item.path.split('/')[-1]}}"
199+
state: link
200+
with_items: "{{cerberus.files }}"
201+
181202
- name: Find json.cpython
182203
find:
183204
paths: "{{aminer_pythonpath}}"
@@ -220,20 +241,6 @@
220241
state: link
221242
with_items: "{{scipy.files }}"
222243

223-
- name: Find cerberus
224-
find:
225-
paths: "{{aminer_pythonpath}}"
226-
patterns: 'cerberus'
227-
file_type: "directory"
228-
register: cerberus
229-
230-
- name: Link cerberus
231-
file:
232-
src: "{{ item.path }}"
233-
dest: "/etc/aminer/conf-enabled/{{item.path.split('/')[-1]}}"
234-
state: link
235-
with_items: "{{cerberus.files }}"
236-
237244
- name: Find kafka
238245
find:
239246
paths: "{{aminer_pythonpath}}"
@@ -262,12 +269,6 @@
262269
state: link
263270
with_items: "{{numpy.files }}"
264271

265-
- name: Link python3-pkg_resources
266-
file:
267-
src: "{{aminer_pythonpath[0]}}/pkg_resources"
268-
dest: "/etc/aminer/conf-enabled/pkg_resources"
269-
state: link
270-
271272
- name: Link yaml
272273
file:
273274
src: "{{aminer_pythonpath[0]}}/yaml"

vars/RedHat.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-pytz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-urllib3
1311
- python3-defusedxml
1412
- python3-yaml

vars/debian-bookworm.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-tz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-kafka
1311
- python3-urllib3
1412
- python3-statsmodels

vars/debian-bullseye.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-tz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-kafka
1311
- python3-urllib3
1412
- python3-statsmodels

vars/debian-buster.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ aminer_packages:
44
- python3-tz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six

vars/fedora.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-pytz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-kafka
1311
- python3-urllib3
1412
- python3-statsmodels

vars/ubuntu-2004.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-tz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-kafka
1311
- python3-urllib3
1412
- python3-statsmodels

vars/ubuntu-2204.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ aminer_packages:
44
- python3-tz
55
- python3-scipy
66
- python3-numpy
7-
- python3-pkg-resources
87
- python3-setuptools
98
- python3-dateutil
109
- python3-six
11-
- python3-cerberus
1210
- python3-kafka
1311
- python3-urllib3
1412
- python3-statsmodels

0 commit comments

Comments
 (0)