Skip to content

Commit

Permalink
transition away from having a hard Django dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
crccheck committed Dec 28, 2015
1 parent b34a944 commit 074fb77
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ clean: ## Remove generated files
find . -name "*.pyc" -delete
find . -name ".DS_Store" -delete

install: ## Install development requirements
pip install -r requirements.txt
pip install Django tox

test: ## Run test suite
python -W ignore::RuntimeWarning $(MANAGE) test django_object_actions

Expand Down
15 changes: 9 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,20 @@ Getting started *(with virtualenvwrapper)*::
# get a copy of the code
git clone git@github.com:crccheck/django-object-actions.git
cd django-object-actions
# set up your virtualenv
# set up your virtualenv (with virtualenvwrapper)
mkvirtualenv django-object-actions
pip install -r requirements.txt
# hack your path so that we can reference packages starting from the root
# Install requirements
make install
# Hack your path so that we can reference packages starting from the root
add2virtualenv .
make test # run test suite
make quickstart # runs 'make resetdb' and some extra steps

Various helpers are available as make commands. View ``Makefile`` to see what
other utilities you can do.
This will install whatever the latest stable version of Django is. You can also
install a specific version of Django and ``pip install -r requirements.txt``.

Various helpers are available as make commands. Type ``make help`` and view the
``Makefile`` to see what other things you can do.


Similar Packages
Expand All @@ -204,4 +208,3 @@ but does not require messing with your urls.py, does not do anything
special with permissions, and uses the same patterns as making `admin
actions <https://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#actions-as-modeladmin-methods>`_
in Django.

1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Django==1.9
dj-database-url==0.3.0
django-extensions==1.6.1
tox==2.3.1
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ setenv =
commands =
{envpython} example_project/manage.py test django_object_actions
deps =
dj_database_url==0.3.0
django-extensions==1.6.1
factory-boy==2.6.0
coveralls: coverage
-rrequirements.txt
django15: Django<1.6
django16: Django<1.7
django17: Django<1.8
Expand Down

0 comments on commit 074fb77

Please sign in to comment.