-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix model structure, Makefile and clean ups
- Loading branch information
1 parent
f0d9c0f
commit 79d7676
Showing
8 changed files
with
94 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
|
||
help: | ||
@echo "Options" | ||
@echo "---------------------------------------------------------------" | ||
@echo "help: This help" | ||
@echo "requirements: Download requeroments" | ||
@echo "requirements-test: Download requirements for tests" | ||
@echo "requirements-docs: Download requirements for docs" | ||
@echo "run-tests: Run tests with coverage" | ||
@echo "publish: Publish new version on Pypi" | ||
@echo "clean: Clean compiled files" | ||
@echo "flake: Run Flake8" | ||
@echo "prepush: Helper to run before to push to repo" | ||
@echo "---------------------------------------------------------------" | ||
|
||
requirements: | ||
@echo "Installing dirty-models requirements..." | ||
pip install -r requirements.txt | ||
|
||
requirements-test: | ||
@echo "Installing dirty-models tests requirements..." | ||
@make requirements | ||
pip install -r requirements-test.txt | ||
|
||
requirements-docs: | ||
@echo "Installing dirty-models docs requirements..." | ||
@make requirements | ||
pip install -r requirements-docs.txt | ||
|
||
run-tests: | ||
@echo "Running tests..." | ||
nosetests --with-coverage -d --cover-package=dirty_models | ||
|
||
publish: | ||
@echo "Publishing new version on Pypi..." | ||
python setup.py sdist upload | ||
|
||
clean: | ||
@echo "Cleaning compiled files..." | ||
find . | grep -E "(__pycache__|\.pyc|\.pyo)$ " | xargs rm -rf | ||
|
||
flake: | ||
@echo "Running flake8 tests..." | ||
flake8 dirty_models | ||
flake8 tests | ||
|
||
prepush: | ||
@make flake | ||
@make run-tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sphinx | ||
python-dateutil | ||
iso8601 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
name='dirty-models', | ||
url='https://github.com/alfred82santa/dirty-models', | ||
author='alfred82santa', | ||
version='0.5.1', | ||
version='0.5.2', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters