diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-07 16:51:11 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-07 16:51:11 -0700 |
commit | e9b7f149a37edc527eaa3d67591aec4e9ac87c6e (patch) | |
tree | 5bba4635d5d15fa4f32c3f662835432d1e2a3013 | |
parent | f5f5f0f054fed05948276c7330631059e879d882 (diff) | |
download | my_new_personal_website-e9b7f149a37edc527eaa3d67591aec4e9ac87c6e.tar.xz my_new_personal_website-e9b7f149a37edc527eaa3d67591aec4e9ac87c6e.zip |
add requirements.txt
Also install requirements in .travis.yml.
By the way, I explored ways to install Pandoc in a Travis container
environment (without sudo), but that's just too hard. Giving up.
-rw-r--r-- | .travis.yml | 6 | ||||
-rwxr-xr-x | pyblog | 3 | ||||
-rw-r--r-- | requirements.txt | 3 |
3 files changed, 9 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 96f8425c..f47eb57b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,13 @@ branches: - only: - - source + except: + - master language: python python: - "3.4" before_install: - sudo apt-get update - sudo apt-get install pandoc +install: + - pip install -r requirements.txt script: - python pyblog generate @@ -810,7 +810,8 @@ def main(): """CLI interface.""" description = "Simple blog generator in Python with Pandoc as backend." parser = argparse.ArgumentParser(description=description) - subparsers = parser.add_subparsers() + subparsers = parser.add_subparsers(dest="action") + subparsers.required = True parser_new_post = subparsers.add_parser( "new_post", aliases=["n", "new"], diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..0d6bc62b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +beautifulsoup4 +colorama +python-dateutil |