-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
46 lines (39 loc) · 1.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
import re
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(here, 'mobilenium', '__version__.py')
with open(version_file) as init:
version_file = init.read()
version_pattern = '[0-9]{1,2}\.[0-9]{1,2}.[0-9]{1,2}'
version = re.search(version_pattern, version_file).group()
pkgs = ['mobilenium']
# Dependencies
with open('requirements.txt') as f:
dependencies = f.readlines()
install_requires = [t.strip() for t in dependencies]
config = dict(
name='mobilenium',
version=version,
description='Mobilenium uses BrowserMob Proxy to give superpowers to Selenium.',
long_description=open('README.rst').read(),
author='Rafael Alves Ribeiro',
author_email='[email protected]',
url='https://github.com/rafpyprog/Mobilenium.git',
keywords='selenium browsermob proxy',
classifiers=[
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: Apache Software License',
'Development Status :: 2 - Pre-Alpha'],
packages=pkgs,
license='License :: OSI Approved :: MIT License',
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=[
'codecov',
'pytest',
'pytest-cov',
],
)
setup(**config)