You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-15
Original file line number
Diff line number
Diff line change
@@ -9,44 +9,82 @@ CheeseShop is a Python package repository.
9
9
Installation
10
10
------------
11
11
12
-
Download binary archive at <https://github.com/c4s4/cheeseshop/releases>, unzip it and copy the binary executable for your platform (named *cheeseshop*) somewhere in yout *PATH* and rename it *cheeseshop*. This executable doesn't need any dependency or virtual machine to run.
12
+
Download binary archive at <https://github.com/c4s4/cheeseshop/releases>, unzip it and copy the binary executable for your platform (named *cheeseshop-system-platform* in the *bin* directory) somewhere in yout *PATH* and rename it *cheeseshop*. This executable doesn't need any dependency or virtual machine to run.
It will look for a configuration file at following locations:
32
31
33
-
-*-port* to set the port the server is litening (default to *8000*).
34
-
-*-path* to set the URL path (defaults to *simple*).
35
-
-*-root* to set the directory where packages are living (defaults to current directory).
36
-
-*-shop* to set the URL of the shop for packages that are not found.
37
-
-*-auth* to set the path to the authentication file
32
+
-*~/.cheeseshop.yml*
33
+
-*/etc/cheeseshop.yml*
38
34
39
-
The server outputs logs on the terminal. To get help on the console, type `cheeseshop -help`.
35
+
You may also pass the path to the configuration file on the command line:
40
36
41
-
The authentication file is made of lines with the username and the MD5 sum of the password separated with a space, such as (for user *foo* with password *bar*):
37
+
$ cheeseshop /path/to/cheeseshop.yml
42
38
43
-
foo 37b51d194a7513e45b56f6524f2d51f2
39
+
This configuration file should look like this:
40
+
41
+
# The port CheeseShop is listening
42
+
port: 8000
43
+
# The URL path
44
+
path: simple
45
+
# The root directory for packages
46
+
root: repo
47
+
# Redirection when not found
48
+
shop: http://pypi.python.org/simple
49
+
# List of users and their MD5 hashed password
50
+
# To get MD5 sum for password foo, type 'echo -n foo | md5sum'
51
+
# To disable auth when uploading packages, set auth to ~
52
+
auth:
53
+
spam: acbd18db4cc2f85cedef654fccc4a4d8
54
+
eggs: 37b51d194a7513e45b56f6524f2d51f2
44
55
45
56
To compute MD5 sum for a given password, in order to fill the authentication file, you may type following command :
46
57
58
+
$ echo -n foo | md5sum
59
+
acbd18db4cc2f85cedef654fccc4a4d8 -
47
60
$ echo -n bar | md5sum
48
61
37b51d194a7513e45b56f6524f2d51f2 -
49
62
50
-
If no *-auth* option is set on command line, you won't have to authenticate to upload a package to *CheeseShop*.
63
+
There is a sample configuration file in *etc* directory of the archive.
64
+
65
+
Service
66
+
-------
67
+
68
+
To install CheeseShop as a System V service, edit sample init script in *etc/cheeseshop.init* file. You should edit *SCRIPT* variable to set the path to the *cheeseshop* command. Then copy this file as */etc/init.d/cheeseshop*.
69
+
70
+
You must also edit configuration file *etc/cheeseshop.yml* to set the repository location in the *root* variable. Copy this file in */etc/cheeseshop.yml* location.
71
+
72
+
You can then start the service with:
73
+
74
+
$ sudo service cheeseshop start
75
+
76
+
And stop it with:
77
+
78
+
$ sudo service cheeseshop stop
79
+
80
+
You can view the logs in */var/log/cheeseshop.log* file.
0 commit comments