#48 Clarify some development steps
Merged 8 years ago by pingou. Opened 8 years ago by till.
till/mdapi fix_doc  into  master

file modified
+15 -3
@@ -18,7 +18,13 @@ 

  

  ::

  

-     dnf install python-virtualenvwrapper

+     dnf install python-virtualenvwrapper python3-devel openssl-devel

+ 

+ * Get the mkvirtualenv shell function

+ 

+ ::

+ 

+     . /etc/profile.d/virtualenvwrapper.sh

  

  * Create the virtualenv

  
@@ -36,7 +42,7 @@ 

  

  ::

  

-     mdapi-get_repo_md mdapi/default_config.py

+     ./mdapi-get_repo_md mdapi/default_config.py

  

  * Start the server

  
@@ -44,5 +50,11 @@ 

  

      ./mdapi-run

  

+ * If you need to reactivate the virtual env later, use workon:

+ 

+ ::

+ 

+     workon mdapi

+ 

  

- ..note: This project is python3 only

+ **Note:** This project is python3 only

no initial comment

Your commit from #47 is included in this PR. Openssl seems to be required for cryptography:

Building wheels for collected packages: cryptography
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /home/fedora/till/.virtualenvs/mdapi/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-g957xlro/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpdyddq0japip-wheel- --python-tag cp35:
  running bdist_wheel
[...]
  creating build/temp.linux-x86_64-3.5/build
  creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o
  build/temp.linux-x86_64-3.5/_openssl.c:433:30: schwerwiegender Fehler: openssl/opensslv.h: No such file or directory
   #include <openssl/opensslv.h>
                                ^
  Kompilierung beendet.
  error: command 'gcc' failed with exit status 1

Not sure why it does not require libffi-devel here since cryptography required it for fedmsg_meta_fedora_infrastructure - maybe it is python3 vs. python2.

3 new commits added

  • Clarify documentation
  • Add a fedmsg.d/mdapi.py file so it helps working in a venv
  • Specify in the README that the virtualenv must be py3
8 years ago

rebased

8 years ago

PR #47 got merged, should we rebase?

rebased

8 years ago

I rebased it. I wonder, did you accidently push a fix_doc branch to the mdapi repo here? It can probably be deleted.

The fix_doc branch is the one that got merged in https://pagure.io/mdapi/pull-request/47

:thumbsup: for me thanks for this fix! :)

Pull-Request has been merged by pingou

8 years ago
Metadata