-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
8 changed files
with
209 additions
and
2,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
build | ||
source/*.html | ||
TOKEN | ||
|
||
source/package_manifest.rst | ||
source/release_notes.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
language: python | ||
|
||
# Setting sudo to false opts in to Travis-CI container-based builds. | ||
sudo: false | ||
|
||
# The apt packages below are needed for sphinx builds, which can no longer | ||
# be installed with sudo apt-get. | ||
addons: | ||
apt: | ||
packages: | ||
- graphviz | ||
- texlive-latex-extra | ||
- dvipng | ||
|
||
os: | ||
- linux | ||
|
||
|
||
python: | ||
- 3.5 | ||
|
||
env: | ||
global: | ||
# SET DEFAULTS TO AVOID REPEATING IN MOST CASES | ||
- SETUPTOOLS_VERSION=stable | ||
- PIP_INSTALL='pip install' | ||
- INSTALL_OPTIONAL=true | ||
- SETUP_CMD='test' | ||
|
||
before_install: | ||
|
||
# USE UTF8 ENCODING. SHOULD BE DEFAULT, BUT THIS IS INSURANCE AGAINST | ||
# FUTURE CHANGES | ||
- export PYTHONIOENCODING=UTF8 | ||
|
||
# http://conda.pydata.org/docs/travis.html#the-travis-yml-file | ||
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
|
||
#CHECK INTERACTIVE MATPLOTLIB BACKENDS | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
|
||
|
||
install: | ||
- conda create -n test python=$TRAVIS_PYTHON_VERSION | ||
- source activate test | ||
|
||
# ADD STSCI ASTROCONDA CHANNEL | ||
- conda config --add channels http://ssb.stsci.edu/astroconda | ||
|
||
# RTD deps | ||
- $PIP_INSTALL -r source/rtd-pip-requirements.txt | ||
|
||
|
||
script: | ||
- python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.