Skip to content

Commit 97716c9

Browse files
committed
first commit
0 parents  commit 97716c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3265
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.circleci/config.yml

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:3.6.2
6+
7+
working_directory: ~/repo
8+
9+
steps:
10+
- checkout
11+
12+
# Download and cache dependencies
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ .Branch }}-{{ checksum "requirements-ci.txt" }}
16+
17+
- run:
18+
name: install dependencies
19+
command: |
20+
python3 -m venv venv
21+
. venv/bin/activate
22+
pip install -r requirements-ci.txt
23+
24+
- save_cache:
25+
paths:
26+
- ./venv
27+
key: v1-dependencies-{{ .Branch }}-{{ checksum "requirements-ci.txt" }}
28+
29+
- run:
30+
name: check pep8
31+
command:
32+
. venv/bin/activate
33+
flake8 -v --ignore=E501 django_api_client test-django-project
34+
35+
- run:
36+
name: run tests
37+
command: |
38+
. venv/bin/activate
39+
cd ~/repo/test-django-project && py.test -vvv -s --cov django_api_client --cov-report=term-missing --cov-report=html
40+
codecov
41+
42+
- store_artifacts:
43+
path: test-django-project/htmlcov
44+
destination: test-reports
45+
46+
branches:
47+
only:
48+
- master

.gitignore

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
66+
# PyBuilder
67+
target/
68+
69+
# IPython Notebook
70+
.ipynb_checkpoints
71+
72+
# pyenv
73+
.python-version
74+
75+
# celery beat schedule file
76+
celerybeat-schedule
77+
78+
# dotenv
79+
.env
80+
81+
# virtualenv
82+
venv/
83+
ENV/
84+
85+
# Spyder project settings
86+
.spyderproject
87+
88+
# Rope project settings
89+
.ropeproject
90+
91+
*.swp
92+
.idea
93+
db.sqlite3

.pre-commit-config.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: [email protected]:pre-commit/pre-commit-hooks
3+
rev: v2.1.0
4+
hooks:
5+
- id: debug-statements
6+
- id: trailing-whitespace
7+
- id: check-merge-conflict
8+
- id: check-executables-have-shebangs
9+
- id: check-ast
10+
- id: check-byte-order-marker
11+
- id: check-json
12+
- id: check-symlinks
13+
- id: check-vcs-permalinks
14+
- id: check-xml
15+
- id: check-yaml
16+
- id: detect-private-key
17+
- id: forbid-new-submodules
18+
- id: flake8
19+
args: ['--exclude=docs/*,*migrations*', '--ignore=E501']

CHANGES.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Changelog
2+
=========
3+
4+
0.1.0
5+
~~~~~
6+
7+
* Initial release

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2020 @rhenter (django-api-client)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9+
of the Software, and to permit persons to whom the Software is furnished to do
10+
so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include *.rst
2+
include *.txt
3+
recursive-include docs *.rst *.py *.png *.jpg *.dot Makefile

Makefile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
clean: clean-eggs clean-build clean-htmlcov
2+
@find . -iname '*.pyc' -delete
3+
@find . -iname '*.pyo' -delete
4+
@find . -iname '*~' -delete
5+
@find . -iname '*.swp' -delete
6+
@find . -iname '__pycache__' -delete
7+
8+
clean-htmlcov:
9+
@rm -fr htmlcov
10+
11+
clean-eggs:
12+
@find . -name '*.egg' -print0|xargs -0 rm -rf --
13+
@rm -rf .eggs/
14+
15+
clean-build:
16+
@rm -fr build/
17+
@rm -fr dist/
18+
@rm -fr *.egg-info
19+
20+
lint:
21+
pre-commit run -av
22+
23+
pip-dev:
24+
pip install -r requirements-dev.txt
25+
26+
test: deps
27+
cd test-django-project && py.test -vvv
28+
29+
build: clean
30+
python setup.py sdist bdist_wheel
31+
32+
release: build
33+
git tag `python setup.py -q version`
34+
git push origin `python setup.py -q version`
35+
twine upload dist/*

0 commit comments

Comments
 (0)