Permalink
Browse files

Made setup.py to be able to install with pip -e

  • Loading branch information...
FlaviuSim committed Apr 14, 2011
1 parent c580531 commit 413676a0cd3fb7a22ac3655d9597de2d669a79ea
Showing with 74 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +3 −0 CONTRIBUTORS.txt
  3. +2 −0 MANIFEST.in
  4. +2 −0 requirements.txt
  5. +63 −0 setup.py
  6. +1 −1 stockroom/models.py
View
@@ -1,3 +1,6 @@
+build/
+dist/
+django_stockroom.egg-info/
.DS_Store
*.pyc
stockroom/migrations/*
View
@@ -0,0 +1,3 @@
+Alex Cabrera <alex@policus.com>
+Joonas Bergius <joonas@policus.com>
+Flaviu Simihaian <flaviu@closedbracket.com>
View
@@ -0,0 +1,2 @@
+include CONTRIBUTORS.txt
+include LICENSE.txt
View
@@ -0,0 +1,2 @@
+PIL
+django-piston
View
@@ -0,0 +1,63 @@
+from setuptools import setup, find_packages
+
+version = '0.1'
+
+LONG_DESCRIPTION = """
+How to use django-stockroom
+----------------------------
+
+``django-stockroom`` is a lightweight, reusable app for implementing and
+managing features of online stores in your Django projects. Stockroom provides
+product organization, inventory, and shopping cart functionality that can
+tweaked through integration into your project; it is not a turn-key e-commerce
+solution.
+
+There are 3 steps to setting it up with your projects.
+
+1. List this application in the ``INSTALLED_APPS`` portion of your settings
+ file. Your settings file might look something like::
+
+ INSTALLED_APPS = (
+ # ...
+ 'stockroom',
+ )
+
+2. Install the stockroom middleware. Your settings file might look something
+ like::
+
+ MIDDLEWARE_CLASSES = (
+ # ...
+ 'stockroom.middleware.StockroomMiddleware',
+ )
+
+3. Add the url mapping to your project's urls.py::
+
+ url(r'^stockroom/', include('stockroom.urls')),
+
+
+That's it!
+"""
+
+setup(
+ name='django-stockroom',
+ version=version,
+ description="django-stockroom is a lightweight, reusable app for implementing and managing features of online stores in your Django projects.",
+ long_description=LONG_DESCRIPTION,
+ classifiers=[
+ "Programming Language :: Python",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ "Framework :: Django",
+ "Environment :: Web Environment",
+ ],
+ keywords='commerce,shopping,cart,django',
+ author='policus',
+ url='https://github.com/policus/django-stockroom',
+ install_requires=[
+ 'PIL',
+ 'django-piston',
+ ],
+ license='BSD',
+ packages=find_packages(),
+ include_package_data=True,
+ zip_safe=False,
+)
View
@@ -259,4 +259,4 @@ def __unicode__(self):
return _("%s" % (self.stock_item))
def subtotal(self):
- return self.quantity * self.stock_item.get_price()
+ return self.quantity * self.stock_item.get_price()

0 comments on commit 413676a

Please sign in to comment.