mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 18:01:38 +00:00
prepare to write custom commands in setup.py
This commit is contained in:
parent
e2510d802d
commit
bc00bb3a8b
18
setup.py
18
setup.py
@ -1,8 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
version_str = '0.1'
|
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
from distutils.core import Command
|
||||||
|
|
||||||
|
# Make sure we can import stuff from here.
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
current_dir = os.path.dirname(__file__)
|
||||||
|
sys.path.insert(0, current_dir)
|
||||||
|
|
||||||
|
from wordfreq.config import VERSION
|
||||||
|
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
@ -22,13 +28,12 @@ classifiers=[
|
|||||||
'Topic :: Software Development',
|
'Topic :: Software Development',
|
||||||
'Topic :: Text Processing :: Linguistic',]
|
'Topic :: Text Processing :: Linguistic',]
|
||||||
|
|
||||||
import os
|
README_contents = open(os.path.join(current_dir, 'README.txt')).read()
|
||||||
README_contents = open(os.path.join(os.path.dirname(__file__), 'README.txt')).read()
|
|
||||||
doclines = README_contents.split("\n")
|
doclines = README_contents.split("\n")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="wordfreq",
|
name="wordfreq",
|
||||||
version=version_str,
|
version=VERSION,
|
||||||
maintainer='Luminoso Technologies, Inc.',
|
maintainer='Luminoso Technologies, Inc.',
|
||||||
maintainer_email='dev@luminoso.com',
|
maintainer_email='dev@luminoso.com',
|
||||||
url='http://github.com/LuminosoInsight/wordfreq/',
|
url='http://github.com/LuminosoInsight/wordfreq/',
|
||||||
@ -38,6 +43,5 @@ setup(
|
|||||||
classifiers = classifiers,
|
classifiers = classifiers,
|
||||||
long_description = "\n".join(doclines[2:]),
|
long_description = "\n".join(doclines[2:]),
|
||||||
packages=['wordfreq'],
|
packages=['wordfreq'],
|
||||||
package_data = {'wordfreq': ['data/wordlists/*.txt']},
|
|
||||||
install_requires=['ftfy >= 3', 'functools32 == 3.2.3-1'],
|
install_requires=['ftfy >= 3', 'functools32 == 3.2.3-1'],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user