Skip to content

Commit 89e4cf8

Browse files
committed
Modernized environment
1 parent bb680c3 commit 89e4cf8

7 files changed

Lines changed: 45 additions & 56 deletions

File tree

Makefile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
clean:
2+
find . -path '*/__pycache__/*' -delete
3+
find . -type d -name '__pycache__' -empty -delete
4+
find . -name *.pyc -o -name *.pyo -delete
5+
rm -rf *.egg-info
6+
rm -rf .cache
7+
rm -rf .tox
8+
rm -f .coverage
9+
10+
style:
11+
flake8
12+
13+
test:
14+
python InvenTree/manage.py test --noinput
15+
16+
setup:
17+
# TODO: replace this with a proper setup.py
18+
pip install -U -r requirements/base.txt
19+
python InvenTree/manage.py migrate --run-syncdb
20+
python InvenTree/manage.py check
21+
22+
develop:
23+
pip install -U -r requirements/dev.txt
24+
25+
superuser:
26+
python InvenTree/manage.py createsuperuser

install.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

pep_check.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

requirements/base.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Django==1.11
2+
djangorestframework==3.6.2
3+
pep8==1.7.0
4+
pkg-resources==0.0.0
5+
pytz==2017.2

requirements/build.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-r base.txt
2+
flake8==3.3.0

requirements/dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r build.txt
2+
django-extensions==1.7.8
3+
graphviz==0.6
4+
ipython==5.3.0

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[flake8]
2+
ignore =
3+
# - W293 - blank lines contain whitespace
4+
W293,
5+
# - E501 - line too long (82 characters)
6+
E501
7+
exclude = .git,__pycache__
8+
max-complexity = 10

0 commit comments

Comments
 (0)