-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-setup-py-description-and-release-doc-tweaks' into dev
* fix-setup-py-description-and-release-doc-tweaks: Makefile: Consolidate documentation targets, and add "htmlclean" docs: Fix duplicated label warnings in tutorials docs: Use consistent description between README and ReadTheDocs docs: Update "How to Update Requirements Files" section docs: Update external links offering https to use it setup.py: Set zip_safe to False to ensure installed package is never zipped. setup.py: Fix extraction and rendering of README.rst content setup.py: Fix presentation of package on PyPI by properly specifying license setup.py: Remove dead code and obsolete comments from setup.py docs: Fix "step-by-step" release process instructions
- Loading branch information
Showing
11 changed files
with
90 additions
and
62 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
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
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
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
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 |
---|---|---|
|
@@ -76,14 +76,14 @@ Step-by-step | |
|
||
2. Download latest sources:: | ||
|
||
$ cd /tmp && git clone [email protected]:NeurodataWithoutBorders/pynwb | ||
$ cd /tmp && git clone [email protected]:NeurodataWithoutBorders/pynwb && cd pynwb | ||
|
||
|
||
3. Tag the release:: | ||
|
||
$ git tag -s -m "pynwb ${release}" ${release} origin/dev | ||
|
||
*Requires a GPG signing key* | ||
*Requires a GPG signing key* | ||
|
||
|
||
4. Create a new virtual environment and install release requirements:: | ||
|
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
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
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
.. _tutorial_extensions: | ||
|
||
Extensions | ||
========================= | ||
|
||
|
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
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
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,17 +2,10 @@ | |
|
||
from setuptools import setup, find_packages | ||
|
||
import os | ||
import versioneer | ||
|
||
schema_dir = '%s/src/pynwb/data' % os.path.abspath(os.path.dirname(__file__)) | ||
|
||
with open('README.rst', 'rb') as f: | ||
readme = str(f.read()) | ||
|
||
with open('license.txt', 'rb') as f: | ||
license = str(f.read()) | ||
|
||
with open('README.rst', 'r') as fp: | ||
readme = fp.read() | ||
|
||
pkgs = find_packages('src', exclude=['data']) | ||
print('found these packages:', pkgs) | ||
|
@@ -25,10 +18,11 @@ | |
'cmdclass': versioneer.get_cmdclass(), | ||
'description': 'Package for working with Neurodata stored in the NWB format', | ||
'long_description': readme, | ||
'long_description_content_type': 'text/x-rst; charset=UTF-8', | ||
'author': 'Andrew Tritt', | ||
'author_email': '[email protected]', | ||
'url': 'https://github.com/NeurodataWithoutBorders/pynwb', | ||
'license': license, | ||
'license': "BSD", | ||
'install_requires': | ||
[ | ||
'numpy', | ||
|
@@ -68,20 +62,8 @@ | |
'NWB ' | ||
'NWB:N ' | ||
'NeurodataWithoutBorders', | ||
# 'package_data': {'pynwb':["data/*.yaml"]}, | ||
# 'cmdclass':{ | ||
# 'build_py': CustomBuild, | ||
# } | ||
'zip_safe': False | ||
} | ||
|
||
if __name__ == '__main__': | ||
''' | ||
Do some stuff here to retrieve (download from centralized location, or parse | ||
from a location in the repo directory) the schema. Once retrieved write to | ||
to Python code somewhere. This could be pickling it, or writing it to a | ||
Python file as an ecoded string. This way, modifying the schema will require | ||
rebuilding the package, and the schema will be hardcoded. | ||
''' | ||
|
||
# get_schema() | ||
setup(**setup_args) |