Skip to content

Commit

Permalink
Migrate to poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
bulv1ne committed Nov 5, 2023
1 parent efbd46c commit 186a9f7
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 69 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ jobs:
strategy:
matrix:
include:
- python_version: '3.7'
tox_env: py37
- python_version: '3.8'
tox_env: py38
- python_version: '3.9'
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ ENV/
# mypy
.mypy_cache/

Pipfile.lock
poetry.lock
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ repos:
hooks:
- id: black
name: Black
entry: pipenv run black
entry: poetry run black
language: system
types: [python]
- id: isort
name: Isort
entry: pipenv run isort
entry: poetry run isort
language: system
types: [python]
- id: flake8
name: Flake8
entry: pipenv run flake8
entry: poetry run flake8
language: system
types: [python]
- id: mypy
name: Mypy
entry: pipenv run mypy
entry: poetry run mypy
language: system
types: [python]
17 changes: 0 additions & 17 deletions Pipfile

This file was deleted.

3 changes: 0 additions & 3 deletions country_list/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from .country_list import available_languages, countries_for_language

__author__ = "Niels Lemmens"
__email__ = "draso.odin@gmail.com"
__version__ = "1.0.0"
__all__ = ["available_languages", "countries_for_language"]
40 changes: 36 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
[build-system]
requires = [
"setuptools >= 40.9.0",
[tool.poetry]
name = "country_list"
version = "1.0.0"
description = "List of all countries with names and ISO 3166-1 codes in all languages"
authors = ["Niels Lemmens <1936122+bulv1ne@users.noreply.github.com>"]
readme = "README.rst"
repository = "https://github.com/bulv1ne/country_list"
license = "MIT"
include = ["country_list/country_data/data/*/country.csv"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
build-backend = "setuptools.build_meta"

[tool.poetry.dependencies]
python = "^3.8"

[tool.poetry.dev-dependencies]
black = "*"
isort = "*"
flake8 = "*"
coverage = "*"
mypy = "*"
pre-commit = "*"
tox = "*"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
36 changes: 0 additions & 36 deletions setup.py

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py3{7,8,9,10,11,12}, flake8, isort, black, mypy
envlist = py3{8,9,10,11,12}, flake8, isort, black, mypy

[travis]
python =
Expand Down Expand Up @@ -35,5 +35,5 @@ setenv =
PYTHONPATH = {toxinidir}
deps = coverage
commands = coverage erase
coverage run setup.py test
coverage run -m unittest
coverage report -m

0 comments on commit 186a9f7

Please sign in to comment.