-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
27 lines (24 loc) · 1.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from setuptools import setup
import os, sys
if os.path.isdir('python'): long_description = open('python/README.md').read()
else: long_description = open('README.md').read()
version = os.getenv('V')
if not version and ('bdist' in sys.argv or 'sdist' in sys.argv): raise ValueError('You must set the environmental variable $V (the version number) to release.')
setup(name='locale-simple',
version=str(version),
py_modules=['locale_simple'],
package_dir={'':'python'},
description='Python version of Locale::Simple, Translation system based on gettext storage, same API in Perl and Javascript',
author='Torsten Raudßus',
author_email='torsten@raudssus.de',
license='MIT',
url='https://github.com/Getty/locale-simple/',
long_description=long_description,
platforms=['any'],
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Software Development :: Localization",
],
)