Permalink
Browse files

Initial commit (setup and testing infrastructure).

  • Loading branch information...
catch22 committed Jun 22, 2016
0 parents commit 7275db0a366075c31fbf82d4a98a80e8a8e08cb0
Showing with 79 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +8 −0 .travis.yml
  3. +1 −0 MANIFEST.in
  4. +3 −0 README.md
  5. +1 −0 barvikron/__init__.py
  6. +2 −0 setup.cfg
  7. +58 −0 setup.py
  8. +2 −0 tests/test_hello_world.py
@@ -0,0 +1,4 @@
.eggs
.tox
*.egg-info
__pycache__
@@ -0,0 +1,8 @@
language: python
python:
- "2.7"
- "3.4"
- "3.5"
- "pypy"
script: python setup.py test
@@ -0,0 +1 @@
include README.md
@@ -0,0 +1,3 @@
# Barvikron
Efficiently compute Kronecker coefficients of bounded height using the technique of [arXiv:1204.4379](http://arxiv.org/abs/1204.4379).
@@ -0,0 +1 @@
__version__ = '0.3'
@@ -0,0 +1,2 @@
[wheel]
universal=1
@@ -0,0 +1,58 @@
from setuptools import setup
from setuptools.command.test import test as TestCommand
import ast, io, re, os.path, sys
# determine __version__ from pw.py source (adapted from mitsuhiko)
VERSION_RE = re.compile(r'__version__\s+=\s+(.*)')
with io.open('barvikron/__init__.py', encoding='utf-8') as fp:
version_code = VERSION_RE.search(fp.read()).group(1)
version = str(ast.literal_eval(version_code))
# read long description and convert to RST
long_description = io.open(
os.path.join(
os.path.dirname(os.path.abspath(__file__)), 'README.md'),
encoding='utf-8').read()
try:
import pypandoc
long_description = pypandoc.convert(long_description, 'rst', format='md')
except ImportError:
pass
# run pytest (from https://pytest.org/latest/goodpractices.html)
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def run_tests(self):
#import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='barvikron',
version=version,
description='Efficiently compute Kronecker coefficients of bounded height (using the technique of arXiv:1204.4379).',
long_description=long_description,
author='Michael Walter',
author_email='michael.walter@gmail.com',
url='https://github.com/catch22/barvikron',
classifiers=[
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Development Status :: 4 - Beta',
'Environment :: Console',
],
install_requires=['Click'],
packages=['barvikron'],
tests_require=['pytest'],
cmdclass={'test': PyTest})
@@ -0,0 +1,2 @@
def test_hello_world():
assert 0 == 0

0 comments on commit 7275db0

Please sign in to comment.