Skip to content

Commit

Permalink
Merge pull request #19 from ugurcan377/master
Browse files Browse the repository at this point in the history
Minor Release
  • Loading branch information
plq committed Dec 27, 2012
2 parents 1bfcae0 + 4dafb89 commit 0652d28
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 39 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
recursive-include spynepi/const/template/*
include CHANGELOG
58 changes: 20 additions & 38 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You can get spynepi via pypi: ::

or you can clone from github: ::

git clone git://github.com/ugurcan377/spynepi.git
git clone git://github.com/arskom/spynepi.git

or get the source distribution from one of the download sites and unpack it.

Expand All @@ -37,60 +37,42 @@ use: ::

python setup.py develop

Setup
-----
Using Spynepi
-------------

Assuming you are running your site locally for now, add the following to
your ``~/.pypirc`` file::
You can start spynepi with: ::

[distutils]
index-servers =
pypi
local
$ spynepi_daemon

[pypi]
username:user
password:secret
You can upload packages with: ::

[local]
username:user
password:secret
repository:http://localhost:7789
$ python setup.py register -r local sdist upload -r spynepi

Then you must set some settings for spynepi which is inside ``spynepi/const/__init__.py``
And you can download packages with: ::

$ easy_install --user -U -i http://localhost:7789 package

* DB_CONNECTION_STRING : Must be an sqlalchemy compatiable database connection string

Configuration
-------------

Config file for spynepi can be found inside ``spynepi/const/__init__.py``

* DB_CONNECTION_STRING : Default database for spynepi is sqlite. If you wish to use a different database you can change this line. It must be an sqlalchemy compatiable database connection string

For detatils please read http://docs.sqlalchemy.org/en/rel_0_7/core/engines.html

Example: for postgres ``postgresql://user:password@localhost:5432/database_name``

* FILES_PATH : An (absolute) path which packages will be stored

Example: ``/home/foo/workspace/spynepi``
* FILES_PATH : Path which packages will be stored in default it creates a file named files

* HOST : Thank you Captain Obvious.
Default is 0.0.0.0

* PORT : Thanks again you're awesome.
Default is 7789

* REPO_NAME: The repository name you wrote in pypirc
* REPO_NAME: The repository name you will use to upload or download packages in default it is spynepi.

* TABLE_PREFIX: Prefix for tables which sqlalchemy will create

Using Spynepi
-------------

You can start spynepi with: ::

$ spynepi_daemon

You can upload packages with: ::

$ python setup.py register -r local sdist upload -r local

And you can download packages with: ::

$ easy_install --user -U -i http://localhost:7789 package


2 changes: 1 addition & 1 deletion spynepi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# MA 02110-1301, USA.
#

__version__ = '0.3'
__version__ = '0.3.2'

0 comments on commit 0652d28

Please sign in to comment.