-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (43 loc) · 1.56 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
import os.path
import pathlib
import re
import pkg_resources
from setuptools import setup, find_packages
# ref. https://github.com/andreyfedoseev/django-static-precompiler/blob/master/setup.py
with open("testgui/__init__.py") as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError('Cannot find version information')
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
return open(path, encoding="utf-8").read()
README = read('README.md')
with pathlib.Path('requirements.in').open() as requirements_in:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_in)
]
setup(
name="testgui",
packages=find_packages(),
package_data={'testgui': ['assets/*']},
version=version,
author="Barney Szabolcs",
author_email="[email protected]",
url="https://github.com/BarnabasSzabolcs/testgui",
description="Drop-in replacement GUI for Django testing.",
long_description=README,
long_description_content_type='text/markdown',
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License'
],
keywords=["test", "django", "management command", "test GUI", "GUI"],
python_requires=">=3.5",
install_requires=install_requires,
)