Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
JdeH committed Mar 12, 2016
0 parents commit 31a796b
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.nogit
*.pyc
*.npp
**.__pycache__/
dist/
Numscrypt.egg-info/
Numscrypt/development/attic/
Numcrypt/development/docs/
Numscrypt/development/experiments/
9 changes: 9 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
27 changes: 27 additions & 0 deletions Numscrypt/development/shipment/upload_all.py
Original file line number Diff line number Diff line change
@@ -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)
16 changes: 16 additions & 0 deletions Numscrypt/license_reference.txt
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't hold your breath...
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[wheel]
universal = 1
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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 = '[email protected]',
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',
],
)

0 comments on commit 31a796b

Please sign in to comment.