Skip to content

Commit 845d0e8

Browse files
committed
attr version and README.md
Use attr for version in setup.cfg. Rename README to README.md
1 parent c710081 commit 845d0e8

File tree

5 files changed

+46
-18
lines changed

5 files changed

+46
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ testing/
33
dist/
44
__pycache__/
55
*.egg-info
6+
test.py

README renamed to README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Building
1414
--------
1515
Install the latest `setuptools` and `build` modules, then build the package.
1616
```
17-
pip install --upgrade setuptools
18-
pip install --upgrade build
17+
pip install --upgrade setuptools build
1918
python -m build
2019
```

filetagging/__init__.py

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env python3
2+
# __init__.py -- filetagging initialization.
3+
# Copyright (C) 2022 Trevor Last
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
Utilities to manage file tags.
19+
"""
20+
21+
from .filetagging import (
22+
main,
23+
ls_tags,
24+
filter_tags,
25+
add_tag,
26+
rm_tag,
27+
open_tags,
28+
TagsFile,
29+
__version__
30+
)
31+
32+
__all__ = [
33+
"main",
34+
"ls_tags",
35+
"filter_tags",
36+
"add_tag",
37+
"rm_tag",
38+
"open_tags",
39+
"TagsFile"
40+
]
41+
__author__ = "Trevor Last"

filetagging/filetagging.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,7 @@
1414
#
1515
# You should have received a copy of the GNU General Public License
1616
# along with this program. If not, see <https://www.gnu.org/licenses/>.
17-
"""
18-
Utilities to manage file tags.
19-
"""
20-
21-
__all__ = [
22-
"main",
23-
"ls_tags",
24-
"filter_tags",
25-
"add_tag",
26-
"rm_tag",
27-
"open_tags",
28-
"TagsFile"
29-
]
30-
__author__ = "Trevor Last"
17+
3118
__version__ = "0.1.0"
3219

3320
import json

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[metadata]
22
name = filetagging
3-
version = 0.0.1
3+
version = attr: filetagging.__version__
44
author = Trevor Last
55
author_email = trevorclast@gmail.com
66
description = Program to manage file tags
7-
long_description = file: README
7+
long_description = file: README.md
88
long_description_content_type = text/markdown
99
url = https://github.com/Treecase/file-tagging
1010
project_urls =

0 commit comments

Comments
 (0)