-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
160 lines (127 loc) · 4.78 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!gir/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Sep 14 09:36:11 2022
@author: edoardo
"""
from setuptools import setup, Extension, find_packages
from setuptools import find_namespace_packages
from Cython.Build import cythonize
# Load the README file.
with open(file="Readme.md", mode="r") as readme_handle:
long_description = readme_handle.read()
extensions=[
Extension('PGAM/fast_summations',
sources=['src/PGAM/fast_summations.pyx'],
extra_compile_args=['-fopenmp'],
language='c'),
Extension('PGAM/kron_cython',
sources=['src/PGAM/kron_cython.pyx'],
extra_compile_args=['-fopenmp'],
language='c')
]
setup(
# Define the library name, this is what is used along with `pip install`.
name='PGAM',
# Define the author of the repository.
author='Edoardo Balzani',
# Define the Author's email, so people know who to reach out to.
author_email='[email protected]',
# Define the version of this library.
# Read this as
# - MAJOR VERSION 0
# - MINOR VERSION 1
# - MAINTENANCE VERSION 0
version='0.1.14',
# Here is a small description of the library. This appears
# when someone searches for the library on https://pypi.org/search.
description='A python package for neural tuning function estimation with Poisson GAM.',
# I have a long description but that will just be my README
# file, note the variable up above where I read the file.
long_description=long_description,
# This will specify that the long description is MARKDOWN.
long_description_content_type="text/markdown",
# Here is the URL where you can find the code, in this case on GitHub.
url='https://github.com/BalzaniEdoardo/PGAM',
# These are the dependencies the library needs in order to run.
install_requires=[
'Cython==0.29.24',
'dill==0.3.3',
'matplotlib==3.3.4',
'numba==0.55.2',
'numpy==1.20.3',
'opt_einsum==3.3.0',
'pandas==1.3.3',
#'pycuda==2022.1',
'PyYAML==6.0',
'rpy2==3.4.4',
'scikit_learn==1.1.2',
'scipy==1.6.3',
'seaborn==0.11.2',
'Send2Trash==1.8.0',
'statsmodels==0.12.2'
],
# install_requires=[
# 'Cython',
# 'dill',
# 'matplotlib',
# 'numba',
# 'numpy',
# 'opt_einsum',
# 'pandas',
# #'pycuda==2022.1',
# 'PyYAML',
# 'rpy2',
# 'scikit_learn',
# 'scipy',
# 'seaborn',
# 'Send2Trash',
# 'statsmodels'
# ],
ext_modules=cythonize(extensions),
#cmdclass = {'build_ext': build_ext},
# Here are the keywords of my library.
keywords='neuroscience, GAM, tuning function',
# here are the packages I want "build."
packages=find_namespace_packages(
where='src',
include=['PGAM'],
exclude=['firefly_utils','fitting','preprocessing_pipeline','select_variables',
'analyzing','JP','TMP']# alternatively: `exclude=['additional*']`
),
package_dir={"": "src"},#['GAM_library'],
# # here we specify any package data.
# package_data={
# # And include any files found subdirectory of the "td" package.
# "td": ["app/*", "templates/*"],
# },
# I also have some package data, like photos and JSON files, so
# I want to include those as well.
include_package_data=False,
# Here I can specify the python version necessary to run this library.
python_requires='>=3.6'
# Additional classifiers that give some characteristics about the package.
# For a complete list go to https://pypi.org/classifiers/.
# classifiers=[
# # I can say what phase of development my library is in.
# 'Development Status :: 3 - Alpha',
# # Here I'll add the audience this library is intended for.
# 'Intended Audience :: Developers',
# 'Intended Audience :: Science/Research',
# 'Intended Audience :: Neuroscientists',
# # Here I'll define the license that guides my library.
# 'License :: OSI Approved :: MIT License',
# # Here I'll note that package was written in English.
# 'Natural Language :: English',
# # Here I'll note that any operating system can use it.
# 'Operating System :: OS Independent',
# # Here I'll specify the version of Python it uses.
# 'Programming Language :: Python',
# 'Programming Language :: Python :: 3',
# 'Programming Language :: Python :: 3.9',
# # Here are the topics that my library covers.
# 'Topic :: GAM',
# 'Topic :: Neuroscience',
# 'Topic :: Spike Train Modelnig'
# ]
)