From 60d2e786fb65287650719eadb75e7875edeb98be Mon Sep 17 00:00:00 2001 From: "R. J. Dev. Kwan" Date: Thu, 21 Jun 2018 09:38:11 -0700 Subject: [PATCH] Python packaging framework Generic instructions at: https://packaging.python.org/tutorials/packaging-projects/ --- docs/about.md | 20 ++++++++++++++++++++ samspy_erps/__init__.pkg | 1 + setup.py | 30 ++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 docs/about.md create mode 100644 samspy_erps/__init__.pkg create mode 100644 setup.py diff --git a/docs/about.md b/docs/about.md new file mode 100644 index 0000000..7159694 --- /dev/null +++ b/docs/about.md @@ -0,0 +1,20 @@ +# About this edition + +This is an "ERPS" edition of SamsPy - Simple aerospace models in Py. +The original is located at https://github.com/kwan0xfff/SamsPy +The objective of this edition will be to focus +on needs more closely related to ERPS. +Broader SamsPy development continues on the Github version. + +## Recommended Python version + +The recommended minimum Python version is 3.5. +Among the interesting features added in 3.5: +* type hints - annotation that supports code correctness. +* "@" infix operator - intended for use with matrix multiplication. + +## Software license + +Like the version on Github, this edition is licensed under Apache 2.0. +This is to allow code to flow from one to the other +without legal encumbrance. diff --git a/samspy_erps/__init__.pkg b/samspy_erps/__init__.pkg new file mode 100644 index 0000000..0840380 --- /dev/null +++ b/samspy_erps/__init__.pkg @@ -0,0 +1 @@ +name = "samspy_erps" diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d77fc2c --- /dev/null +++ b/setup.py @@ -0,0 +1,30 @@ +"""SamsPy-ERPS - Simple Aerospace Models in Python -- ERPS edition + +Based loosely on: + https://github.com/kwan0xfff/SamsPy.git +""" +import setuptools + +with open('README.md', 'r') as fh: + long_description = fh.read() + +setuptools.setup( + name='samspy_erps', + version='0.0.1', + author='Rick Kwan', + author_email='kwan0xfff@gmail.com', + description='Simple Aerospace Models in Python -- ERPS edition', + long_description=long_description, + long_description_content_type='text/markdown', + url='http://dev.erps.org:3000/rocketscirick/SamsPy-ERPS.git', + packages=setuptools.find_packages(), + classifiers=( + 'Development Status :: 2 - Pre-Alpha', + 'Intended Audience :: Science/Research', + 'Topic :: Scientific/Engineering', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', + 'License :: OSI Approved :: Apache Software License', + 'Operating System :: OS Independent', + ), +)