-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
47 lines (38 loc) · 1.09 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
# -*- coding: UTF-8 -*-
#! /usr/bin/python
from setuptools import setup, find_packages
NAME = 'fffi'
VERSION = 0.1
AUTHOR = 'Christopher Albert'
EMAIL = '[email protected]'
URL = 'https://github.com/krystophny/fffi'
DESCR = 'Toolkit to transparently interface Fortran from Python.'
KEYWORDS = ['CFFI', 'Fortran']
LICENSE = 'MIT'
setup_args = dict(
name=NAME,
version=VERSION,
description=DESCR,
long_description=open('README.md').read(),
author=AUTHOR,
author_email=EMAIL,
license=LICENSE,
keywords=KEYWORDS,
url=URL,
)
# ...
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
# ...
# Requirements from local "requirements.txt" file
install_requires = ['cffi', 'textX']
package_data = {'fffi': ['parser/grammar.tx']}
def setup_package():
setup(packages=packages,
include_package_data=True,
package_data=package_data,
install_requires=install_requires,
setup_requires=['pytest-runner'],
tests_require=['pytest'],
**setup_args)
if __name__ == "__main__":
setup_package()