forked from Uauy-Lab/IBSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (36 loc) · 1.34 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
import setuptools
from distutils.core import setup, Extension
from Cython.Build import cythonize
import unittest
def unit_tests():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='test_*.py')
return test_suite
# See https://stackoverflow.com/a/51272967/5188860
module1 = Extension('kmerGWAS',
sources = ['IBSpy/kmerGWAS/nucleotide.c', 'IBSpy/kmerGWAS/kmer_general.pyx',
'IBSpy/kmerGWAS/kmer_general_c.c'])
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="IBSpy", # Replace with your own username
version="0.0.1",
author="Ricardo H. Ramirez-Gonzalez",
author_email="[email protected]",
description="A package to detect IBS regions",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Uauy-Lab/IBSpy",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
test_suite='setup.unit_tests',
#ext_modules=[module1]
ext_modules = cythonize(
[module1],
compiler_directives={'language_level': "3"})
)