From 485eb7b886a986e8d836f155ced33dfa2d6d0221 Mon Sep 17 00:00:00 2001 From: reverend Date: Thu, 1 Oct 2020 22:06:12 +0200 Subject: [PATCH 1/5] Bumping version --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ede7639..073b58d 100644 --- a/setup.py +++ b/setup.py @@ -8,12 +8,12 @@ with open('Readme.md') as f: setup( name='django-lostplaces', - version='0.1.a5', + version='0.1.2', description='A django app to manage lost places', author='Reverend', author_email='reverend@reverend2048.de', url='https://git.mowoe.com/reverend/lostplaces-backend', - packages=find_packages(exclude=['lostplaces']), + packages=find_packages(exclude=['django_lostplaces']), long_description=readme, long_description_content_type='text/markdown', classifiers=[ From ac0121d96ebad25bf3dcf289b46237c8d9ec6f40 Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 4 Oct 2020 23:22:53 +0200 Subject: [PATCH 2/5] removed old config --- django_lostplaces/setup.cfg | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 django_lostplaces/setup.cfg diff --git a/django_lostplaces/setup.cfg b/django_lostplaces/setup.cfg deleted file mode 100644 index 97ab993..0000000 --- a/django_lostplaces/setup.cfg +++ /dev/null @@ -1,8 +0,0 @@ -# Config options for coverage -# Docs: https://coverage.readthedocs.io/en/latest/config.html - -[coverage:run] -source = . - -[coverage:report] -show_missing = True From 773390b09f4432cfa283e5278b7b43983adc290c Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 4 Oct 2020 23:23:02 +0200 Subject: [PATCH 3/5] Moved files so only the app is packed --- MANIFEST.in => django_lostplaces/MANIFEST.in | 1 + setup.py => django_lostplaces/setup.py | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) rename MANIFEST.in => django_lostplaces/MANIFEST.in (64%) rename setup.py => django_lostplaces/setup.py (89%) mode change 100644 => 100755 diff --git a/MANIFEST.in b/django_lostplaces/MANIFEST.in similarity index 64% rename from MANIFEST.in rename to django_lostplaces/MANIFEST.in index f888311..69159df 100644 --- a/MANIFEST.in +++ b/django_lostplaces/MANIFEST.in @@ -1,3 +1,4 @@ +exclude include LICENSE include Readme.rst include Pipfile diff --git a/setup.py b/django_lostplaces/setup.py old mode 100644 new mode 100755 similarity index 89% rename from setup.py rename to django_lostplaces/setup.py index e21e747..41d13f4 --- a/setup.py +++ b/django_lostplaces/setup.py @@ -1,9 +1,9 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages -with open('Readme.md') as f: +with open('../Readme.md') as f: readme = f.read() setup( @@ -31,5 +31,6 @@ setup( 'django-widget-tweaks', 'django-taggit' ], - include_package_data=True + include_package_data=True, + license='MIT' ) From 4e366d94c99e5300bf3d28b63ff9affe264cc8ea Mon Sep 17 00:00:00 2001 From: reverend Date: Tue, 6 Oct 2020 22:53:35 +0200 Subject: [PATCH 4/5] Fixing Error on sign up --- django_lostplaces/lostplaces/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/forms.py b/django_lostplaces/lostplaces/forms.py index a770ef2..b391316 100644 --- a/django_lostplaces/lostplaces/forms.py +++ b/django_lostplaces/lostplaces/forms.py @@ -26,7 +26,7 @@ class ExplorerCreationForm(UserCreationForm): self.add_error('voucher', 'Invalid voucher') return False - if not fetched_voucher.valid: + if not fetched_voucher.valid(): self.add_error('voucher', 'Expired voucher') return False From c613d15e89e9ea765c785d0af2d8facda856fb73 Mon Sep 17 00:00:00 2001 From: reverend Date: Fri, 27 Nov 2020 07:57:56 +0100 Subject: [PATCH 5/5] Updated Readme --- Readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 4a4a90c..48f0ba6 100644 --- a/Readme.md +++ b/Readme.md @@ -22,7 +22,7 @@ Right now it depends on the following non-core Python 3 libraries. These can be * [django-widget-tweaks](https://github.com/jazzband/django-widget-tweaks) Tweak the form field rendering in templates, not in python-level form definitions. * [django-taggit](https://github.com/jazzband/django-taggit) A simpler approach to tagging with Django. - ### Bundled Dependencies +### Bundled Dependencies We also leverage some other great OpenSource projects' code. We bundle those in the distribution to obsolete the need to pull those files from monitored CDNs. * [OpenLayers](https://openlayers.org/) [6.4.3] OpenLayers makes it easy to put a dynamic map in any web page. It can display map tiles, vector data and markers loaded from any source. @@ -88,7 +88,9 @@ Run `django_lostplaces/managy.py collectstatic` and you should be ready to go. If you haven't already setup a django instance, see [django's documentation](https://docs.djangoproject.com/en/3.1/topics/install/). -After that, download the desired release (probably the latest one) [from the releases page](https://git.mowoe.com/reverend/lostplaces-backend/releases) and install it using `pip install --user name-of-the-file.tar.gz` +Afterwards, either +- download the desired release [from the releases page](https://git.mowoe.com/reverend/lostplaces-backend/releases) and install it using `pip install --user name-of-the-file.tar.gz` +- or install the latest release using `pip install django-lostplaces` *Note: You can run pip install without the --user flag, which will require root privileges and introduces potential security issues.* @@ -144,3 +146,7 @@ Before making the django instance public, you should tweak the config `settings. Run `django_lostplaces/manage.py collectstatic` you should be ready to go. + + +### Contact +If you run into any issues, have any questions or If you are interested in this project in general, feel free to get in touch with us via [reverend@reverend2048.de](mailto:reverend@reverend2048.de), we do speak English and German. \ No newline at end of file