Skip to content

Commit

Permalink
Bump to 4.1.1 (#462)
Browse files Browse the repository at this point in the history
* Bump GeoNode to 4.1.1

* dropped updategeoip task
  • Loading branch information
giohappy committed Aug 8, 2023
1 parent 154d041 commit 672d80f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 40 deletions.
1 change: 0 additions & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ else

if [ ${FORCE_REINIT} = "true" ] || [ ${FORCE_REINIT} = "True" ] || [ ! -e "/mnt/volumes/statics/geonode_init.lock" ]; then
echo "LOG INIT" > /usr/src/{{project_name}}/invoke.log
invoke updategeoip
invoke fixtures
invoke monitoringfixture
invoke initialized
Expand Down
31 changes: 0 additions & 31 deletions src/pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,6 @@ def static(options):
sh('grunt production')


@task
@needs([
'setup_geoserver',
])
def setup(options):
"""Get dependencies and prepare a GeoNode development environment."""

if MONITORING_ENABLED:
updategeoip(options)

info('GeoNode development environment successfully set up.'
'If you have not set up an administrative account,'
' please do so now. Use "paver start" to start up the server.')


def grab_winfiles(url, dest, packagename):
# Add headers
headers = {'User-Agent': 'Mozilla 5.10'}
Expand Down Expand Up @@ -377,22 +362,6 @@ def upgradedb(options):
print(f"Upgrades from version {version} are not yet supported.")


@task
@cmdopts([
('settings=', 's', 'Specify custom DJANGO_SETTINGS_MODULE')
])
def updategeoip(options):
"""
Update geoip db
"""
if MONITORING_ENABLED:
settings = options.get('settings', '')
if settings and 'DJANGO_SETTINGS_MODULE' not in settings:
settings = f'DJANGO_SETTINGS_MODULE={settings}'

sh(f"{settings} python -W ignore manage.py updategeoip -o")


@task
@cmdopts([
('settings=', 's', 'Specify custom DJANGO_SETTINGS_MODULE')
Expand Down
2 changes: 1 addition & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
git+https://github.com/GeoNode/geonode.git@4.1.x#egg=GeoNode
GeoNode==4.1.1
7 changes: 0 additions & 7 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,6 @@ def monitoringfixture(ctx):
logger.error(f"ERROR installing monitoring fixture: {str(e)}")


@task
def updategeoip(ctx):
print("**************************update geoip*******************************")
if ast.literal_eval(os.environ.get('MONITORING_ENABLED', 'False')):
ctx.run(f"django-admin.py updategeoip --settings={_localsettings()}", pty=True)


@task
def updateadmin(ctx):
print("***********************update admin details**************************")
Expand Down

0 comments on commit 672d80f

Please sign in to comment.