-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
72 lines (58 loc) · 2.39 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
from pathlib import Path
from setuptools import setup, find_packages
from typing import List
"""
Explanation of how to get the git dependencies:
https://stackoverflow.com/questions/32688688/how-to-write-setup-py-to-include-a-git-repository-as-a-dependency/54701434#54701434
"""
def get_links():
return [
#"datasci_tools @ git+https://[email protected]/bacelii/datasci_tools.git"
]
def get_install_requires(filepath=None):
if filepath is None:
filepath = "./"
"""Returns requirements.txt parsed to a list"""
fname = Path(filepath).parent / 'requirements.txt'
targets = []
if fname.exists():
with open(fname, 'r') as f:
targets = f.read().splitlines()
targets += get_links()
return targets
def get_dependencies():
return [
#"https://github.com/bacelii/datasci_tools.git"
]
def get_long_description(filepath='README.md'):
try:
import pypandoc
long_description = pypandoc.convert_file(filepath, 'rst')
except:
print("\n\n\n****Need to install pypandoc (and if havent done so install apt-get install pandoc) to make long description clean****\n\n\n")
long_description = Path("README.md").read_text()
return long_description
setup(
name='graph_nx_tools', # the name of the package, which can be different than the folder when using pip instal
version='1.0.0',
description="Utility functions for creating and manipulating networkx graphs to perform networkx science functions",
long_description=get_long_description(),
project_urls={
'Source':"https://github.com/reimerlab/graph_tools",
'Documentation':"https://reimerlab.github.io/graph_tools/",
},
author='Brendan Celii',
author_email='[email protected]',
packages=find_packages(), #teslls what packages to be included for the install
install_requires=get_install_requires(), #external packages as dependencies
# dependency_links = get_dependencies(),
# if wanted to install with the extra requirements use pip install -e ".[interactive]"
extras_require={
#'interactive': ['matplotlib>=2.2.0', 'jupyter'],
},
# if have a python script that wants to be run from the command line
entry_points={
#'console_scripts': ['pipeline_download=Applications.Eleox_Data_Fetch.Eleox_Data_Fetcher_vp1:main']
},
scripts=[],
)