Skip to content

Commit

Permalink
adding setup.py, tox.ini and update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SRJ9 committed Oct 16, 2016
1 parent 2fddcbe commit f46d551
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 1 deletion.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# driver27
Racing competition manager in Django
Racing competition manager in Django where you can manage different
motor competitions with its own punctuation rules, races, drivers, teams
which, at the same time, can be part of multiple competitions.

Versions
========
- 0.14-ALO (Fernando Alonso 14)
- 0.27-VIL (Gilles Villeneuve 27)

0.14
====
- Initial models
- Basic relation restriction with exceptions and tests
- Basic templates to frontend views
- Basic demo to test the app

models
===========
- Driver
- Team
- Circuit
- Grand Prix
- Competition
- Season
- Race
- Result
- Contender (Driver/Competition relation)
- Seat (Contender/Team relation)
- fixtures folder contains fixture of each model to demo project.

Demo
====
```bash
$ git clone https://github.com/SRJ9/django-driver27
$ cd django-driver27 # or name of destiny folder
$ python demo/manage.py runserver
```

Todo
====
- [ ] Add records by season, driver, team, competition
- [ ] Add drivers profile with records, last_wins, teams...
- [ ] Add easy clone to Season
- [ ] Translate
- [ ] 1980's punctuation. Only 11 best results.
- [ ] Old punctuation. Split season races, and get only 4 of each half.

# History
Driver 27 is a reference to car number of Gilles Villeneuve, F1 Driver died in 1982. Gilles is considered one of best driver despite he never won the World Championship, something that Jacques Villeneuve, his son, did in 1998.
Expand Down
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from setuptools import setup

with open('requirements.txt') as f:
requirements = f.read().splitlines()

readme = open('README.md', 'r')
README_TEXT = readme.read()
readme.close()

setup(
name='driver27',
version='0.14-ALO',
packages=['driver27', 'driver27.tests', 'driver27.migrations'],
url='https://github.com/SRJ9/django-driver27.git',
license='MIT',
author='Jose ER',
author_email='srj9es@gmail.com',
description='Racing competition manager based on Django',
install_requires=requirements,
long_description = README_TEXT,
)
24 changes: 24 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py{27,py}-d{17,18,19,110,dev}
py{33,34}-d{17,18,dev}
py{35}-d{18,19,110,dev}

[testenv]
setenv =
DJANGO_SETTINGS_MODULE = demo.dr27_demo.settings

commands =
py.test

deps =
pytest
-rrequirements.txt
d17: django>=1.7,<1.8
d18: django>=1.8,<1.9
d19: django>=1.9,<1.10
d110: django>=1.10,<1.11

0 comments on commit f46d551

Please sign in to comment.