Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
stharrold committed Jan 26, 2015
2 parents 73ed16e + 9a90d65 commit cb6aeef
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 20 deletions.
9 changes: 8 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
include DESCRIPTION.rst
include *.rst
include LICENSE
recursive-include docs *.bat
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs *.txt
recursive-include docs Makefile
recursive-include tests *.py
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ Use `pytest <https://pytest.org>`_:
$ cd binstarsolver
$ git tag --list
$ git checkout tags/v0.1.2 # or latest tag name
$ py.test
$ pip install -e .[test] # installs packages for testing
$ py.test -v

Contributing
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'numpydoc'
'sphinxcontrib.napoleon'
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements_readthedocs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx>=1.2.2
sphinxcontrib-napoleon>=0.2.9
37 changes: 20 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
#!/usr/bin/env python
"""Adapted from https://github.com/pypa/sampleproject
"""Adapted from [1]_, [2]_.
References
----------
.. [1] https://github.com/pypa/sampleproject
.. [2] https://bitbucket.org/birkenfeld/sphinx-contrib/src/dae39f177383/napoleon/?at=default
"""

from __future__ import absolute_import, division, print_function
from os import path
from codecs import open
from setuptools import setup, find_packages
import os
import codecs
import setuptools

# Fetch long_description from DESCRIPTION.rst.
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
# Load descriptions.
# Note: As of 2015-01-25, check-manifest will not load docs/requirements_readthedocs.txt.
# To build docs on local machine, install dependencies manually.
fpath = os.path.abspath(os.path.dirname(__file__))
long_description = codecs.open(os.path.join(fpath, 'DESCRIPTION.rst'), encoding='utf-8').read()

setup(
setuptools.setup(
name='binstarsolver',
# Versions should comply with PEP440.
# https://packaging.python.org/en/latest/single_source_version.html
Expand All @@ -38,18 +44,15 @@
'Programming Language :: Python :: 3.4',
],
keywords='astronomy binary stars observing',
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
packages=setuptools.find_packages(exclude=['contrib', 'docs', 'tests*']),
# Run-time dependencies. Will be installed by pip.
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'numpy>=1.8.2',
'scipy>=0.14.0',
'matplotlib>=1.4.0'],
install_requires=['numpy>=1.8.2', 'scipy>=0.14.0', 'matplotlib>=1.4.0'],
# Additional dependencies (e.g. development dependencies).
# Install using: $ pip install -e .[dev,test]
extras_require = {
'dev': ['check-manifest'],
'test': ['coverage', 'pytest'],
'dev': ['check-manifest>=0.22'],
'test': ['coverage>=3.7.1', 'pytest>=2.6.3']
},
# Data files included in installed packages.
package_data={},
Expand All @@ -61,7 +64,7 @@
# for cross-platform portability.
entry_points={
'console_scripts': [
'binstarsolver=binstarsolver.main:main',
'binstarsolver=binstarsolver.main:main'
],
},
)

0 comments on commit cb6aeef

Please sign in to comment.