Skip to content

Commit 6e93b6c

Browse files
committed
initial commit: create basic package
0 parents  commit 6e93b6c

9 files changed

+158
-0
lines changed

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# general things to ignore
2+
build/
3+
dist/
4+
*.egg-info/
5+
*.egg
6+
*.py[cod]
7+
__pycache__/
8+
*.so
9+
*~
10+
11+
# due to using pytest
12+
.cache

LICENSE.txt

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

MANIFEST.in

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Include the license file
2+
include LICENSE.txt
3+
4+
# If using Python 2.6 or less, then have to include package data, even though
5+
# it's already declared in setup.py
6+
# include sample/*.dat

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pyDistEval
2+
=======================
3+
4+
A package to investigate missmatches and agreement of multivariate parameter distributions. This should help e.g. to track down mismatches between simulatiuon and measurement.

disteval/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
def main():
3+
"""Entry point for the application script"""
4+
print("Call your main application code here")

disteval/package_data.dat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
some data

setup.py

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Always prefer setuptools over distutils
2+
from setuptools import setup, find_packages
3+
# To use a consistent encoding
4+
from codecs import open
5+
from os import path
6+
7+
here = path.abspath(path.dirname(__file__))
8+
9+
# Get the long description from the README file
10+
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
11+
long_description = f.read()
12+
13+
setup(
14+
name='disteval',
15+
16+
# Versions should comply with PEP440. For a discussion on single-sourcing
17+
# the version across setup.py and the project code, see
18+
# https://packaging.python.org/en/latest/single_source_version.html
19+
version='0.0.1',
20+
21+
description='A package to investigate missmatches and agreement in multivariate parameter distributions',
22+
long_description=long_description,
23+
24+
# The project's main homepage.
25+
url='https://github.com/jebuss/pydisteval',
26+
27+
# Author details
28+
author='Mathis Boerner, Jens Buss',
29+
30+
31+
# Choose your license
32+
license='MIT',
33+
34+
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
35+
classifiers=[
36+
# How mature is this project? Common values are
37+
# 3 - Alpha
38+
# 4 - Beta
39+
# 5 - Production/Stable
40+
'Development Status :: 3 - Alpha',
41+
42+
# Indicate who your project is intended for
43+
'Intended Audience :: Developers',
44+
'Topic :: Software Development :: Build Tools',
45+
46+
# Pick your license as you wish (should match "license" above)
47+
'License :: OSI Approved :: MIT License',
48+
49+
# Specify the Python versions you support here. In particular, ensure
50+
# that you indicate whether you support Python 2, Python 3 or both.
51+
'Programming Language :: Python :: 3',
52+
'Programming Language :: Python :: 3.3',
53+
'Programming Language :: Python :: 3.4',
54+
'Programming Language :: Python :: 3.5',
55+
],
56+
57+
# What does your project relate to?
58+
keywords='multivariate distribution evaluation',
59+
60+
# You can just specify the packages manually here if your project is
61+
# simple. Or you can use find_packages().
62+
packages=find_packages(exclude=['contrib', 'docs', 'tests']),
63+
64+
# Alternatively, if you want to distribute just a my_module.py, uncomment
65+
# this:
66+
# py_modules=["my_module"],
67+
68+
# List run-time dependencies here. These will be installed by pip when
69+
# your project is installed. For an analysis of "install_requires" vs pip's
70+
# requirements files see:
71+
# https://packaging.python.org/en/latest/requirements.html
72+
install_requires=[
73+
'pandas', # in anaconda
74+
'numpy', # in anaconda
75+
'matplotlib>=1.4', # in anaconda
76+
'sklearn-pandas',
77+
],
78+
79+
80+
81+
# If there are data files included in your packages that need to be
82+
# installed, specify them here. If using Python 2.6 or less, then these
83+
# have to be included in MANIFEST.in as well.
84+
# package_data={
85+
# 'sample': ['package_data.dat'],
86+
# },
87+
88+
# Although 'package_data' is the preferred approach, in some case you may
89+
# need to place data files outside of your packages. See:
90+
# http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files # noqa
91+
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
92+
# data_files=[('my_data', ['data/data_file'])],
93+
94+
# To provide executable scripts, use entry points in preference to the
95+
# "scripts" keyword. Entry points provide cross-platform support and allow
96+
# pip to create the appropriate form of executable for the target platform.
97+
# entry_points={
98+
# 'console_scripts': [
99+
# 'sample=sample:main',
100+
# ],
101+
# },
102+
)

tests/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# the inclusion of the tests module is not meant to offer best practices for
2+
# testing in general, but rather to support the `find_packages` example in
3+
# setup.py that excludes installing the "tests" package

tests/test_simple.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# the inclusion of the tests module is not meant to offer best practices for
2+
# testing in general, but rather to support the `find_packages` example in
3+
# setup.py that excludes installing the "tests" package
4+
5+
6+
def test_success():
7+
assert True

0 commit comments

Comments
 (0)