Skip to content

Commit

Permalink
Merge pull request #1 from wesokes/master
Browse files Browse the repository at this point in the history
initial release
  • Loading branch information
somewes authored Feb 8, 2018
2 parents 3011ca8 + 9b27055 commit 6a33260
Show file tree
Hide file tree
Showing 38 changed files with 2,478 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
branch = True
omit =
*/migrations/*
ambition_utils/version.py
source = ambition_utils
[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
fail_under = 100
show_missing = 1
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Compiled python files
*.pyc

# Vim files
*.swp
*.swo

# Coverage files
.coverage
htmlcov/

# Setuptools distribution folder.
/dist/
/build/

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
/*.egg
.eggs/

# Virtualenv
env/
venv/

# OSX
.DS_Store

# Pycharm
.idea/

# Documentation artifacts
docs/_build/

# IPython Notebook
.ipynb_checkpoints/

# Test database
test_ambition_dev
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
sudo: true
language: python
python:
- '3.5'
- '3.6'
env:
global:
- DB=postgres
matrix:
- DJANGO=">=1.11,<2.0"
- DJANGO=">=2.0,<2.1"
addons:
postgresql: '9.5'
install:
- pip install -q coverage coveralls flake8 Django$DJANGO django-nose>=1.4
before_script:
- psql -c 'CREATE DATABASE ambition_utils;' -U postgres
script:
- flake8 ./ambition_utils
- coverage run setup.py test
- coverage report --fail-under=100
after_success:
coveralls
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Wes Okes ([email protected])
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2018 Ambition

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include README.rst
include LICENSE
1 change: 0 additions & 1 deletion README.md

This file was deleted.

38 changes: 38 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.. image:: https://travis-ci.org/ambitioninc/ambition-utils.png
:target: https://travis-ci.org/ambitioninc/ambition-utils

.. image:: https://coveralls.io/repos/ambitioninc/ambition-utils/badge.png?branch=develop
:target: https://coveralls.io/r/ambitioninc/ambition-utils?branch=develop

.. image:: https://pypip.in/v/ambition-utils/badge.png
:target: https://crate.io/packages/ambition-utils/
:alt: Latest PyPI version

.. image:: https://pypip.in/d/ambition-utils/badge.png
:target: https://crate.io/packages/ambition-utils/


Requirements
------------
* Python 3.6
* Django 1.11+
* Postgres 9.5+

Installation
------------
To install the latest release, type::

pip install ambition-utils

To install the latest code directly from source, type::

pip install git+git://github.com/ambitioninc/ambition-utils.git

Documentation
-------------

Full documentation is available at http://ambition-utils.readthedocs.org

License
-------
MIT License (see LICENSE)
4 changes: 4 additions & 0 deletions ambition_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# flake8: noqa
from .version import __version__

default_app_config = 'ambition_utils.apps.AmbitionUtilsConfig'
6 changes: 6 additions & 0 deletions ambition_utils/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AmbitionUtilsConfig(AppConfig):
name = 'ambition_utils'
verbose_name = 'Ambition Utils'
10 changes: 10 additions & 0 deletions ambition_utils/docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Release Notes
=============

0.1.1
-----
* Use form config class to more easily control and document arguments

0.1.0
-----
* This is the initial release of ambition-utils
Loading

0 comments on commit 6a33260

Please sign in to comment.