Files
firefox/third_party/python/slugid/setup.py
T
Andrew Halberstadt 7bb38413f2 Bug 1346025 - Move vendored python modules from /python to /third_party/python, r=ted
This commit is a simple 'hg mv' and does not contain any file modifications.

***
Bug 1346025 - Split vendored modules in python/moz.build to third_party/python/moz.build, r=ted

***
Bug 1346025 - Update references to moved python modules, r=ted

MozReview-Commit-ID: A12RnIFtXju
2017-05-25 11:48:03 -04:00

40 lines
905 B
Python

#!/usr/bin/env python
import re
from codecs import open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
packages = [
'slugid',
]
version = ''
with open('slugid/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
setup(
name='slugid',
version=version,
description='Base64 encoded uuid v4 slugs',
author='Pete Moore',
author_email='[email protected]',
url='http://taskcluster.github.io/slugid.py',
packages=packages,
package_data={'': ['LICENSE', 'README.md']},
license='MPL 2.0',
classifiers=(
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
),
)