i3thuan5 / Taiwanese-serif-to-Unicode

MIT License
0 stars 0 forks source link

按怎包 #2

Open a8568730 opened 5 years ago

a8568730 commented 5 years ago

https://github.com/i3thuan5/Tau-Phah-Ji-Command

資料結構生按呢:

/Tau-Phah-Ji-Command
 |-- setup.py
 |-- tauphahji_cmd.py

setup.py

import setuptools
from distutils.core import setup

版本 = '0.0.3'

setup(
    name='Tau-Phah-Ji-Command',
    version=版本,
    author='薛丞宏',
    author_email='ihcaoe@gmail.com',
    url='https://github.com/i3thuan5/Tau-Phah-Ji-Command',
    py_modules=['tauphahji_cmd'],
    description='用指令叫鬥拍字',
    keywords=[
        '語料庫', '語言合成', '機器翻譯',
        'Taiwan', 'Natural Language', 'Corpus',
        'Text to Speech', 'TTS',
        'Machine Translateion',
    ],
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Operating System :: Unix',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Topic :: Scientific/Engineering',
        'Topic :: Scientific/Engineering :: Information Analysis',
        'Topic :: Text Processing',
        'Topic :: Text Processing :: Linguistic',
        "License :: OSI Approved :: MIT License",
    ],
    setup_requires=['wheel']
)
a8568730 commented 5 years ago

主要是建 setup.py , python 官方文件有解說伊 ê 路用:

The setup script is the centre of all activity in building, distributing, 
and installing modules using the Distutils

嘛有建議按怎包程式

Packaging tool recommendations
  1. Use setuptools to define projects and create Source Distributions. [5] [6]
  2. Use the bdist_wheel setuptools extension available from the wheel 
      project to create wheels. This is especially beneficial, if your project 
      contains binary extensions.
  3. Use twine for uploading distributions to PyPI. (Done