From 31a796bb47adf6ebc7719bf0682aea61e19ce852 Mon Sep 17 00:00:00 2001 From: JdeH Date: Sat, 12 Mar 2016 14:41:40 +0100 Subject: [PATCH] Initial --- .gitignore | 9 ++++++ MANIFEST.in | 9 ++++++ Numscrypt/development/shipment/upload_all.py | 27 ++++++++++++++++ Numscrypt/license_reference.txt | 16 ++++++++++ README.rst | 1 + setup.cfg | 2 ++ setup.py | 33 ++++++++++++++++++++ 7 files changed, 97 insertions(+) create mode 100644 .gitignore create mode 100644 MANIFEST.in create mode 100644 Numscrypt/development/shipment/upload_all.py create mode 100644 Numscrypt/license_reference.txt create mode 100644 README.rst create mode 100644 setup.cfg create mode 100644 setup.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55f646c --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.nogit +*.pyc +*.npp +**.__pycache__/ +dist/ +Numscrypt.egg-info/ +Numscrypt/development/attic/ +Numcrypt/development/docs/ +Numscrypt/development/experiments/ diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..6bdb3f5 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,9 @@ +global-include *.py *.js *.rst *.html *.css *.lyx *.pdf *.png *.gif *.jpg *.txt *.jar *.bat * +global-exclude *.pyc .gitignore + +prune .git +prune dist +prune Numscrypt.egg-info +prune Numscrypt/development/attic +prune Numscrypt/development/docs +prune Numscrypt/development/experiments diff --git a/Numscrypt/development/shipment/upload_all.py b/Numscrypt/development/shipment/upload_all.py new file mode 100644 index 0000000..a7401ee --- /dev/null +++ b/Numscrypt/development/shipment/upload_all.py @@ -0,0 +1,27 @@ +import os + +shipDir = os.path.dirname (os.path.abspath (__file__)) .replace ('\\', '/') +appRootDir = '/'.join (shipDir.split ('/')[ : -2]) +distributionDir = '/'.join (appRootDir.split ('/')[ : -1]) +dynWebRootDir, statWebRootDir = eval (open ('upload_all.nogit') .read ()) +sphinxDir = '/'.join ([appRootDir, 'docs/sphinx']) + +def getAbsPath (rootDir, relPath): + return '{}/{}'.format (rootDir, relPath) + +def copyWebsite (projRelPath, webRelPath, static = False, subdirs = False): + os.system ('xcopy /Y {} {} {}'.format ('/E' if subdirs else '', getAbsPath (appRootDir, projRelPath) .replace ('/', '\\'), getAbsPath (statWebRootDir if static else dynWebRootDir, webRelPath) .replace ('/', '\\'))) + +#os.chdir (sphinxDir) +#os.system ('make html') +#copyWebsite ('docs/sphinx/_build/html', 'docs/html/', True, True) + +os.chdir (distributionDir) + +os.system ('uploadPython') + +os.system ('git add .') +os.system ('git commit -m"{}"'.format (input ('Description of commit: '))) +os.system ('git push origin master') + +os.chdir (shipDir) diff --git a/Numscrypt/license_reference.txt b/Numscrypt/license_reference.txt new file mode 100644 index 0000000..bb22cb5 --- /dev/null +++ b/Numscrypt/license_reference.txt @@ -0,0 +1,16 @@ +Licence +======= + +Copyright 2016 Jacques de Hooge, GEATEC engineering, www.geatec.com + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..4b12090 --- /dev/null +++ b/README.rst @@ -0,0 +1 @@ +Don't hold your breath... diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9ed9ac5 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[wheel] +universal = 1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..b6faa40 --- /dev/null +++ b/setup.py @@ -0,0 +1,33 @@ +import os + +from setuptools import setup + +def read (*paths): + with open (os.path.join (*paths), 'r') as aFile: + return aFile.read() + +setup ( + name = 'Numscrypt', + version = '0.0.0', + description = 'Purely experimental, overly optimistic attempt to port a microscopic part of NumPy to Transcrypt using JS typed arrays', + long_description = ( + read ('README.rst') + '\n\n' + + read ('Numscrypt/license_reference.txt') + ), + keywords = ['transcrypt', 'numpy', 'browser'], + url = 'https://github.com/JdeH/Numscrypt', + license = 'Apache 2.0', + author = 'Jacques de Hooge', + author_email = 'jacques.de.hooge@qquick.org', + packages = ['Numscrypt'], + include_package_data = True, + classifiers = [ + 'Development Status :: 1 - Planning', + 'Intended Audience :: Developers', + 'Natural Language :: English', + 'License :: OSI Approved :: Apache Software License', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 3.5', + ], +)