Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update ubuntu and py #46

Merged
merged 3 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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