-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (27 loc) · 998 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
from setuptools import setup, find_packages
import glob
import os
import pkg_resources
import pathlib
from src import __version__, _program
# glob_fix command thanks to https://stackoverflow.com/a/64789489/15793575
def glob_fix(package_name, glob):
# this assumes setup.py lives in the folder that contains the package
package_path = pathlib.Path(f'./{package_name}').resolve()
return [str(path.relative_to(package_path))
for path in package_path.glob(glob)]
setup(name='deletion_detector',
version=__version__,
packages=['src'],
scripts=[],
description='Script to detect deletions in SARS-CoV-2 genomes',
url='https://github.com/charlesfoster/deletion_detector',
author='Dr Charles Foster',
author_email='charles.foster@unsw.edu.au',
entry_points="""
[console_scripts]
{program} = src.command:main
""".format(program = _program),
include_package_data=True,
keywords=[],
zip_safe=False)