Skip to content

Commit

Permalink
Merge pull request #26 from TheBB/bumpversion
Browse files Browse the repository at this point in the history
Add config for bumpversion
  • Loading branch information
VikingScientist authored Apr 6, 2017
2 parents 4dad2c0 + 3625184 commit 2b76f7f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,32 @@ To run the tests, you can use your favourite test runner. For example, with
pytest::

py.test splipy test_utils


Releasing
---------

To make a new release, it is recommended to install `bumpversion
<https://pypi.python.org/pypi/bumpversion>`_. To make a new release, run::

bumpversion <type>

where `type` is one of `patch`, `minor` or `major`. This will up the version
number, create a commit and a tag. To push this to github, use::

git push --tags

After that, to create the actual packages, run::

rm -rf dist
python setup.py sdist
python setup.py bdist_wheel --universal

to create a source distribution and a wheel. These can then be uploaded where
they need to be uploaded. The recommended way to do that is using `twine
<https://pypi.python.org/pypi/twine>`_::

twine upload dist/* -r <index>

Where `index` is the name of the index in your `~/.pypirc` where you want to
upload.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ python_files = *_test.py

[run]
omit = *_test.py

[bumpversion]
current_version = 1.0.0
commit = True
tag = True

[bumpversion:file:setup.py]
[bumpversion:file:splipy/__init__.py]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='Splipy',
version=__version__,
version='1.0.0',
description='Spline modelling library for Python',
maintainer='Arne Morten Kvarving',
maintainer_email='[email protected]',
Expand Down

0 comments on commit 2b76f7f

Please sign in to comment.