forked from mirrors/gecko-dev
MozReview-Commit-ID: 5qfK6OygVMH --HG-- rename : third_party/python/pytest/_pytest/vendored_packages/pluggy-0.4.0.dist-info/LICENSE.txt => third_party/python/pluggy/LICENSE rename : third_party/python/pytest/doc/en/example/costlysetup/sub1/__init__.py => third_party/python/pytest/doc/en/example/costlysetup/sub_a/__init__.py rename : third_party/python/pytest/doc/en/example/costlysetup/sub1/__init__.py => third_party/python/pytest/doc/en/example/costlysetup/sub_b/__init__.py rename : third_party/python/pytest/_pytest/_code/__init__.py => third_party/python/pytest/src/_pytest/_code/__init__.py extra : rebase_source : d80873f2b1899decefbddddfc2f69ae045925b81
51 lines
1.6 KiB
Python
51 lines
1.6 KiB
Python
import os
|
|
from setuptools import setup
|
|
|
|
classifiers = [
|
|
'Development Status :: 4 - Beta',
|
|
'Intended Audience :: Developers',
|
|
'License :: OSI Approved :: MIT License',
|
|
'Operating System :: POSIX',
|
|
'Operating System :: Microsoft :: Windows',
|
|
'Operating System :: MacOS :: MacOS X',
|
|
'Topic :: Software Development :: Testing',
|
|
'Topic :: Software Development :: Libraries',
|
|
'Topic :: Utilities',
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
'Programming Language :: Python :: Implementation :: PyPy'] + [
|
|
('Programming Language :: Python :: %s' % x) for x in
|
|
'2 2.7 3 3.4 3.5 3.6'.split()]
|
|
|
|
with open('README.rst') as fd:
|
|
long_description = fd.read()
|
|
|
|
|
|
def get_version():
|
|
p = os.path.join(os.path.dirname(
|
|
os.path.abspath(__file__)), "pluggy/__init__.py")
|
|
with open(p) as f:
|
|
for line in f.readlines():
|
|
if "__version__" in line:
|
|
return line.strip().split("=")[-1].strip(" '")
|
|
raise ValueError("could not read version")
|
|
|
|
|
|
def main():
|
|
setup(
|
|
name='pluggy',
|
|
description='plugin and hook calling mechanisms for python',
|
|
long_description=long_description,
|
|
version=get_version(),
|
|
license='MIT license',
|
|
platforms=['unix', 'linux', 'osx', 'win32'],
|
|
author='Holger Krekel',
|
|
author_email='holger@merlinux.eu',
|
|
url='https://github.com/pytest-dev/pluggy',
|
|
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
|
classifiers=classifiers,
|
|
packages=['pluggy'],
|
|
)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main()
|