diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/python/slugid/setup.py | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/python/slugid/setup.py')
-rwxr-xr-x | third_party/python/slugid/setup.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/third_party/python/slugid/setup.py b/third_party/python/slugid/setup.py new file mode 100755 index 0000000000..c45c726bd4 --- /dev/null +++ b/third_party/python/slugid/setup.py @@ -0,0 +1,39 @@ +#!/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='pmoore@mozilla.com', + 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', + 'Programming Language :: Python :: 3.5', + ), +) |