summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2018-01-10 12:19:03 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2018-01-10 12:23:47 -0800
commit96e071e7fb4f94934b73ea249871334a6793e7ce (patch)
tree043133d708fef6971e26c20201985617db3ce075
parent35d7cf04d2caf550b748f76736239b55eec9b084 (diff)
Fix setup.py to install the whole package
It should have used the `packages` argument instead of `py_modules`. This worked in my local setup for whatever reason, but fails when you actually try to install the package on a clean system. We add a sanity check stage to CI to test exactly this: installing the package on a clean system and running `bztogl --help`.
-rw-r--r--.gitlab-ci.yml5
-rw-r--r--bztogl/__init__.py0
-rw-r--r--setup.py2
3 files changed, 6 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5391ffc..8afda2e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,10 @@
1image: python:3.6 1image: python:3.6
2 2
3sanitycheck:
4 script:
5 - python setup.py install
6 - bztogl --help
7
3lint: 8lint:
4 script: 9 script:
5 - pip install flake8 10 - pip install flake8
diff --git a/bztogl/__init__.py b/bztogl/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bztogl/__init__.py
diff --git a/setup.py b/setup.py
index c9a5b09..a75a816 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
22 author='GNOME', 22 author='GNOME',
23 url='https://gitlab.gnome.org/External/bugzilla-to-gitlab-migrator', 23 url='https://gitlab.gnome.org/External/bugzilla-to-gitlab-migrator',
24 24
25 py_modules=['bztogl'], 25 packages=['bztogl'],
26 entry_points={ 26 entry_points={
27 'console_scripts': ['bztogl=bztogl.bztogl:main'], 27 'console_scripts': ['bztogl=bztogl.bztogl:main'],
28 }, 28 },