From 767c217f3cd34e33f0aab5b7415badbe0733d8c2 Mon Sep 17 00:00:00 2001 From: Justin Ely Date: Fri, 30 Sep 2016 15:45:09 -0400 Subject: 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 --- setup.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 setup.py (limited to 'setup.py') 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'] + ) -- cgit