Skip to content

Commit

Permalink
Setup templatekit package structure
Browse files Browse the repository at this point in the history
templatekit is designed to be an importable package that contains any
custom code needed to render templates and rebuild examples. Scons will
use templatekit as a library.

All dependencies needed by templatekit and scons to render templates are
defined through setup.py.
  • Loading branch information
jonathansick committed Feb 22, 2018
1 parent 0fc088d commit 16ae3cc
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ doc/*.inc
doc/doxygen.conf
tests/.tests
version.py
.eggs
.pytest_cache
*.egg-info
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[aliases]
test = pytest

[tool:pytest]
addopts = --flake8
flake8-ignore =
file_templates/**/*.py ALL
project_templates/**/*.py ALL
51 changes: 51 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from setuptools import setup, find_packages

package_name = 'lsst-templatekit'
description = 'Tookit for rendering LSST project templates.'
author = 'Association of Universities for Research in Astronomy'
author_email = 'sqre-admin@lists.lsst.org'
license = 'MIT'
url = 'https://github.com/lsst/templates'
pypi_classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6'
]
keywords = ['lsst', 'cookiecutter']
version = '0.1.0b1'

# Core dependencies
install_requires = [
'cookiecutter==1.6.0',
'Jinja2==2.10',
'scons==3.0.1'
]

# Test dependencies
tests_require = [
'pytest==3.4.1',
'pytest-flake8==0.9.1',
]
tests_require += install_requires

# Setup-time dependencies
setup_requires = [
'pytest-runner>=2.11.1,<3'
]

setup(
name=package_name,
description=description,
author=author,
author_email=author_email,
url=url,
license=license,
classifiers=pypi_classifiers,
keywords=keywords,
packages=find_packages(exclude=['docs', 'tests', 'file_templates',
'project_templates']),
install_requires=install_requires,
tests_require=tests_require,
setup_requires=setup_requires,
)
Empty file added templatekit/__init__.py
Empty file.

0 comments on commit 16ae3cc

Please sign in to comment.