Skip to content

Commit

Permalink
feat: Migrate away from poetry since we don't need the additional fea…
Browse files Browse the repository at this point in the history
…tures
  • Loading branch information
georgkrause committed Apr 9, 2024
1 parent 9a2414d commit 486a955
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 21 deletions.
55 changes: 37 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
[tool.poetry]
[project]
name = "langcodes"
version = "3.3.0"
description = "Tools for labeling human languages with IETF language tags"
authors = ["Elia Robyn Speer <[email protected]>"]
license = "MIT"
authors = [{name = "Elia Robyn Speer", email = "[email protected]"}]
maintainers = [{name = "Georg Krause", email = "[email protected]"}]
readme = "README.md"
homepage = "https://github.com/rspeer/langcodes"
exclude = ["langcodes/data/cldr*"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"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",
]
dynamic = ["version"]

[tool.poetry.dependencies]
python = ">= 3.6"
language-data = { version = "^1.1", optional = true }
requires-python = ">= 3.6"
dependencies = [
"language-data>=1.1"
]

[tool.poetry.dev-dependencies]
language-data = { version = "^1.1", optional = true }
[project.urls]
Homepage = "https://github.com/georgkrause/langcodes"
Repository = "https://github.com/georgkrause/langcodes"
Issues = "https://github.com/georgkrause/langcodes/issues"

[tool.poetry.extras]
data = ["language-data"]

[tool.flake8]
max-line-length = 99
[project.optional-dependencies]
test = [
'pytest',
'pytest-cov'
]
build = [
'build',
'twine'
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[tox]
envlist = py36, py37, py38, py39, py310
envlist = py36, py37, py38, py39, py310, py311, py312
skipsdist = True

[testenv]
deps =
pytest
marisa_trie
language_data
poetry
commands = poetry install -E data
commands = pip install .
pytest

0 comments on commit 486a955

Please sign in to comment.