setup.pyã®éå½¢
ã ãããåããã¿ã¼ã³ã§æ¸ããã®ã§æµç¨ã§ããããã«ã¡ã¢ã
githubã¨ãbitbucketã«ãªãã¸ããªãä½ã£ã¦pypiã§å
¬éããæ³å®ã
setup.py, README.rst, MANIFEST.inã®ï¼ã¤ããã¯ãããã
setup.py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages import sys setup( name='glbase', # ããã±ã¼ã¸åãä»ã¨è¢«ããªãããã«é©å½ã«æ±ºãã version='0.0.1', description='OpenGL scene graph and utilities', # çã説æ long_description=open('README.rst').read(), # é·ã説æ classifiers=[ # pypiç»é²ç¨ 'Programming Language :: Python :: 2', 'License :: OSI Approved :: zlib/libpng License', 'Topic :: Multimedia :: Graphics :: 3D Modeling', ], keywords=['opengl'], # pypiç»é²ç¨ author='ousttrue', # pypiç»é²ç¨ author_email='[email protected]', # pypiç»é²ç¨ license='zlib', # pypiç»é²ç¨ install_requires=[ # easy_installç¨ 'glglue', 'pymeshio', # ä¾åããã±ã¼ã¸ ], packages=find_packages(), # ããã±ã¼ã¸ãã«ã¬ã³ããã£ã¬ã¯ããªããèªåã§æ¢ãã£ã½ã test_suite='nose.collector', # noseã§ãã¹ããã tests_require=['Nose'], # noseã§ãã¹ããã )
README.rst
====== glbase ====== reStructuredTextå½¢å¼ã§èª¬æãæ¸ã(utf-8)ãgithubã®èª¬æãã¼ã¸ã«ãªããsetup.pyã®long_descriptionã«ãæå®ãã¦ããã®ã§pypiã®ããã¥ã¡ã³ãã«ããªãã
MANIFEST.in
include README.rst
README.rstãç¡ãã¨setup.py installã«å¤±æãã¦ãã¾ã(setup.pyã§openãã¦ããã»ã»ã»)ã®ã§å¿ããã«è¿½å ãã¦ããã