~ferruck/yafg

a7285a00b1226018a2b14261078d02b260b82f40 — Philipp Trommler 8 months ago 5e49830
Use virtualenv

Instead of installing with

    pip install -e .

during development and handling dependencies that way, just use
virtualenv as everyone else does.
4 files changed, 7 insertions(+), 7 deletions(-)

M .build.yml
M .gitignore
A requirements.txt
M setup.py
M .build.yml => .build.yml +1 -3
@@ 16,9 16,7 @@ tasks:

    - tests: |
        cd yafg
        # Use the setup.py to install the dependencies just as the user
        # would do it.
        pip install -e .
        pip install -r requirements.txt
        python -m unittest discover

    - deploy: |

M .gitignore => .gitignore +1 -0
@@ 4,3 4,4 @@
.*.swp
/build/
/dist/
/venv/

A requirements.txt => requirements.txt +1 -0
@@ 0,0 1,1 @@
Markdown==3.1.1

M setup.py => setup.py +4 -4
@@ 8,6 8,9 @@ import setuptools
with open("README.md", "r") as fh:
    long_description = fh.read()

with open("requirements.txt", "r") as fh:
    requirements = fh.read().splitlines()

setuptools.setup(
        author = "Philipp Trommler",
        author_email = "yafg@philipp-trommler.me",


@@ 25,10 28,7 @@ setuptools.setup(
        entry_points = {
            "markdown.extensions": ["yafg = yafg:YafgExtension"]
        },
        install_requires = [
            "Markdown>=3.1.1",
            "setuptools>=36",
        ],
        install_requires = requirements,
        keywords = "markdown image figure caption html a11y",
        license = "GPLv3+",
        long_description = long_description,