forked from upciti/wheel2deb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (35 loc) · 911 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
from setuptools import setup
INSTALL_REQUIRES = [
'setuptools',
'wheel',
'pkginfo',
'jinja2',
'colorama',
'attrs>=17',
'packaging',
'pyyaml',
'dirsync'
]
version_template = """\
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
class Version:
def __init__(self, version):
self._p = version.split('.')
self._v = version
def __getitem__(self, key):
return self._p[key]
def __str__(self):
return self._v
def __repr__(self):
return self._v
__version__ = Version({version!r})
"""
setup(setup_requires=['setuptools-scm', 'setuptools>=38.6.0'],
use_scm_version={
'write_to': 'src/_wheel2deb/version.py',
'write_to_template': version_template},
package_dir={'': 'src'},
install_requires=INSTALL_REQUIRES,
include_package_data=True)