Changeset - 3f66787d69d9
[Not reviewed]
0 2 0
Branko Majic (branko) - 12 years ago 2014-01-22 22:27:52
branko@majic.rs
DJPYD-2: Added Django as part of installation requirements.
2 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/installation.rst
Show inline comments
 
Installation
 
============
 

	
 
Django Pydenticon can be installed through one of the following methods:
 

	
 
* Using *pip*, which is the easiest and recommended way for production websites.
 

	
 
Requirements
 
------------
 

	
 
The main external requirement for Django Pydenticon is the `Pydenticon
 
<https://github.com/azaghal/pydenticon>`_ library, which is used for generating
 
Django Pydenticon depends on the following Python packages:
 

	
 
* `Django https://www.djangoproject.com/`_ web framework.
 
* `Pydenticon <https://github.com/azaghal/pydenticon>`_ library, which is used for generating
 
  the identicons.
 

	
 
Using pip
 
---------
 

	
 
In order to install latest stable release of Django Pydenticon using *pip*, run
 
the following command::
 

	
 
  pip install django-pydenticon
 

	
 
In order to install the latest development version of Django Pydenticon from
 
Github, use the following command::
 

	
 
  pip install -e git+https://github.com/azaghal/django-pydenticon#egg=django_pydenticon
 

	
 
.. warning::
 

	
 
   You will need to update the ``pip`` installation in your virtual environment
 
   if you get the following error while running the above command::
 

	
 
     AttributeError: 'NoneType' object has no attribute 'skip_requirements_regex'
 

	
 
   You can update ``pip`` to latest version with::
 

	
setup.py
Show inline comments
 
import os
 
from setuptools import setup, find_packages
 

	
 
README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
INSTALL_REQUIREMENTS = ["pydenticon"]
 
INSTALL_REQUIREMENTS = ["pydenticon", "django"]
 
TEST_REQUIREMENTS = []
 

	
 
# allow setup.py to be run from any path
 
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
 

	
 
setup(
 
    name='django-pydenticon',
 
    version='0.1',
 
    packages=find_packages(exclude=["testproject", "testproject.*"]),
 
    include_package_data=True,
 
    license='BSD',
 
    description='Django application providing generated identicons to the web.',
 
    long_description=README,
 
    url='https://github.com/azaghal/django-pydenticon',
 
    author='Branko Majic',
 
    author_email='branko@majic.rs',
 
    install_requires=INSTALL_REQUIREMENTS,
 
    tests_require=TEST_REQUIREMENTS,
 
    classifiers=[
 
        'Development Status :: 4 - Beta',
 
        'Environment :: Web Environment',
 
        'Framework :: Django',
 
        'Intended Audience :: Developers',
 
        'License :: OSI Approved :: BSD License',
0 comments (0 inline, 0 general)