This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
61 lines (51 loc) · 1.71 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
import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def walk_subpkg(name):
data_files = []
package_dir = 'sikorka'
for parent, dirs, files in os.walk(os.path.join(package_dir, name)):
# remove package_dir from the path
sub_dir = os.sep.join(parent.split(os.sep)[1:])
for f in files:
data_files.append(os.path.join(sub_dir, f))
return data_files
install_requires_replacements = {
'git+git://github.com/ojii/pymaging.git#egg=pymaging': 'pymaging',
'git+https://github.com/ojii/pymaging-png@master#egg=pymaging-png': 'pymaging-png',
}
install_requirements = list(set(
install_requires_replacements.get(requirement.strip(), requirement.strip())
for requirement in open('requirements.txt') if not requirement.lstrip().startswith('#')
))
pkg_data = {
"sikorka": walk_subpkg('ui')
}
setup(
name='Sikorka',
version='0.0.1',
author='Lefteris Karapetsas',
author_email='[email protected]',
description=('Sikorka desktop client'),
license='BSD-3',
keywords='ethereum location dapp',
url='http://packages.python.org/sikorka',
packages=['sikorka', 'sikorka.api', 'tests'],
package_data=pkg_data,
dependency_links=[
'http://github.com/ojii/pymaging-png/tarball/master#egg=pymaging-png',
'http://github.com/ojii/pymaging/tarball/master#egg=pymaging'
],
install_requires=install_requirements,
long_description=read('README.MD'),
classifiers=[
'Development Status :: 1 - Planning',
'Topic :: Utilities',
],
entry_points={
'console_scripts': [
'sikorka = sikorka.__main__:main'
]
}
)