Skip to main content

Geospatial region support for Rescape projects

Project description

===== Rescape-Region

A Django app to support limiting users by geographic region

Quick start

  1. Add "region-app" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'regional', ]

  2. Include the polls URLconf in your project urls.py like this::

    path('regional/', include('regional.urls')),

  3. Run python manage.py migrate to create the regional models.

Installation

Create a virtual environment using

mkdir ~/.virtualenvs
python3 -m venv ~/.virtualenvs/rescape-region
Activate it
source ~/.virtualenvs/rescape-region/bin/activate

Install requirements

$VIRTUAL_ENV/bin/pip install --no-cache-dir  --upgrade -r requirements.txt

Add the following to the bottom $VIRTUAL_ENV/bin/activate to setup the PYTHONPATH. Replace the path with your code directory

export RESCAPE_REGION_BASE_DIR=/Users/andy/code/rescape-graphene
export RESCAPE_REGION_PROJECT_DIR=$RESCAPE_REGION_BASE_DIR/urbinsight
export PYTHONPATH=.:$RESCAPE_REGION_BASE_DIR:$RESCAPE_REGION_PROJECT_DIR

Build

Update the version in setup.py Run to generate build: Update the version with bumpversion, which can't seem to look it up itself but updates setup.py

git commit . -m "Version update" && git push
bumpversion --current-version {look in setup.py} patch setup.py
python3 setup.py clean sdist bdist_wheel

To distribute to pypi site: Upload package:

twine upload dist/*

All at once:

git commit . -m "Version update" && git push && bumpversion --current-version {look in setup.py} patch setup.py && python3 setup.py clean sdist bdist_wheel && twine upload dist/*

For setup of testpypi see ~/.pypirc or create one according to the testpypi docs: e.g.: [distutils] index-servers= pypi testpypi

[testpypi] repository: https://test.pypi.org/legacy/ username: your username for pypi.org

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rescape_region-0.0.3.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rescape_region-0.0.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file rescape_region-0.0.3.tar.gz.

File metadata

  • Download URL: rescape_region-0.0.3.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for rescape_region-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d006a5ff052bb91fdf27fe387e25076eaa96a816ba6244bc65551c3509fdc3f8
MD5 078904495503547a218d9c2e0b3e1ea3
BLAKE2b-256 deae6b1b8f44b6dfb68cb76a82f23ecc22758da5d48ac8063e7066870168044e

See more details on using hashes here.

File details

Details for the file rescape_region-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: rescape_region-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for rescape_region-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 427141b3b02983a5696e2014deca40619791e8230259aba554dd133ce4f321f6
MD5 0cadb104f7d7116b7148095c50484010
BLAKE2b-256 66bd5c4a569da6a8f656046d1ad86c356913d366a32c40d36b887d13b9b39d22

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page