summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJustin Ely <ely@stsci.edu>2016-09-30 15:45:09 -0400
committerJoseph Hunkeler <jhunkeler@users.noreply.github.com>2016-09-30 15:45:09 -0400
commit767c217f3cd34e33f0aab5b7415badbe0733d8c2 (patch)
treef0c04a5c2c8eacff8e39df9db6498a638ae2650a /setup.py
parentfb19feed0bc525bc58832a39cd9e11a717b68f8f (diff)
downloadastroconda-767c217f3cd34e33f0aab5b7415badbe0733d8c2.tar.gz
Create release_notes and package_manifest automatically (#24)
* auto creating release_notes and package_manifest release_notes now provide links to individual repository release notes instead of collecting them together Using anonymous access with github3. Note that this has API call restrictions, so can only do so many times within an hour before being blocked. setup.py install now runs the two scripts in source to generate the manifest and release notes rst files. minor changes to py scripts to use different org access calls, and defining output path to not be CWD. requirement and calls to pandoc have also been removed. files are written directly to rst instead of being written to md and converted. * Exclude non-astroconda packages from release_notes * change disclaimer at top of release notes
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..a19c009
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,22 @@
+import os
+from setuptools import setup, find_packages
+from setuptools.command.install import install
+
+import sys
+sys.path.insert(0, 'source/')
+import release_notes
+import package_manifest
+
+class MyInstall(install):
+ def run(self):
+ install.run(self)
+ release_notes.generate_release_notes()
+ package_manifest.generate_manifest()
+
+setup(
+ name = 'astroconda',
+ version = '0.0.1',
+ author = 'Joseph Hunkeler',
+ cmdclass = {'install': MyInstall},
+ install_requires = ['pypandoc', 'github3.py']
+ )