forked from tresoldi/malign
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (47 loc) · 1.86 KB
/
setup.py
File metadata and controls
53 lines (47 loc) · 1.86 KB
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
"""Setup script."""
from pathlib import Path
from setuptools import find_packages, setup
import glob
# The directory containing this file
LOCAL_PATH = Path(__file__).parent
# The text of the README file
with open("README.md", encoding="utf-8") as fp:
readme_contents = fp.read()
# Build (recursive) list of resource files
resource_files = []
for directory in glob.glob("resources/*/"):
files = glob.glob(directory + "*")
resource_files.append((directory, files))
# Load requirements, so they are listed in a single place
with open("requirements.txt", encoding="utf-8") as fp:
install_requires = [dep.strip() for dep in fp.readlines()]
# This call to setup() does all the work
setup(
author_email="tiago.tresoldi@lingfil.uu.se",
author="Tiago Tresoldi",
classifiers=[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries",
],
data_files=[("docs", glob.glob("docs/*"))] + resource_files,
description="Library for multiple asymmetric alignments on different alphabets",
entry_points={"console_scripts": ["malign=malign.__main__:main"]},
include_package_data=True,
install_requires=install_requires,
keywords=["alignment", "sequence alignment", "multiple alphabet"],
license="MIT",
long_description_content_type="text/markdown",
long_description=readme_contents,
name="malign",
packages=find_packages(where="src"), # ["malign", "resources", "docs"],
package_dir={"": "src"}, # , "resources":"..", "docs":".."},
project_urls={"Documentation": "https://malign.readthedocs.io"},
python_requires=">=3.7",
test_suite="tests",
tests_require=[],
url="https://github.com/tresoldi/malign",
version="0.3.2", # remember to sync with __init__.py
zip_safe=False,
)