-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (46 loc) · 1.36 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
from setuptools import setup
test_deps = [
'pytest',
'mock',
'minimock',
'pytest-cov',
'pytest-runner',
'starrocks'
]
extras = {
'test': test_deps
}
# Commenting out, seems unnecessary these days
# try:
# import pygit2
# import os
# import datetime
# repo = pygit2.Repository(os.getcwd())
# commit_hash = repo.head.target
# commit = repo[commit_hash]
# print('commit {}'.format(commit_hash))
# print(datetime.date.fromtimestamp(commit.commit_time))
# print(commit.message)
# except ImportError:
# print('pygit2 is not available. Cannot detect current commit.')
# except:
# print('This is probably not a repo, a copy of the code.')
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='plaidcloud-utilities',
version="1.0.5",
author='Michael Rea',
author_email='[email protected]',
packages=['plaidcloud.utilities', 'plaidcloud.utilities.remote'],
install_requires=required,
tests_require=test_deps,
setup_requires=['pytest-runner'],
extras_require=extras,
long_description=long_description,
long_description_content_type='text/markdown',
)