-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (37 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
import os.path
import re
from setuptools import setup, find_packages
# ref. https://github.com/andreyfedoseev/django-static-precompiler/blob/master/setup.py
with open("quasargui/__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')
setup(
name="quasargui",
packages=find_packages(),
package_data={'quasargui': ['assets/*']},
version=version,
author="Barney Szabolcs",
author_email="[email protected]",
url="https://github.com/BarnabasSzabolcs/pyquasargui",
description="Drop-in replacement GUI for Django testing.",
long_description=README,
long_description_content_type='text/markdown',
classifiers=[
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License'
],
keywords=["Python GUI", "python gui", "python", "GUI"],
python_requires=">=3.6",
install_requires=[
"pywebview>=3.5",
"cefpython3>=66.0"
],
)