Initial commit
authorOleg Broytman <phd@phdru.name>
Mon, 21 Dec 2015 20:53:00 +0000 (23:53 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 21 Dec 2015 20:53:00 +0000 (23:53 +0300)
12 files changed:
project_template/.gitattributes [new file with mode: 0644]
project_template/.gitignore [new file with mode: 0644]
project_template/ChangeLog [new file with mode: 0644]
project_template/MANIFEST.in [new file with mode: 0644]
project_template/README.txt [new file with mode: 0644]
project_template/TODO [new file with mode: 0644]
project_template/mk-distr [new file with mode: 0755]
project_template/project/__init__.py [new file with mode: 0644]
project_template/project/__version__.py [new file with mode: 0644]
project_template/requirements.txt [new file with mode: 0644]
project_template/setup.cfg [new file with mode: 0644]
project_template/setup.py [new file with mode: 0755]

diff --git a/project_template/.gitattributes b/project_template/.gitattributes
new file mode 100644 (file)
index 0000000..70c9122
--- /dev/null
@@ -0,0 +1,2 @@
+.git* export-ignore
+*.txt text
diff --git a/project_template/.gitignore b/project_template/.gitignore
new file mode 100644 (file)
index 0000000..539da74
--- /dev/null
@@ -0,0 +1 @@
+*.py[co]
diff --git a/project_template/ChangeLog b/project_template/ChangeLog
new file mode 100644 (file)
index 0000000..bc9225e
--- /dev/null
@@ -0,0 +1 @@
+Version 0.0.1 (2015-12-21)
diff --git a/project_template/MANIFEST.in b/project_template/MANIFEST.in
new file mode 100644 (file)
index 0000000..bf0c60b
--- /dev/null
@@ -0,0 +1,2 @@
+include COPYING ChangeLog MANIFEST.in README.txt TODO mk-distr requirements.txt
+recursive-include project *.py
diff --git a/project_template/README.txt b/project_template/README.txt
new file mode 100644 (file)
index 0000000..9d6970c
--- /dev/null
@@ -0,0 +1,5 @@
+Broytman Template Project, Copyright (C) 2015 PhiloSoft Design
+Author: Oleg Broytman <phd@phdru.name>
+License: GPL
+
+This is a template project.
diff --git a/project_template/TODO b/project_template/TODO
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/project_template/mk-distr b/project_template/mk-distr
new file mode 100755 (executable)
index 0000000..8576eac
--- /dev/null
@@ -0,0 +1,10 @@
+#! /bin/sh
+
+umask 022 &&
+
+git archive --format=tar --prefix=project/ "${1:-HEAD}" |
+   (cd "$HOME/tmp" && exec tar xf -) &&
+
+cd "$HOME/tmp/project" &&
+python setup.py sdist --formats=bztar &&
+cd dist && mv project-*.tar.bz2 ../.. && cd ../.. && exec rm -rf project
diff --git a/project_template/project/__init__.py b/project_template/project/__init__.py
new file mode 100644 (file)
index 0000000..792d600
--- /dev/null
@@ -0,0 +1 @@
+#
diff --git a/project_template/project/__version__.py b/project_template/project/__version__.py
new file mode 100644 (file)
index 0000000..b8023d8
--- /dev/null
@@ -0,0 +1 @@
+__version__ = '0.0.1'
diff --git a/project_template/requirements.txt b/project_template/requirements.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/project_template/setup.cfg b/project_template/setup.cfg
new file mode 100644 (file)
index 0000000..bc17240
--- /dev/null
@@ -0,0 +1,7 @@
+[bdist_wheel]
+universal = 1
+
+[easy_install]
+
+[flake8]
+exclude = .git
diff --git a/project_template/setup.py b/project_template/setup.py
new file mode 100755 (executable)
index 0000000..3c7dc16
--- /dev/null
@@ -0,0 +1,48 @@
+#!/usr/bin/env python
+
+from imp import load_source
+from os.path import abspath, dirname, join
+
+try:
+    from ez_setup import use_setuptools
+    use_setuptools()
+except ImportError:
+    pass
+try:
+    from setuptools import setup
+    is_setuptools = True
+except ImportError:
+    from distutils.core import setup
+    is_setuptools = False
+
+versionpath = join(abspath(dirname(__file__)), 'project', '__version__.py')
+load_source('m_librarian_version', versionpath)
+from m_librarian_version import __version__
+
+setup(name='Template project',
+      version=__version__,
+      description='Broytman Template Project',
+      long_description=open('README.txt', 'rtU').read(),
+      author='Oleg Broytman',
+      author_email='phd@phdru.name',
+      url='http://phdru.name/Software/Python/',
+      license='GPL',
+      platforms=['any'],
+      keywords=[''],
+      classifiers=[
+          'Development Status :: 1 - Planning',
+          'Environment :: Console',
+          'Environment :: Web Environment',
+          'Intended Audience :: End Users/Desktop',
+          'License :: OSI Approved :: GNU General Public License (GPL)',
+          'Operating System :: OS Independent',
+          'Programming Language :: Python :: 2',
+          'Programming Language :: Python :: 2.6',
+          'Programming Language :: Python :: 2.7',
+          'Programming Language :: Python :: 2 :: Only',
+      ],
+      packages=['project'],
+      package_data={'project': []},
+      scripts=[],
+      requires=[],
+      )