Skip to content

Commit

Permalink
chore: update ubuntu and py (#46)
Browse files Browse the repository at this point in the history
* chore: update ubuntu and py

* docs: add newer py

* fix: drop pkg_resources/bump patch
  • Loading branch information
Naramsim authored May 7, 2024
1 parent 299a3ce commit b7f735d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,21 @@ version: 2.1
jobs:
test:
machine:
image: ubuntu-2004:2022.10.1
image: ubuntu-2204:current
resource_class: large
steps:
- checkout
- run:
name: Display Python version
command: python3 -V
- run:
name: Install deps
command: |
pip3 install poetry
poetry install
- run:
name: Display Ditto version
command: poetry run ditto --version
- run:
name: Lint code
command: poetry run black pokeapi_ditto
Expand Down
5 changes: 2 additions & 3 deletions pokeapi_ditto/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import argparse
import sys

import pkg_resources
import importlib.metadata

from pokeapi_ditto.commands import analyze, clone, transform

Expand All @@ -12,7 +11,7 @@ def __init__(self):
parser.add_argument(
"--version",
action="version",
version=pkg_resources.get_distribution("pokeapi-ditto").version,
version=importlib.metadata.version('pokeapi-ditto'),
)
subparsers = parser.add_subparsers(dest="command")

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pokeapi-ditto"
version = "1.0.1"
version = "1.0.2"
description = "Ditto is a command line tool for performing meta operations over PokéAPI data."
license = "Apache-2.0"
authors = ["Sargun Vohra <sargun.vohra@gmail.com>"]
Expand All @@ -17,6 +17,8 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

[tool.poetry.scripts]
Expand Down

0 comments on commit b7f735d

Please sign in to comment.