Skip to content

Commit e83209e

Browse files
authored
CI: Use versioneer to auto update project version, release CI part 1 (#11)
* Disable linter * Use versioneer, when the project is tagged, project version also updates see https://github.com/python-versioneer/python-versioneer * Remove 'requirements.txt'
1 parent 440a333 commit e83209e

File tree

8 files changed

+2773
-8
lines changed

8 files changed

+2773
-8
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flowlauncher/_version.py export-subst

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ python:
77

88
install:
99
- pip install -r requirements-dev.txt
10-
- pip install -r requirements.txt
1110

1211
before_install:
1312
- sudo apt-get update

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ include README.md
44
include LICENSE
55

66
include assets/*.png
7+
include versioneer.py
8+
include flowlauncher/_version.py

flowlauncher/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# -*- coding: utf-8 -*-
22

3-
from .FlowLauncher import FlowLauncher
4-
from .FlowLauncherAPI import FlowLauncherAPI
3+
from ._version import get_versions
4+
from .FlowLauncher import FlowLauncher # noqa
5+
from .FlowLauncherAPI import FlowLauncherAPI # noqa
56

7+
__version__ = get_versions()["version"]
8+
del get_versions
69

7-
__version__ = '0.1.1'
810
__license__ = 'MIT'
911
__short_description__ = 'Flow Launcher supports Python by JsonRPC.'

0 commit comments

Comments
 (0)