-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (40 loc) · 1.18 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
# -*- coding: utf-8 -*-
'''
setup for djvocab
Created on 2019-02-14
@author: Aaron Kitzmiller <[email protected]>
@copyright: 2019 The Presidents and Fellows of Harvard College. All rights reserved.
@license: GPL v2.0
'''
import re
from setuptools import setup, find_packages
def getVersion():
"""
Retrieve the version number from the __init__ file
"""
version = '0.0.0'
with open('djvocab/__init__.py', 'r') as f:
contents = f.read().strip()
m = re.search(r"__version__ = '([\d\.]+)'", contents)
if m:
version = m.group(1)
return version
setup (
name="djvocab",
version=getVersion(),
author='Aaron Kitzmiller <[email protected]>',
author_email='[email protected]',
description='Vocabulary model that can be used by other models',
license='LICENSE',
include_package_data=True,
url='https://github.com/harvardinformatics/djvocab',
packages=find_packages(),
long_description='Vocabulary model that can be used by other models',
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
],
install_requires = [
'Django>3,<4',
],
)