From 4768303a4705bfcf99f54a2916f42da4b03e7203 Mon Sep 17 00:00:00 2001 From: Jerome Kelleher Date: Tue, 12 Aug 2014 17:33:05 +0100 Subject: [PATCH] Minimal metadata required for Python packaging. Renamed .md file to .txt and made a soft link from README.rst to the .txt file. This allows both Python packaging tools to do the correct thing as well as providing a nicely rendered README on github. --- README.rst | 1 + README.md => README.txt | 0 setup.py | 7 +++++++ 3 files changed, 8 insertions(+) create mode 120000 README.rst rename README.md => README.txt (100%) diff --git a/README.rst b/README.rst new file mode 120000 index 000000000..c3ca07460 --- /dev/null +++ b/README.rst @@ -0,0 +1 @@ +README.txt \ No newline at end of file diff --git a/README.md b/README.txt similarity index 100% rename from README.md rename to README.txt diff --git a/setup.py b/setup.py index 650c38b08..aa2c2c761 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,9 @@ def parse_version(module_file): match = re.findall("__version__ = '([^']+)'", s) return match[0] +f = open("README.txt") +ga4gh_readme = f.read() +f.close() ga4gh_version = parse_version("ga4gh/__init__.py") requirements = [] @@ -29,7 +32,11 @@ def parse_version(module_file): setup( name = "ga4gh", version = ga4gh_version, + long_description = ga4gh_readme, packages = ["ga4gh"], + author = "AUTHOR FIXME", + author_email = "FIXME@somewhere.org", + url = "http://pypi.python.org/pypi/ga4gh", scripts = ["scripts/ga4gh_ref.py"], install_requires = requirements, )