mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
Revert of the revert of the python package with version information
This reverts commit bee8f16dbb
.
This commit is contained in:
parent
218b6ce246
commit
4f972c0039
@ -1,11 +1,12 @@
|
|||||||
To release a new version of pybind11:
|
To release a new version of pybind11:
|
||||||
|
|
||||||
- Update version macros in `include/pybind11/common.h`
|
- Update version macros in `include/pybind11/common.h`
|
||||||
- Update version in `setup.py`
|
- Update `pybind11/_version.py` (set release version, remove 'dev')
|
||||||
- `git add` and `git commit`.
|
- `git add` and `git commit`.
|
||||||
- `python setup.py sdist upload`.
|
- `python setup.py sdist upload`.
|
||||||
- `python setup.py bdist_wheel upload`.
|
- `python setup.py bdist_wheel upload`.
|
||||||
- `git tag -a X.X -m 'Release tag comment'`.
|
- `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`.
|
- `git add` and `git commit`. `git push`. `git push --tags`.
|
||||||
|
|
||||||
The remote for the last `git push --tags` should be the main repository for
|
The remote for the last `git push --tags` should be the main repository for
|
||||||
|
1
pybind11/__init__.py
Normal file
1
pybind11/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from ._version import version_info, __version__
|
2
pybind11/_version.py
Normal file
2
pybind11/_version.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
version_info = (1, 3, 'dev0')
|
||||||
|
__version__ = '.'.join(map(str, version_info))
|
5
setup.py
5
setup.py
@ -3,8 +3,7 @@
|
|||||||
# 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__
|
||||||
__version__ = '1.3'
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pybind11',
|
name='pybind11',
|
||||||
@ -14,7 +13,7 @@ setup(
|
|||||||
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/v' + __version__,
|
download_url='https://github.com/wjakob/pybind11/tarball/v' + __version__,
|
||||||
packages=[],
|
packages=['pybind11'],
|
||||||
license='BSD',
|
license='BSD',
|
||||||
headers=[
|
headers=[
|
||||||
'include/pybind11/attr.h',
|
'include/pybind11/attr.h',
|
||||||
|
Loading…
Reference in New Issue
Block a user