-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
36 lines (32 loc) · 1.1 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
from setuptools import setup, find_packages
import os
# Function to read the __version__ variable from HSR/version.py
def read_version():
version_file = os.path.join(os.path.dirname(__file__), 'hsr', 'version.py')
namespace = {}
with open(version_file, 'r', encoding='utf-8') as f:
exec(f.read(), namespace)
return namespace['__version__']
# Use the read_version function to get the version
__version__ = read_version()
with open(os.path.join(os.path.dirname(__file__), 'README.md'), encoding='utf-8') as readme_file:
long_description = readme_file.read()
setup(
name="hsr",
version=__version__,
author="Marcello Costamagna",
license="AGPL-3.0",
description="Hypershape recognition (HSR): a general framework for moment-based similarity measures",
long_description=long_description,
long_description_content_type='text/markdown',
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=[
"numpy",
"scipy",
"rdkit"
],
entry_points={
'console_scripts': [
'hsr = hsr.hsr_cli:main']
},
)