-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (42 loc) · 1.14 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
# -*- coding: UTF-8 -*-
#! /usr/bin/python
import sys
from setuptools import setup, find_packages
import vale
NAME = 'vale'
VERSION = vale.__version__
AUTHOR = 'Ahmed Ratnani'
EMAIL = '[email protected]'
URL = 'https://github.com/ratnania/vale'
DESCR = 'a Domain Specific Language for Variational formulations.'
KEYWORDS = ['math']
LICENSE = "LICENSE"
setup_args = dict(
name = NAME,
version = VERSION,
description = DESCR,
long_description = open('README.rst').read(),
author = AUTHOR,
author_email = EMAIL,
license = LICENSE,
keywords = KEYWORDS,
url = URL,
)
# ...
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
# ...
# ...
install_requires = ['numpy', 'sympy']
try:
import textx
except:
install_requires += ['textx']
# ...
def setup_package():
setup(packages=packages, \
include_package_data=True, \
zip_safe=True, \
install_requires=install_requires, \
**setup_args)
if __name__ == "__main__":
setup_package()