Add version info and release instructions for pybind11

This commit is contained in:
Sylvain Corlay 2016-02-01 09:51:35 -05:00
parent cd4e6ae3f0
commit 97dc81057f
5 changed files with 22 additions and 2 deletions

4
.gitignore vendored
View File

@ -23,3 +23,7 @@ MANIFEST
/.ninja_* /.ninja_*
/*.ninja /*.ninja
/docs/.build /docs/.build
*.py[co]
*.egg-info
*~
.DS_Store

12
docs/release.rst Normal file
View File

@ -0,0 +1,12 @@
To release a new version of pybind11:
- Update `_version.py` (set release version, remove 'dev')
- `git add` and `git commit`.
- `python setup.py sdist upload`.
- `python setup.py bdist_wheel upload`.
- `git tag -a X.X -m 'Release tag comment'`.
- Update `_version.py` (add 'dev' and increment minor).
- `git add` and `git commit`. `git push`. `git push --tags`.
The remote for the last `git push --tags` should be the main repository for
pybind11.

1
pybind11/__init__.py Normal file
View File

@ -0,0 +1 @@
from ._version import version_info, __version__

2
pybind11/_version.py Normal file
View File

@ -0,0 +1,2 @@
version_info = (1, 2, 'dev0')
__version__ = '.'.join(map(str, version_info))

View File

@ -3,16 +3,17 @@
# Setup script for PyPI; use CMakeFile.txt to build the example application # Setup script for PyPI; use CMakeFile.txt to build the example application
from setuptools import setup from setuptools import setup
from pybind11 import __version__
setup( setup(
name='pybind11', name='pybind11',
version='1.0', version=__version__,
description='Seamless operability between C++11 and Python', description='Seamless operability between C++11 and Python',
author='Wenzel Jakob', author='Wenzel Jakob',
author_email='wenzel@inf.ethz.ch', author_email='wenzel@inf.ethz.ch',
url='https://github.com/wjakob/pybind11', url='https://github.com/wjakob/pybind11',
download_url='https://github.com/wjakob/pybind11/tarball/v1.0', download_url='https://github.com/wjakob/pybind11/tarball/v1.0',
packages=[], packages=['pybind11'],
license='BSD', license='BSD',
headers=[ headers=[
'include/pybind11/attr.h', 'include/pybind11/attr.h',