Skip to content

Commit

Permalink
Install ckan separately as editable installs arent supported by the n…
Browse files Browse the repository at this point in the history
…ew convention and remove typing as it is not needed in current python versions
  • Loading branch information
Zharktas committed Dec 8, 2023
1 parent 969544e commit 670f0d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/ckan/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
virtualenv: "{{ virtualenv }}"
register: ckan_installation

- name: Install ckan
pip:
name: git+https://github.com/ckan/[email protected]#egg=ckan
editable: true
virtualenv: "{{ virtualenv }}"

#- name: Install CKAN requirements
# pip: requirements={{ virtualenv }}/src/ckan/requirements.txt virtualenv={{ virtualenv }} state=latest

Expand Down
3 changes: 1 addition & 2 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
-e git+https://github.com/ckan/[email protected]#egg=ckan[requirements]
ckan[requirements] @ git+https://github.com/ckan/[email protected]

# requirements of apicatalog
testrepository==0.0.20
typing
uwsgi

# harvest requires newer six
Expand Down
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile
#
-e git+https://github.com/ckan/[email protected]#egg=ckan # [requirements] removed manually to stop resolving
# via -r requirements.in
alembic==1.0.0
# via ckan
babel==2.7.0
Expand All @@ -24,6 +22,9 @@ chardet==4.0.0
# via
# ckan
# requests
# Removed manually, ckan is installed with ansible as this convention does not allow editable installs
#ckan @ git+https://github.com/ckan/[email protected]
# via -r requirements.in
click==7.1.2
# via
# ckan
Expand Down Expand Up @@ -58,7 +59,7 @@ idna==2.10
# via
# ckan
# requests
importlib-metadata==5.0.0
importlib-metadata==7.0.0
# via markdown
itsdangerous==1.1.0
# via
Expand Down Expand Up @@ -168,8 +169,6 @@ testtools==2.5.0
# via
# python-subunit
# testrepository
typing==3.7.4.3
# via -r requirements.in
tzlocal==1.3
# via ckan
unicodecsv==0.14.1
Expand Down Expand Up @@ -199,7 +198,7 @@ werkzeug[watchdog]==1.0.0
# via
# ckan
# flask
zipp==3.10.0
zipp==3.17.0
# via importlib-metadata
zope-interface==4.3.2
# via
Expand Down

0 comments on commit 670f0d9

Please sign in to comment.