Skip to content

Commit

Permalink
More boilerplace to set up the project
Browse files Browse the repository at this point in the history
  • Loading branch information
kbourgoin committed Jul 7, 2013
1 parent 7b500de commit 188fc85
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 0 deletions.
15 changes: 15 additions & 0 deletions add-license.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
# based on http://stackoverflow.com/a/151690/105571

find . -name "*.py" | while read i
do
if ! grep -q Copyright $i
then
echo '__license__ = """' > $i.new
cat LICENSE | tail -13 >> $i.new
echo '"""' >> $i.new
echo '' >> $i.new
cat $i >> $i.new
mv $i.new $i
fi
done
17 changes: 17 additions & 0 deletions pystorm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
__license__ = """
Copyright 2013 Parsely, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

__version__ = '0.0.1'
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[nosetests]
logging-clear-handlers = 1
verbosity = 2
detailed-errors = 1
60 changes: 60 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env python
"""
Copyright 2013 Parsely, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
"""

import sys

from setuptools import setup, find_packages

from pystorm import __version__

install_requires = [
]

lint_requires = [
'pep8',
'pyflakes'
]

tests_require = ['mock', 'nose', 'unittest2']
dependency_links = []
setup_requires = []
if 'nosetests' in sys.argv[1:]:
setup_requires.append('nose')

setup(
name='pystorm',
version=__version__,
author='Parsely, Inc.',
author_email='TODO',
url='https://github.com/Parsely/pystorm',
description='TODO',
license='Apache License 2.0',
packages=find_packages(),
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
extras_require={
'test': tests_require,
'all': install_requires + tests_require,
'docs': ['sphinx'] + tests_require,
'lint': lint_requires
},
dependency_links=dependency_links,
zip_safe=False,
test_suite='nose.collector',
include_package_data=True,
)

0 comments on commit 188fc85

Please sign in to comment.