Skip to content

Commit 95b0dab

Browse files
committed
v0.4.0
1 parent 5e2bbb6 commit 95b0dab

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

pokeapi_ditto/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
__version__ = "0.3.1"

pokeapi_ditto/commands/models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
"next": {"type": "null"},
3434
"previous": {"type": "null"},
3535
"results": {
36-
"items": {
37-
"$ref": f"/schema/v2/named_api_resource.json"
38-
},
36+
"items": {"$ref": f"/schema/v2/named_api_resource.json"},
3937
"type": "array",
4038
},
4139
},

pokeapi_ditto/main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
import argparse
22
import sys
3+
import pkg_resources
34

4-
from pokeapi_ditto import __version__
55
from pokeapi_ditto.commands import analyze, clone, transform
66

77

88
class Ditto(object):
99
def __init__(self):
1010
parser = argparse.ArgumentParser()
11-
parser.add_argument("--version", action="version", version=__version__)
11+
parser.add_argument(
12+
"--version",
13+
action="version",
14+
version=pkg_resources.get_distribution("pokeapi-ditto").version,
15+
)
1216
subparsers = parser.add_subparsers(dest="command")
1317

1418
clone_args = subparsers.add_parser("clone")

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pokeapi-ditto"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "Ditto is a server that serves a static copy of PokeAPI's data."
55
license = "Apache-2.0"
66
authors = ["Sargun Vohra <[email protected]>"]
@@ -16,7 +16,6 @@ classifiers = [
1616
"Programming Language :: Python",
1717
"Programming Language :: Python :: 3",
1818
"Programming Language :: Python :: 3.6",
19-
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
2019
]
2120

2221
[tool.poetry.scripts]

0 commit comments

Comments
 (0)