Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
saw_042017_1 - First commit for fauxpython.
- Loading branch information
Showing
8 changed files
with
194 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
Copyright (C) 2017 Alpha Griffin | ||
@%@~LICENSE~@%@ | ||
|
||
saw_041117_3 - Add Makefile. | ||
|
||
saw_041117_2 - Updated README. | ||
|
||
saw_041117_1 - Initial commit for fauxproject. | ||
saw_042017_1 - First commit for fauxpython. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2017 Alpha Griffin | ||
# @%@~LICENSE~@%@ | ||
|
||
"""DummyScript | ||
This package-init script currently simply handles namespace sharing. | ||
.. module:: dummyscript | ||
:synopsis: DummyScript Namespace | ||
""" | ||
# (from http://github.com/google/protobuf) | ||
|
||
try: | ||
__import__('pkg_resources').declare_namespace(__name__) | ||
except ImportError: | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright (C) 2017 Alpha Griffin | ||
# @%@~LICENSE~@%@ | ||
"""Python Starter Project | ||
The sample DummyScript project allows you to easily get started | ||
on a new Python project. | ||
.. module:: dummyscript.fauxpython | ||
:platform: Unix | ||
:synopsis: Python Starter Project | ||
.. moduleauthor:: Shawn Wilson <lannocc@alphagriffin.com> | ||
""" | ||
|
||
from dummyscript.fauxpython.__version__ import __version__ | ||
|
||
print ("Sample DummyScript Python project version %s successfully installed!" % (__version__)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__version__ = '0.0.1' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (C) 2017 Alpha Griffin | ||
# @%@~LICENSE~@%@ | ||
# | ||
# Configuration script for setup.py | ||
|
||
[bdist_wheel] | ||
# This flag says that the code is written to work on both Python 2 and Python | ||
# 3. If at all possible, it is good practice to do this. If you cannot, you | ||
# will need to generate wheels for each Python version that you support. | ||
universal=1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
#!/usr/bin/env python | ||
# | ||
# Copyright (C) 2017 Alpha Griffin | ||
# @%@~LICENSE~@%@ | ||
|
||
"""Python setuptools build script. | ||
@author lannocc | ||
@see https://packaging.python.org/en/latest/distributing.html | ||
@see https://github.com/pypa/sampleproject | ||
Some of this script logic also taken from: | ||
https://github.com/google/protobuf | ||
""" | ||
|
||
# FIXME / note to self: | ||
# read more at https://caremad.io/posts/2013/07/setup-vs-requirement/ | ||
# -- to integrate fully pip | ||
|
||
|
||
|
||
# ------------------------------------------------------------------------------------- | ||
# | ||
# CUSTOMIZE THIS SECTION | ||
# All the variables defined here should be customized for your project. | ||
# | ||
|
||
NS = 'dummyscript' # namespace / meta-package folder | ||
NAME = 'fauxpython' # should match source package name in NS folder | ||
REQUIRE = [ ] # package dependencies | ||
|
||
DESC = 'DummyScript Starter Python Project' | ||
TAGS = 'example utilities' # space-separated list of keywords | ||
|
||
AUTHOR = 'DummyScript' # name or alias of author | ||
EMAIL = 'lannocc@alphagriffin.com' # email of author | ||
|
||
URL = 'http://dummyscript.com' | ||
LICENSE = '' # type of license | ||
COPY = '2017 Dummy Script' # copyright | ||
|
||
CLASS = [ | ||
# @see https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'Natural Language :: English', | ||
'Programming Language :: Python', | ||
'Topic :: System :: Installation/Setup', | ||
'Topic :: Utilities', | ||
] | ||
|
||
|
||
# | ||
# END CUSTOMIZATION AREA | ||
# ------------------------------------------------------------------------------------- | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
################# | ||
# !!! WARNING !!! | ||
# !!! WARNING !!! | ||
################# | ||
# THINK CAREFULLY BEFORE CHANGING ANYTHING BELOW THIS LINE | ||
|
||
from setuptools import setup, find_packages, Command | ||
from codecs import open | ||
from os.path import join, splitext, dirname | ||
from os import walk | ||
from distutils.dep_util import newer | ||
|
||
|
||
def findversion(root, name): | ||
'''versioning strategy taken from http://stackoverflow.com/a/7071358/7203060''' | ||
|
||
import re | ||
vfile = join(root, name, "__version__.py") | ||
vmatch = re.search(r'^__version__ *= *["\']([^"\']*)["\']', open(vfile, "rt").read(), re.M) | ||
if vmatch: | ||
version = vmatch.group(1) | ||
print ("Found %s version %s" % (name, version)) | ||
return version | ||
else: | ||
raise RuntimeError("Expecting a version string in %s." % (vfile)) | ||
|
||
|
||
|
||
|
||
if __name__ == '__main__': | ||
|
||
setup( | ||
name=NAME, | ||
version=findversion(NS, NAME), | ||
license=LICENSE, | ||
namespace_packages=[NS], # home for our libraries | ||
packages=find_packages(exclude=['tests']), | ||
author=AUTHOR, | ||
author_email=EMAIL, | ||
description=DESC, | ||
long_description=open('README.rst').read(), | ||
url=URL, | ||
classifiers=CLASS, | ||
keywords=TAGS, | ||
|
||
# run-time dependencies | ||
install_requires=REQUIRE, | ||
|
||
extras_require={ | ||
}, | ||
|
||
package_data={ | ||
}, | ||
|
||
data_files=[], | ||
|
||
entry_points={ | ||
}, | ||
) | ||
|