Skip to content
Snippets Groups Projects
Commit df655a5c3c66 authored by Georges Racinet's avatar Georges Racinet
Browse files

Declaration and organisation of Python dependencies

Up to now, we didn't declare any requirement in setup.py.

We're adopting here a three-layered structure, with the
full blown `dev-requirements.txt` carrying the needed tools
to recompile the gRPC stubs.

grpcio and grpcio-tools can be heavy to install, especially in
CI context.

We still have the problem that heptapod will pull Mercurial,
just hoping it wouldn't mask the stable and default Mercurial
versions.
parent 225920b2ad2e
No related branches found
No related tags found
1 merge request!1Bootstrapping hgitaly development
......@@ -3,7 +3,14 @@
- compat
before_script:
- pip3 install --user -r dev-requirements.txt
- pip3 install --user -r test-requirements.txt
install:
stage: compat
image: octobus/ci-base
before_script: []
script:
- pip3 install .
variables:
EVOLVE_REPO_URL: https://mirror.octobus.net/evolve
......
flake8
pytest-cov
pytest-grpc
-r test-requirements
grpcio-tools
heptapod
protobuf
grpcio
futures; python_version == "2.7"
from setuptools import setup
with open('install-requirements.txt', 'r') as install_reqf:
install_req = [req.strip() for req in install_reqf]
setup(
name='hgitaly',
version='0.0.1',
......@@ -12,5 +15,5 @@
license='GPLv2+',
package_data=dict(heptapod=['*.hgrc']),
packages=['hgitaly', 'hgext3rd.hgitaly'],
install_requires=['futures; python_version == "2.7"'],
install_requires=install_req,
)
-r install-requirements.txt
flake8
pytest-cov
pytest-grpc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment