grim/local-pipelines

Initial setup tools

2016-07-22, Gary Kramlich
4d92265d556c
Parents e6e27c0f7f40
Children 070a8c62f8cf
Initial setup tools
--- a/.hgignore Fri Jul 22 18:13:53 2016 -0500
+++ b/.hgignore Fri Jul 22 18:52:07 2016 -0500
@@ -1,7 +1,9 @@
syntax: regexp
+^dist/
^venv/
syntax: glob
*.pyc
.*.swp
+*.egg-info
--- a/pipelines/__init__.py Fri Jul 22 18:13:53 2016 -0500
+++ b/pipelines/__init__.py Fri Jul 22 18:52:07 2016 -0500
@@ -0,0 +1,2 @@
+__version__ = "0.1"
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/setup.py Fri Jul 22 18:52:07 2016 -0500
@@ -0,0 +1,42 @@
+import os
+import sys
+
+from setuptools import setup, find_packages
+
+_DESC = """local-pipelines is a parser for bitbucket-pipelines.yml files that
+will run the pipeline using your local docker-engine.
+"""
+
+from pipelines import __version__
+
+
+def main():
+ """ Creates our package """
+
+ install_requires = []
+
+ with open('requirements.txt') as ifp:
+ for dependency in ifp.readlines():
+ dependency = dependency.strip()
+
+ if len(dependency) == 0 or dependency.startswith('#'):
+ continue
+
+ install_requires.append(dependency)
+
+ setup(
+ name='local-pipelines',
+ version=__version__,
+ description=_DESC,
+ packages=find_packages('.'),
+ install_requires=install_requires,
+ zip_safe=True,
+ author='Gary Kramlich',
+ author_email='grim@reaperworld.com',
+ url='http://bitbucket.org/rw_grim/local-pipelines',
+ )
+
+
+if __name__ == '__main__':
+ main()
+