From 5a2ae17cf41bc2403e2a8c4c38ae67cb92866946 Mon Sep 17 00:00:00 2001 From: David Doty Date: Sat, 30 May 2020 15:30:22 -0700 Subject: [PATCH] fixed documentation but had to hard-code current version to do it. Something is messing with the ability to autogenerate docs when the current version is imported from scadnano --- doc/conf.py | 10 +++++----- setup.py | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 39e6ee37..6b120b81 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -16,7 +16,7 @@ import os import sys -import scadnano +# import scadnano sys.path.insert(0, os.path.abspath('../scadnano')) # print(sys.path) @@ -31,10 +31,10 @@ author = 'David Doty' # The full version, including alpha/beta/rc tags -# version = '0.7.0' -# release = '0.7.0' -version = scadnano.current_version -release = scadnano.current_version +version = '0.7.0' +release = '0.7.0' +# version = scadnano.current_version +# release = scadnano.current_version # -- General configuration --------------------------------------------------- diff --git a/setup.py b/setup.py index 5663cf2f..ca4b5f9a 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages -import scadnano +# import scadnano # read the contents of your README file from os import path @@ -21,15 +21,15 @@ setup(name='scadnano', packages=['scadnano'], - version=scadnano.current_version, - # version='0.7.0', + # version=scadnano.current_version, + version='0.7.0', + # download_url=f'https://github.com/UC-Davis-molecular-computing/scadnano-python-package/archive/v{scadnano.current_version}.zip', + download_url=f'https://github.com/UC-Davis-molecular-computing/scadnano-python-package/archive/v0.7.0.zip', license='MIT', description="Python scripting library for generating designs readable by scadnano.", author="David Doty", author_email="doty@ucdavis.edu", url="https://github.com/UC-Davis-molecular-computing/scadnano-python-package", - download_url=f'https://github.com/UC-Davis-molecular-computing/scadnano-python-package/archive/v{scadnano.current_version}.zip', - # download_url=f'https://github.com/UC-Davis-molecular-computing/scadnano-python-package/archive/v0.7.0.zip', long_description=long_description, long_description_content_type='text/markdown; variant=GFM', requires=['xlwt']