Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-ash committed Oct 21, 2019
0 parents commit c9ead3b
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
@@ -0,0 +1,28 @@
# Python CircleCI 2.0 configuration file
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
working_directory: ~/repo
steps:
- checkout
- run:
name: Build package
command: |
python3 -m venv venv
. venv/bin/activate
python3 setup.py sdist
- run:
name: Install dependencies
command: |
sudo pip install --upgrade pip
sudo pip install .[dev]
- run:
name: Run pre-commit hooks
command: |
pre-commit run --all-files
- run:
name: Run tests
command: |
python3 setup.py test
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
__pycache__/
build/
dist/
*.egg-info/
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,16 @@
# Configuration file for pre-commit-hooks that will
# run before allowing commits to the repository.
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-ast
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
...
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019 Jason Ash

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.
3 changes: 3 additions & 0 deletions MANIFEST.in
@@ -0,0 +1,3 @@
include README.md
include LICENSE.md
include MANIFEST.in
Empty file added README.md
Empty file.
Empty file added pyesg/__init__.py
Empty file.
18 changes: 18 additions & 0 deletions setup.py
@@ -0,0 +1,18 @@
"""Package setup"""
from setuptools import setup, find_packages

setup(
name="pyesg",
version="0.1",
description="Economic Scenario Generator in Python",
long_description=open("README.md").read(),
url="https://github.com/jason-ash/pyesg",
author="Jason Ash",
author_email="jason@ashanalytics.com",
packages=find_packages(),
install_requires=["numpy", "pandas"],
extras_require={"dev": ["pre-commit"]},
include_package_data=True,
test_suite="tests",
zip_safe=False,
)
Empty file added tests/__init__.py
Empty file.

0 comments on commit c9ead3b

Please sign in to comment.