Commit baee7be5 authored by Lukas Pravda's avatar Lukas Pravda
Browse files

update setup.py

parent afdd120a
...@@ -6,9 +6,10 @@ from setuptools import find_namespace_packages, setup ...@@ -6,9 +6,10 @@ from setuptools import find_namespace_packages, setup
def read(fname): def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(rel_path): def get_version(rel_path):
for line in read(rel_path).splitlines(): for line in read(rel_path).splitlines():
if line.startswith('__version__'): if line.startswith("__version__"):
delim = '"' if '"' in line else "'" delim = '"' if '"' in line else "'"
return line.split(delim)[1] return line.split(delim)[1]
else: else:
...@@ -17,10 +18,10 @@ def get_version(rel_path): ...@@ -17,10 +18,10 @@ def get_version(rel_path):
setup( setup(
name="pdbeccdutils", name="pdbeccdutils",
version=get_version('pdbeccdutils/__init__.py'), version=get_version("pdbeccdutils/__init__.py"),
description="Toolkit to deal with wwPDB chemical components definitions for small molecules.", description="Toolkit to deal with wwPDB chemical components definitions for small molecules.",
long_description=read("README.md"), long_description=read("README.md"),
long_description_content_type='text/markdown', long_description_content_type="text/markdown",
project_urls={ project_urls={
"Source code": "https://github.com/PDBeurope/ccdutils", "Source code": "https://github.com/PDBeurope/ccdutils",
"Documentation": "https://pdbeurope.github.io/ccdutils/", "Documentation": "https://pdbeurope.github.io/ccdutils/",
...@@ -33,14 +34,18 @@ setup( ...@@ -33,14 +34,18 @@ setup(
packages=find_namespace_packages(), packages=find_namespace_packages(),
zip_safe=False, zip_safe=False,
include_package_data=True, include_package_data=True,
python_requires='>=3.6', python_requires=">=3.6",
install_requires=[ install_requires=["Pillow", "scipy", "numpy", "pdbecif>=1.5",],
"Pillow", extras_require={
"scipy", "tests": ["pytest", "pytest-cov"],
"numpy", "docs": [
"pdbecif>=1.5", "sphinx",
], "sphinx_rtd_theme",
tests_require=["pytest"], "recommonmark",
"sphinx-autodoc-typehints",
"sphinx-markdown-tables",
],
},
entry_points={ entry_points={
"console_scripts": [ "console_scripts": [
"process_components_cif=pdbeccdutils.scripts.process_components_cif_cli:main", "process_components_cif=pdbeccdutils.scripts.process_components_cif_cli:main",
...@@ -62,6 +67,5 @@ setup( ...@@ -62,6 +67,5 @@ setup(
"Intended Audience :: Developers", "Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Bio-Informatics", "Topic :: Scientific/Engineering :: Bio-Informatics",
"Development Status :: 5 - Production/Stable", "Development Status :: 5 - Production/Stable",
],
],
) )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment