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

port static configs to setup.cfg #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
45 changes: 45 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[metadata]
name = jaconv
version = attr: jaconv.__version__
license = MIT License
platforms = POSIX, Windows, Unix, MacOS
author = Yukino Ikegami
author_email = [email protected]
url = https://github.com/ikegami-yukino/jaconv
keywords =
Japanese converter
Japanese
text preprocessing
half-width kana
Hiragana
Katakana
Hankaku
Zenkaku
transliteration
Julius
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: MIT License
Natural Language :: Japanese
Operating System :: MacOS
Operating System :: Microsoft
Operating System :: POSIX
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
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
Topic :: Text Processing

[options]
packages = jaconv

[options.package_data]
jaconv = py.typed, *.pyi
41 changes: 1 addition & 40 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,49 +1,10 @@
# -*- coding: utf-8 -*-
from codecs import open
import os
import re
from setuptools import setup

with open(os.path.join('jaconv', '__init__.py'), 'r', encoding='utf8') as f:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(f.read()).group(1)

setup(name='jaconv',
packages=['jaconv'],
package_data={
"jaconv": ["py.typed", "*.pyi"],
},
version=version,
license='MIT License',
platforms=['POSIX', 'Windows', 'Unix', 'MacOS'],
setup(
description='Pure-Python Japanese character interconverter for '
'Hiragana, Katakana, Hankaku, Zenkaku and more',
author='Yukino Ikegami',
author_email='[email protected]',
url='https://github.com/ikegami-yukino/jaconv',
keywords=[
'Japanese converter', 'Japanese', 'text preprocessing',
'half-width kana', 'Hiragana', 'Katakana', 'Hankaku', 'Zenkaku',
'transliteration', 'Julius'
],
classifiers=[
'Development Status :: 4 - Beta', 'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: MIT License',
'Natural Language :: Japanese', 'Operating System :: MacOS',
'Operating System :: Microsoft', 'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'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', 'Topic :: Text Processing'
],
data_files=[('', ['README.rst', 'CHANGES.rst'])],
long_description='%s\n\n%s' %
(open('README.rst', encoding='utf8').read(),
open('CHANGES.rst', encoding='utf8').read()),
Expand Down