Skip to content
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
16 changes: 16 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Include the license and readme files
include LICENSE.txt
include README.md
include index.rst

# Include all data files (already handled by package_data but good to be explicit)
recursive-include epitran/data *.csv *.txt *.json *.bib

# Include the scripts
recursive-include epitran/bin *.py

# Exclude test files and cache
recursive-exclude epitran/test *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]
recursive-exclude * .DS_Store
5 changes: 0 additions & 5 deletions epitran/setup.cfg

This file was deleted.

101 changes: 101 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "epitran"
version = "1.25.1"
description = "Tools for transcribing languages into IPA."
readme = "README.md"
license = "MIT"
authors = [
{name = "David R. Mortensen", email = "dmortens@cs.cmu.edu"}
]
maintainers = [
{name = "David R. Mortensen", email = "dmortens@cs.cmu.edu"}
]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",

"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
keywords = ["linguistics", "phonetics", "IPA", "transliteration", "phonology"]
dependencies = [
"setuptools",
"regex",
"panphon>=0.20",
"marisa-trie",
"requests",
"jamo",
]

[project.urls]
Homepage = "https://github.com/dmort27/epitran"
Repository = "https://github.com/dmort27/epitran"
"Bug Tracker" = "https://github.com/dmort27/epitran/issues"
Documentation = "https://github.com/dmort27/epitran#readme"
Download = "https://github.com/dmort27/epitran/archive/1.25.1.tar.gz"

# Scripts will be handled via setuptools scripts configuration
# since they don't follow the standard entry point pattern

[tool.setuptools]
zip-safe = true
script-files = [
"epitran/bin/epitranscribe.py",
"epitran/bin/uigtransliterate.py",
"epitran/bin/detectcaps.py",
"epitran/bin/connl2ipaspace.py",
"epitran/bin/connl2engipaspace.py",
"epitran/bin/migraterules.py",
"epitran/bin/decompose.py",
"epitran/bin/testvectorgen.py",
]

[tool.setuptools.packages.find]
include = ["epitran*"]
exclude = ["epitran.test*"]

[tool.setuptools.package-data]
epitran = [
"data/*.csv",
"data/*.txt",
"data/*.json",
"data/map/*.csv",
"data/pre/*.txt",
"data/post/*.txt",
"data/space/*.csv",
"data/strip/*.csv",
"data/reromanize/*.csv",
"data/rules/*.txt",
"data/bib/*.bib",
]

[tool.setuptools.dynamic]
# If you want to make version dynamic in the future, uncomment:
# version = {attr = "epitran.__version__"}

# Development dependencies (optional)
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"pytest-cov",
"black",
"flake8",
"mypy",
]
test = [
"pytest>=6.0",
"pytest-cov",
]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

47 changes: 3 additions & 44 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
from io import open
# Minimal setup.py for backward compatibility
# All configuration is now in pyproject.toml
from setuptools import setup

setup(name='epitran',
version='1.25.1',
description='Tools for transcribing languages into IPA.',
long_description=open('README.md', encoding='utf-8').read(),
long_description_content_type='text/markdown',
url='http://github.com/dmort27/epitran',
download_url='https://github.com/dmort27/epitran/archive/1.25.1.tar.gz',
author='David R. Mortensen',
author_email='dmortens@cs.cmu.edu',
license='MIT',
python_requires='>=3.10',
install_requires=['setuptools',
'regex',
'panphon>=0.20',
'marisa-trie',
'requests',
'jamo'],
scripts=['epitran/bin/epitranscribe.py',
'epitran/bin/uigtransliterate.py',
'epitran/bin/detectcaps.py',
'epitran/bin/connl2ipaspace.py',
'epitran/bin/connl2engipaspace.py',
'epitran/bin/migraterules.py',
'epitran/bin/decompose.py',
'epitran/bin/testvectorgen.py',],
packages=['epitran'],
package_dir={'epitran': 'epitran'},
package_data={'epitran': ['data/*.csv', 'data/*.txt',
'data/map/*.csv', 'data/*.json',
'data/pre/*.txt', 'data/post/*.txt',
'data/space/*.csv', 'data/strip/*.csv',
'data/reromanize/*.csv',
'data/rules/*.txt',
'data/bib/*.bib']},
zip_safe=True,
classifiers=['Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Text Processing :: Linguistic']
)
setup()
Loading