mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Automatic versioning
This commit is contained in:
parent
ba6f7a43ba
commit
a8958e7b0d
4 changed files with 23 additions and 3 deletions
|
@ -5,6 +5,8 @@ Changelog
|
||||||
|
|
||||||
* [Improved] Installs pycrypto by default
|
* [Improved] Installs pycrypto by default
|
||||||
* [Improved] Removed clint in favour of colorama
|
* [Improved] Removed clint in favour of colorama
|
||||||
|
* [Fixed] Smaller fixes and typos
|
||||||
|
|
||||||
### 1.0.1 (March 12, 2013)
|
### 1.0.1 (March 12, 2013)
|
||||||
|
|
||||||
* [Fixed] Requires parsedatetime 1.1.2 or newer
|
* [Fixed] Requires parsedatetime 1.1.2 or newer
|
||||||
|
|
|
@ -44,7 +44,7 @@ The first time you run `jrnl` you will be asked where your journal file should b
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
_jrnl_ has to modes: __composing__ and __viewing__.
|
_jrnl_ has two modes: __composing__ and __viewing__.
|
||||||
|
|
||||||
### Viewing:
|
### Viewing:
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
jrnl is a simple journal application for your command line.
|
||||||
|
"""
|
||||||
|
|
||||||
|
__title__ = 'jrnl'
|
||||||
|
__version__ = '1.0.2'
|
||||||
|
__author__ = 'Manuel Ebert'
|
||||||
|
__license__ = 'MIT License'
|
||||||
|
__copyright__ = 'Copyright 2013 Manuel Ebert'
|
||||||
|
|
||||||
from Journal import Journal
|
from Journal import Journal
|
||||||
from jrnl import cli
|
from jrnl import cli
|
||||||
|
|
9
setup.py
9
setup.py
|
@ -51,9 +51,16 @@ if sys.argv[-1] == 'publish':
|
||||||
|
|
||||||
base_dir = os.path.dirname(os.path.abspath(__file__))
|
base_dir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
||||||
|
def get_version(filename="kerouac/__init__.py"):
|
||||||
|
with open(os.path.join(base_dir, filename)) as initfile:
|
||||||
|
for line in initfile.readlines():
|
||||||
|
m = re.match("__version__ *= *['\"](.*)['\"]", line)
|
||||||
|
if m:
|
||||||
|
return m.group(1)
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "jrnl",
|
name = "jrnl",
|
||||||
version = "1.0.1",
|
version = get_version(),
|
||||||
description = "A command line journal application that stores your journal in a plain text file",
|
description = "A command line journal application that stores your journal in a plain text file",
|
||||||
packages = ['jrnl'],
|
packages = ['jrnl'],
|
||||||
install_requires = [
|
install_requires = [
|
||||||
|
|
Loading…
Add table
Reference in a new issue