-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
35 lines (27 loc) · 972 Bytes
/
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
from setuptools import find_packages, setup
import requests
# Get the repository owner and name from the GitHub URL
github_url = 'https://github.com/seqasim/LFPAnalysis'
owner, repo = github_url.split('/')[-2:]
# Get the list of contributors from the GitHub API
response = requests.get(f'https://api.github.com/repos/{owner}/{repo}/contributors')
contributors = response.json()
# Create a list of author strings in the format "Name <email>"
authors = [f"{c['login']}" for c in contributors]
# Get long description
with open("README.md", "r") as fh:
__long_description__ = fh.read()
# Get requirements
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(
name='LFPAnalysis',
version='1.0.0',
description='Package to process LFP data',
url=github_url,
author=', '.join(authors),
packages=find_packages(),
package_data={'': ['data/*']},
include_package_data=True,
install_requires=required,
)