Skip to content

Commit

Permalink
Actualización para la integración a pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdzul committed Apr 29, 2015
1 parent 64ede74 commit 05e8e9c
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 4 deletions.
23 changes: 23 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# file GENERATED by distutils, do NOT edit
LICENSE
README.md
setup.py
pyql/__init__.py
pyql/errors.py
pyql/interface.py
pyql/settings.py
pyql/geo/__init__.py
pyql/geo/concordance.py
pyql/geo/continents.py
pyql/geo/counties.py
pyql/geo/countries.py
pyql/geo/districts.py
pyql/geo/generics.py
pyql/geo/oceans.py
pyql/geo/placefinder.py
pyql/geo/places.py
pyql/geo/placetypes.py
pyql/geo/seas.py
pyql/geo/states.py
pyql/weather/__init__.py
pyql/weather/forecast.py
4 changes: 1 addition & 3 deletions pyql/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
import sys
from pyql.settings import YAHOO_URL
from pyql.errors import YQLRequestError, format_sys_errors
from pyql.settings import MY_PY3, MY_PY2


# Obtenemos la versió de Python que estamos ejecutando
MY_PY2 = sys.version_info[0] == 2
MY_PY3 = sys.version_info[0] == 3
# Importamos la librería que utilizaremos dependiendo de la versión Python.
if MY_PY2:
from urllib2 import urlopen
Expand Down
7 changes: 7 additions & 0 deletions pyql/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# -*- coding: utf-8 -*-
__author__ = 'Alex Dzul'
import sys


# Obtenemos la versió de Python que estamos ejecutando
MY_PY2 = sys.version_info[0] == 2
MY_PY3 = sys.version_info[0] == 3


YAHOO_URL = "http://query.yahooapis.com/v1/public/yql?q="
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
from distutils.core import setup
from pyql import __author__, __version__, __email__, __license__, __maintainer__

long_description = open('README.md').read()

setup(name='pyql-weather',
version=__version__,
description='YQL Queries and Yahoo Weather in Python v.%s' % __version__,
long_description=open('README.md').read(),
long_description=long_description,
license=__license__,
author=__author__,
author_email=__email__,
Expand Down

0 comments on commit 05e8e9c

Please sign in to comment.