-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·64 lines (56 loc) · 2.03 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
from os import path
import re
from setuptools import setup, find_packages
# Find the package version in __init__.py without importing it
init_file = path.join(path.dirname(__file__), "selenosis", "__init__.py")
with open(init_file) as f:
for line in f:
m = re.search(r"""^__version__ = (['"])(.+?)\1$""", line)
if m is not None:
version = m.group(2)
break
else:
raise LookupError("Unable to find __version__ in " + init_file)
def read(*parts):
file_path = path.join(path.dirname(__file__), *parts)
return open(file_path).read()
setup(
name='django-selenosis',
version=version,
license='BSD',
description='Helpers for writing selenium tests for Django',
long_description=read('README.rst'),
url='https://github.com/theatlantic/django-selenosis',
author='Frankie Dintino',
author_email='[email protected]',
maintainer='Frankie Dintino',
maintainer_email='[email protected]',
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
install_requires=['Django>=2.2',],
entry_points={
"pytest11": [
"selenosis = selenosis.pytest_plugin.selenosis",
"tags = selenosis.pytest_plugin.tags",
],
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Topic :: Software Development :: Libraries :: Python Modules',
])