Skip to content

Commit 1f57ef2

Browse files
authored
Merge pull request #228 from datacamp/deploy-pypi
Deploy pypi
2 parents 13baf0e + 76cc431 commit 1f57ef2

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed

.travis.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
sudo: false
22
language: python
33
python:
4-
- "3.5"
5-
6-
before_install:
7-
- pip install -e .
8-
- "git clone https://$GH_TOKEN@github.com/datacamp/pythonbackend.git && pip install ./pythonbackend && rm -rf pythonbackend"
4+
- '3.5'
5+
before_install:
6+
- pip install -e .
7+
- git clone https://$GH_TOKEN@github.com/datacamp/pythonbackend.git && pip install
8+
./pythonbackend && rm -rf pythonbackend
99
install: pip install -r requirements.txt
10-
1110
script: pytest
12-
after_script: "export PYTHONWHAT_DEBUG_FEEDBACK='True' && pytest tests -s -m 'feedback'"
11+
after_script: export PYTHONWHAT_DEBUG_FEEDBACK='True' && pytest tests -s -m 'feedback'
12+
deploy:
13+
provider: pypi
14+
user: machow
15+
password:
16+
secure: Jk24S6GmgT7MPym5ZCE1Rm4jeKISu/cJcEsrmMa/Tl3SQClGqvdgXjfyqEbe+xyEcdx4XWzyDsKT9dST/w6ngn5HmYkw9+JcqROfhANY5z9pTq7vT2wab2EjJcKxFXgMtgmojm1galUCsRhxB45t4nF7t8oDnQvRqAIoCxMJ3XFhdAgOatGMFDzCielEE60gyuEMVMXUoYEcyDIdCeWzdKHpzXTNVPWlKWGro1omGnJ3KwOLHi9Vw+Bmi7KavNGuHOZvouMkcBDJhDBqGE/OMtL4pc17PSgCKHeSxhw5mH+RQAwHAlL1obHahFACyfHbK2q2Wt/rWPkJqsGjPeXZGcgNyzKD+ily0aORXgY7jc9WEp6asWY65LjgiPqAMTspiYuBvioqro+TzKlpfase9UFRXioUwuFvFqLZO47mEgpbrEV5NX8uvCJ0TZs8WJNQ6AecJXl2Ql94aAgSkJ0BJfv9u5m4MSz6Ntdg/I6dXz8C9WgYkuMvSzCJfTdBLbPtzczi+vFvu8sxNlC9Sf+8EB+HC8gerSnPlFBz3Fzi7kvNqRC8/nmZfXNfsLlNNASb+iCpWrIkcS488oGi3sPdd3ESfOi51UMKaFDGoRS53Br38fbLoMWg1pvMXtyvSpIn3XR2racJuIVvd/qyaSG7t//5B2JT86eNlGGWE4RStlI=
17+
on:
18+
tags: true
19+
distributions: sdist bdist_wheel
20+
repo: datacamp/pythonwhat
21+
skip_upload_docs: true

pythonwhat/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
__version__ = '2.7.0'
2+
13
from .test_exercise import test_exercise, allow_errors
24

setup.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
#!/usr/bin/env python
22

3-
from distutils.core import setup
3+
import re
4+
import ast
5+
from setuptools import setup
6+
7+
_version_re = re.compile(r'__version__\s+=\s+(.*)')
8+
9+
with open('pythonwhat/__init__.py', 'rb') as f:
10+
version = str(ast.literal_eval(_version_re.search(
11+
f.read().decode('utf-8')).group(1)))
412

513
setup(
6-
name='pythonwhat',
7-
version='2.7.0',
8-
packages=['pythonwhat', 'pythonwhat.test_funcs'],
9-
install_requires=["dill", "IPython", "numpy", "pandas", "markdown2", "jinja2"]
10-
)
14+
name='pythonwhat',
15+
version=version,
16+
packages=['pythonwhat', 'pythonwhat.test_funcs'],
17+
install_requires=["dill", "IPython", "numpy", "pandas", "markdown2", "jinja2"],
18+
maintainer = 'Michael Chow',
19+
maintainer_email = 'michael@datacamp.com',
20+
url = 'https://github.com/datacamp/pythonwhat')

0 commit comments

Comments
 (0)