mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
a0f898fc22
This included adding the slugid 1.0.6 python source code in /python since slugid is now a dependency of the ./mach taskcluster-graph command, as well us updating references that used it. Previously the implementation was in-tree.
40 lines
905 B
Python
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='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',
|
|
),
|
|
)
|