<commit_before>pyshop
======

A cheeseshop clone (PyPI server) written in pyramid


Getting Started
---------------

::

    $ virtualenv pyshop
    $ cd pyshop
    (pyshop)$ source bin/activate
    (pyshop)$ pip install git+https://github.com/mardiros/pyshop.git
    (pyshop)$ pyshop_install development.ini
    (pyshop)$ pserve development.ini  --log-file=pyshop.log


For production usage, you should create a user pyshop
with restriction right.

For editing permission, the web user interface is not ready.
You can use the pyshop shell.

::

    (pyshop)$ pyshop_shell


The upload on PyPI will be done when the project is more advanced.


Configuring your environment to use that new PyShop
---------------------------------------------------

Here is all configuration files by usual python tools you have to
edit to use PyShop.


~/.pip/pip.conf
~~~~~~~~~~~~~~~

Configuration used by pip

::

    [install]
    index-url = http://admin:changeme@localhost:6543/simple/
    timeout = 30


~/.pypirc
~~~~~~~~~

Configuration used by setuptools to upload package

::

    [distutils]
    index-servers =
        pyshop

    [pyshop]
    username: admin
    password: <PASSWORD>
    repository: http://localhost:6543/simple/


setup.cfg
~~~~~~~~~

::

    [easy_install]
    index-url = http://admin:changeme@localhost:6543/simple/<commit_msg>Fix doc about pip timeout<commit_after>pyshop
======

A cheeseshop clone (PyPI server) written in pyramid


Getting Started
---------------

::

    $ virtualenv pyshop
    $ cd pyshop
    (pyshop)$ source bin/activate
    (pyshop)$ pip install git+https://github.com/mardiros/pyshop.git
    (pyshop)$ pyshop_install development.ini
    (pyshop)$ pserve development.ini  --log-file=pyshop.log


For production usage, you should create a user pyshop
with restriction right.

For editing permission, the web user interface is not ready.
You can use the pyshop shell.

::

    (pyshop)$ pyshop_shell


The upload on PyPI will be done when the project is more advanced.


Configuring your environment to use that new PyShop
---------------------------------------------------

Here is all configuration files by usual python tools you have to
edit to use PyShop.


~/.pip/pip.conf
~~~~~~~~~~~~~~~

Configuration used by pip

::

    [global]
    # when mirroring a package,
    # pyshop retrieve informations from PyPI and
    # it can take many times.
    default-timeout = 60
    timeout = 60
    [install]
    index-url = http://admin:changeme@localhost:6543/simple/


~/.pypirc
~~~~~~~~~

Configuration used by setuptools to upload package

::

    [distutils]
    index-servers =
        pyshop

    [pyshop]
    username: admin
    password: <PASSWORD>
    repository: http://localhost:6543/simple/


setup.cfg
~~~~~~~~~

::

    [easy_install]
    index-url = http://admin:changeme@localhost:6543/simple/
{'fraction_non_alphanumeric': 0.15106905012267788, 'fraction_numerical': 0.010515247108307046, 'mean_word_length': 2.701686121919585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6043064', 'n_tokens_mistral': 888, 'n_tokens_neox': 862, 'n_words': 277}