-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
43 lines (30 loc) · 993 Bytes
/
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
#!/usr/bin/env python
import re
from subprocess import check_call
from setuptools import setup, find_packages, Command
cmdclass = {}
with open('httprider/__init__.py') as f:
_version = re.search(r'__version__\s+=\s+\"(.*)\"', f.read()).group(1)
class bdist_app(Command):
"""Custom command to build the application. """
description = 'Build the application'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
check_call(['./venv/bin/pyinstaller', '-y', 'httprider.spec'])
cmdclass['bdist_app'] = bdist_app
setup(name='HttpRider',
version=_version,
packages=find_packages(),
description='Desktop Http Client',
author='Namuan',
author_email='info@bettercallbots.com',
license='MIT',
url='https://deskriders.dev',
entry_points={
'gui_scripts': ['app=httprider.application:application.py'],
},
cmdclass=cmdclass)