Skip to content

Commit 0eecb2a

Browse files
author
Charlotte Godley
authored
Ditch versioneer and use bumpversion (#34)
Ditch versioneer and use bumpversion
2 parents 2327850 + ea06625 commit 0eecb2a

11 files changed

Lines changed: 28 additions & 2376 deletions

File tree

.bumpversion.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
current_version = 0.6.4
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:dotscience/__init__.py]

.drone.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ steps:
55
- name: test
66
image: python:3.8.0-alpine3.10
77
commands:
8-
- pip install --upgrade pip setuptools wheel pytest hypothesis
9-
- pip install -e .[test]
8+
- pip3 install --upgrade pip setuptools wheel pytest hypothesis
9+
- pip3 install -r requirements.txt
10+
- pip3 install .
1011
- pytest dotscience
1112
- name: pypi_publish
1213
image: plugins/pypi

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ COPY README.md ./dsbuild
1010
COPY LICENSE ./dsbuild
1111
COPY setup.cfg ./dsbuild
1212
COPY MANIFEST.in ./dsbuild
13-
COPY versioneer.py ./dsbuild
13+
COPY requirements.txt ./dsbuild
1414

15-
RUN cd dsbuild ; python3 setup.py install
15+
16+
RUN cd dsbuild ; pip3 install -r requirements.txt && pip3 install .
1617
#RUN rm -rf dsbuild

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# dotscience-python
2+
## Releasing
3+
To release this project, we're using `bumpversion`.
4+
Install it using: `pip install bumpversion`, then when you have a new tag to release, run `bumpversion --new-version <sem-ver> patch && git push --tags`
5+
6+
It's recommended you also add release notes to the tag using [github releases](https://github.com/dotmesh-io/dotscience-python/releases) - you can add new release notes to old tags by just entering it when you click "draft new release".
17

28
## Installation
39

dotscience/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name = "dotscience"
2+
__version__ = '0.6.4'
23

34
import json
45
import datetime
@@ -934,6 +935,3 @@ def connect(username, apikey, project, hostname=""):
934935
username, apikey, project, hostname,
935936
)
936937

937-
from ._version import get_versions
938-
__version__ = get_versions()['version']
939-
del get_versions

0 commit comments

Comments
 (0)