PyNuGet 0.2.5

Creator: bradpython12

Last updated:

0 purchases

PyNuGet 0.2.5 Image
PyNuGet 0.2.5 Images
Add to Cart

Description:

PyNuGet 0.2.5

=======pynuget=======.. image:: https://img.shields.io/travis/dougthor42/pynuget.svg :alt: Travis :target: https://travis-ci.org/dougthor42/pynugetA port of Daniel15's `simple-nuget-server`_ because Idon't know PHP or Nginx. Runs on Flask and Apache. Python 3.5+.. _simple-nuget-server: https://github.com/Daniel15/simple-nuget-server/Installation------------1. Install the Prerequisites^^^^^^^^^^^^^^^^^^^^^^^^^^^^If you're savvy, you could use nginx instead. I am not savvy... code-block:: shell sudoaptinstallapache2 sudo apt install libapache2-mod-wsgi-py32. Create a Virtual Environment^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^This is highly recommended. I also haven't bothered to figure out how to doa non-venv install so... If you want to do that you're on your own! Whenyou figure it out, please submit a PR for this documentation. :smile:.. code-block:: shell You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode . /usr/local/venv-pynuget/bin/activate3. Install the Package^^^^^^^^^^^^^^^^^^^^^^If I've done things correctly, all the requirements should be automaticallyinstalled... code-block:: shell Missing open brace for superscriptMissing open brace for superscript sudo -E /usr/local/venv-pynuget/bin/pynuget init.. important:: Note the ``-E`` flag on ``sudo``! This preserves environment variables. We're specifically interested in the ``VIRTUAL_ENV`` variable, as that's needed to update the WSGI file... note:: TODO: Instructions for a system install.+ Sorry that this needs sudo! I haven't come up with a better way around this. Suggestions or PRs welcome!+ This will do various things including but not limited to: + Creating ``/var/www/pynuget``, populating it with the WSGI file and repository folders and adjusting permissions + Copying over the example apache config and enabling the site + Restarting apache5. Test Things^^^^^^^^^^^^^^1. ``curl localhost`` should return a short blurb about nuget2. On Windows:: nuget.exe push Foo.nupkg -ApiKey YourApiKey -Source http://your.server.com3. On Linux with Mono:: mono /path/to/nuget.exe push Foo.nupkg -ApiKey YourApiKey -Source http://your.server.address4. If your server has a Window manager, you can open up a web browser and navigate to ``http://localhost`` and you should see the PyNuGet landing page.6. Change your Secrets!^^^^^^^^^^^^^^^^^^^^^^^Make sure to change your secret keys to random values. One way to do so isoutlined in the `flask tutorial`_. You'll need to change 2 values in``/var/www/pynuget/config.py``:: SECRET_KEY API_KEYS

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.