Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add flask and pip as extensions

  • Loading branch information...
commit fd5db31160795d326fb15100cb3a1f7224546ffe 1 parent 91dfbbb
Whit Morriss authored binarydud committed
4 .gitignore
View
@@ -1,4 +1,6 @@
*.pyc
logs/
mime.types
-run-nginx
+run-nginx
+*.egg-info
+*~
3  cheese_emporium/utils.py
View
@@ -163,12 +163,13 @@ def list_pypi():
rs = client.list_packages()
cache.set('package-list',rs,timeout=5 * 60)
return rs
-
+
def search_pypi(package_name):
client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
return client.package_releases(package_name)
+
def package_details(package_name, version_number):
client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
return client.release_urls(package_name,version_number)
6 sample-nginx.conf
View
@@ -17,7 +17,7 @@ http {
gzip on;
server {
- listen 8080;
+ listen 9003;
server_name localhost;
charset utf-8;
@@ -25,12 +25,12 @@ http {
index index.html index.htm;
alias cheese_emporium/files;
}
- # Django admin media.
+ # Flask static media.
location /static {
alias cheese_emporium/static;
}
- # Finally, send all non-media requests to the Django server.
+ # Finally, send all non-media requests to the flask server.
location / {
proxy_pass http://127.0.0.1:5000;
}
3  setup.cfg
View
@@ -1,3 +1,2 @@
[egg_info]
-tag_build = dev
-tag_svn_revision = true
+
11 setup.py
View
@@ -5,21 +5,18 @@
setup(name='cheese_emporium',
version=version,
- description="PyPi clone",
- long_description="""\
-""",
+ description="static PyPi clone",
+ long_description=""" """,
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='Distribution, pip',
author='Matt George',
author_email='matt.george@gmail.com',
url='',
license='BSD',
- packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
+ packages=find_packages(exclude=[]),
include_package_data=True,
zip_safe=False,
- install_requires=[
- # -*- Extra requirements: -*-
- ],
+ install_requires=["flask", "pip"],
entry_points="""
# -*- Entry points: -*-
""",
Please sign in to comment.
Something went wrong with that request. Please try again.