tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

setup.py (1725B)


      1 #!/usr/bin/env python
      2 # -*- coding: utf-8 -*-
      3 import itertools
      4 import os
      5 import re
      6 import sys
      7 
      8 from setuptools import setup, find_packages
      9 
     10 PROJECT_ROOT = os.path.dirname(__file__)
     11 
     12 with open(os.path.join(PROJECT_ROOT, 'README.rst')) as file_:
     13    long_description = file_.read()
     14 
     15 # Get the version
     16 version_regex = r'__version__ = ["\']([^"\']*)["\']'
     17 with open(os.path.join(PROJECT_ROOT, 'src/hyperframe/__init__.py')) as file_:
     18    text = file_.read()
     19    match = re.search(version_regex, text)
     20 
     21    if match:
     22        version = match.group(1)
     23    else:
     24        raise RuntimeError("No version number found!")
     25 
     26 setup(
     27    name='hyperframe',
     28    version=version,
     29    description='HTTP/2 framing layer for Python',
     30    long_description=long_description,
     31    long_description_content_type='text/x-rst',
     32    author='Cory Benfield',
     33    author_email='cory@lukasa.co.uk',
     34    url='https://github.com/python-hyper/hyperframe/',
     35    packages=find_packages(where="src"),
     36    package_data={'': ['LICENSE', 'README.rst', 'CHANGELOG.rst'], "hyperframe": ["py.typed"]},
     37    package_dir={'': 'src'},
     38    python_requires='>=3.6.1',
     39    include_package_data=True,
     40    license='MIT License',
     41    classifiers=[
     42        'Development Status :: 5 - Production/Stable',
     43        'Intended Audience :: Developers',
     44        'License :: OSI Approved :: MIT License',
     45        'Programming Language :: Python',
     46        'Programming Language :: Python :: 3',
     47        'Programming Language :: Python :: 3.6',
     48        'Programming Language :: Python :: 3.7',
     49        'Programming Language :: Python :: 3.8',
     50        'Programming Language :: Python :: Implementation :: CPython',
     51        'Programming Language :: Python :: Implementation :: PyPy',
     52    ],
     53 )