From f3a77fb183a5d87ad6118547ec76632af59d36a7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 21 Dec 2015 23:53:00 +0300 Subject: [PATCH] Initial commit --- project_template/.gitattributes | 2 ++ project_template/.gitignore | 1 + project_template/ChangeLog | 1 + project_template/MANIFEST.in | 2 ++ project_template/README.txt | 5 +++ project_template/TODO | 0 project_template/mk-distr | 10 ++++++ project_template/project/__init__.py | 1 + project_template/project/__version__.py | 1 + project_template/requirements.txt | 0 project_template/setup.cfg | 7 ++++ project_template/setup.py | 48 +++++++++++++++++++++++++ 12 files changed, 78 insertions(+) create mode 100644 project_template/.gitattributes create mode 100644 project_template/.gitignore create mode 100644 project_template/ChangeLog create mode 100644 project_template/MANIFEST.in create mode 100644 project_template/README.txt create mode 100644 project_template/TODO create mode 100755 project_template/mk-distr create mode 100644 project_template/project/__init__.py create mode 100644 project_template/project/__version__.py create mode 100644 project_template/requirements.txt create mode 100644 project_template/setup.cfg create mode 100755 project_template/setup.py diff --git a/project_template/.gitattributes b/project_template/.gitattributes new file mode 100644 index 0000000..70c9122 --- /dev/null +++ b/project_template/.gitattributes @@ -0,0 +1,2 @@ +.git* export-ignore +*.txt text diff --git a/project_template/.gitignore b/project_template/.gitignore new file mode 100644 index 0000000..539da74 --- /dev/null +++ b/project_template/.gitignore @@ -0,0 +1 @@ +*.py[co] diff --git a/project_template/ChangeLog b/project_template/ChangeLog new file mode 100644 index 0000000..bc9225e --- /dev/null +++ b/project_template/ChangeLog @@ -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 index 0000000..bf0c60b --- /dev/null +++ b/project_template/MANIFEST.in @@ -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 index 0000000..9d6970c --- /dev/null +++ b/project_template/README.txt @@ -0,0 +1,5 @@ +Broytman Template Project, Copyright (C) 2015 PhiloSoft Design +Author: Oleg Broytman +License: GPL + +This is a template project. diff --git a/project_template/TODO b/project_template/TODO new file mode 100644 index 0000000..e69de29 diff --git a/project_template/mk-distr b/project_template/mk-distr new file mode 100755 index 0000000..8576eac --- /dev/null +++ b/project_template/mk-distr @@ -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 index 0000000..792d600 --- /dev/null +++ b/project_template/project/__init__.py @@ -0,0 +1 @@ +# diff --git a/project_template/project/__version__.py b/project_template/project/__version__.py new file mode 100644 index 0000000..b8023d8 --- /dev/null +++ b/project_template/project/__version__.py @@ -0,0 +1 @@ +__version__ = '0.0.1' diff --git a/project_template/requirements.txt b/project_template/requirements.txt new file mode 100644 index 0000000..e69de29 diff --git a/project_template/setup.cfg b/project_template/setup.cfg new file mode 100644 index 0000000..bc17240 --- /dev/null +++ b/project_template/setup.cfg @@ -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 index 0000000..3c7dc16 --- /dev/null +++ b/project_template/setup.py @@ -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=[], + ) -- 2.39.2