-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathsetup.py
47 lines (36 loc) · 1.43 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
import os
import re
from setuptools import setup, find_packages
# Read version from _version.py
version_file = os.path.join(os.path.dirname(__file__), 'topaz', '_version.py')
with open(version_file) as f:
version = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(1)
# Read requirements from requirements.txt
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
with open(requirements_file) as f:
requirements = [line.strip() for line in f if line.strip()]
name = 'topaz-em'
description = 'Particle picking with positive-unlabeled CNNs'
long_description = 'Particle picking software for single particle cryo-electron microscopy using convolutional neural networks and positive-unlabeled learning. Includes methods for micrograph denoising.'
keywords = 'cryoEM particle-picking CNN positive-unlabeled denoise topaz'
url = 'https://github.com/tbepler/topaz'
author = 'Tristan Bepler'
author_email = '[email protected]'
license = 'GPLv3'
setup(
name = name,
version=version,
description=description,
long_description=long_description,
keywords=keywords,
url=url,
author=author,
author_email=author_email,
license=license,
packages=find_packages(),
#package_dir = {'': 'topaz'},
entry_points = {'console_scripts': ['topaz = topaz.main:main']},
include_package_data = True,
python_requires='>=3.8,<=3.12',
install_requires=requirements,
)