Skip to content

Commit

Permalink
Fix the Pypi deploy problem (ending comma in _GITHUB_URL was faulty) …
Browse files Browse the repository at this point in the history
…and improved help
  • Loading branch information
tducret committed Aug 2, 2018
1 parent 7e01181 commit ea236fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
13 changes: 13 additions & 0 deletions python-flask/swagger_server/controllers/user_controller.py
Expand Up @@ -4,6 +4,13 @@
from swagger_server.models.survey import Survey # noqa: E501
from swagger_server import util

from precisionmapper import PrecisionMapper
import os

# Get useful environment variables
_LOGIN = os.environ.get('PRECISIONMAPPER_LOGIN', None)
_PASSWORD = os.environ.get('PRECISIONMAPPER_PASSWORD', None)


def list_surveys(): # noqa: E501
"""list the surveys available
Expand All @@ -13,4 +20,10 @@ def list_surveys(): # noqa: E501
:rtype: List[Survey]
"""
pm = PrecisionMapper(login=_LOGIN, password=_PASSWORD)
pm.sign_in()
shared_surveys = pm.get_shared_surveys()

for survey in shared_surveys:
print(survey)
return 'do some magic!'
10 changes: 4 additions & 6 deletions setup.py
Expand Up @@ -11,7 +11,7 @@


__version__ = '0.0.1' # Should match with __init.py__
_GITHUB_URL = 'https://github.com/tducret/precisionmapper-python',
_GITHUB_URL = 'https://github.com/tducret/precisionmapper-python'
_KEYWORDS = ['api', 'precisionmapper', 'parsing', 'drone', 'platform',
'python-wrapper', 'scraping', 'scraper', 'parser',
'precisionhawk']
Expand All @@ -32,7 +32,7 @@
author="Thibault Ducret",
author_email='hello@tducret.com',
url=_GITHUB_URL,
download_url=_GITHUB_URL+"/tarball/"+__version__,
download_url='%s/tarball/%s' % (_GITHUB_URL, __version__),
keywords=_KEYWORDS,
setup_requires=requirements,
install_requires=requirements,
Expand All @@ -49,9 +49,7 @@
# ------------------------------------------
# Make sure everything was pushed (with a git status)
# (or git commit --am "Comment" and git push)
# git tag 0.0.1 -m "First version"
# git push --tags
# export VERSION="0.0.1"; git tag $VERSION -m "First version"; git push --tags

# If you need to delete a tag
# git push --delete origin VERSION
# git tag -d VERSION
# git push --delete origin $VERSION; git tag -d $VERSION

0 comments on commit ea236fc

Please sign in to comment.