forked from Florents-Tselai/PyCarGr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
40 lines (29 loc) · 1001 Bytes
/
Copy pathsetup.py
File metadata and controls
40 lines (29 loc) · 1001 Bytes
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
#!/usr/bin/python
# -*- encoding: utf-8 -*-
# !/usr/bin/python
# -*- encoding: utf-8 -*-
from sqlite3 import connect
from setuptools import setup
from setuptools.command.install import install
from pycargr import DB_PATH
class CustomInstall(install):
def run(self):
install.run(self)
with connect(str(DB_PATH)) as db_con:
db_con.executescript(open('schema.sql').read())
setup(
name='PyCarGr',
version='1.0.0',
packages=['pycargr', ],
license='The MIT License (MIT) Copyright © 2017 Florents Tselai.',
description='PyCarGr - Unofficial car.gr API',
long_description=open('README.md', 'r', encoding='utf-8').read(),
install_requires=open('requirements.txt', 'r').readlines(),
author='Florents Tselai',
author_email='florents.tselai@gmail.com',
url='https://github.com/Florents-Tselai/PyCarGr',
cmdclass={'install': CustomInstall},
entry_points={
'console_scripts': ['pycargr=pycargr.cli:main'],
}
)