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
|
# try using distribute or setuptools or distutils.
try:
import distribute_setup
distribute_setup.use_setuptools()
except ImportError:
pass
import setuptools
import os
import sys
import re
# Get long description from README.md
with open("README.md", "r") as dfh:
long_description = dfh.read()
# parse version from package/module without importing or evaluating the code
with open(os.path.join("pyani", "__init__.py"), "r") as fh:
for line in fh:
m = re.search(r'^__version__ = "(?P<version>[^"]+)"$', line)
if m:
version = m.group("version")
break
if sys.version_info <= (3, 0):
sys.stderr.write("ERROR: pyani requires Python 3 " + "or above...exiting.\n")
sys.exit(1)
setuptools.setup(
name="pyani",
version=version,
author="Leighton Pritchard",
author_email="leighton.pritchard@hutton.ac.uk",
description="pyani provides a package and script for calculation of genome-scale average nucleotide identity.",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
keywords="genome bioinformatics sequence",
platforms="Posix; MacOS X",
url="http://widdowquinn.github.io/pyani/",
download_url="https://github.com/widdowquinn/pyani/releases",
scripts=[
os.path.join("bin", "average_nucleotide_identity.py"),
os.path.join("bin", "genbank_get_genomes_by_taxon.py"),
os.path.join("bin", "delta_filter_wrapper.py"),
],
packages=["pyani"],
package_data={"pyani": ["tests/test_JSpecies/*.tab"]},
include_package_data=True,
install_requires=["biopython", "matplotlib", "pandas", "scipy", "seaborn"],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
)
|