Skip to content

Commit 3a66dc9

Browse files
author
Kareem Zidane
authored
Merge pull request #22 from cs50/develop
2.0.0
2 parents 4c3a02e + da85752 commit 3a66dc9

File tree

13 files changed

+434
-215
lines changed

13 files changed

+434
-215
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
!.gitignore
33
!.travis.yml
44
dist/
5+
*.db
56
*.egg-info/
7+
*.pyc

.travis.yml

Lines changed: 30 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,32 @@
11
language: python
2-
3-
python: "3.4"
4-
5-
# build sdist
6-
script: make build
7-
8-
# install twine for uploading to PyPI
9-
before_deploy: pip install twine
10-
2+
python:
3+
- '2.7'
4+
- '3.4'
5+
branches:
6+
except: "/^v\\d/"
7+
services:
8+
- mysql
9+
- postgresql
10+
install:
11+
- python setup.py install
12+
- pip install mysqlclient
13+
- pip install psycopg2
14+
before_script:
15+
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
16+
- psql -c 'create database test;' -U postgres
17+
script: python tests/sqltests.py
1118
deploy:
12-
13-
# create github release
14-
- provider: releases
15-
16-
# GitHub access token
17-
api_key:
18-
secure: "pwBn1lky58GHp1qR4i0oSZyOJkGMTvRzt0EfESVtl2ZbRTVUE7UFQbk/cL1002zMOUkJ4c5IjRCg95NJZWUvOSHwt4cOyqDVzi/S6AqACOlOhfnkw3S6oLGgRT3IlXK2ng0Viiqc1+BlVdwwXURKyobirqFgr4MAlb5kh75WmV9Xs4GwIS+qPq9luv38Bls2US/mNt5KRV1DiePr2ZSCqFESFfoIz+QKhZtVdynEF4jJwevEwP4HrCoT3guIJlXcWhOG37n+e8S4YLwg+k3yYeQTmR/QMgjmQLwEBZ6v9bNjqXM3CMtn3KUryDzcp5Z5+Vv1p1uoDbmuK+Ll5nQttAp/gARk+IWZ/xWc8MuQpFvjRzafbtPiF7ZlqaYh1wCREuZTWDAk/UJgQxb81v0jo0iAPyk9HMfgK2CJuU8wDwraKZ5dKk4y45Zww1gSSzpJJ8xSrylKPn7Wnft617Lnc+O0X6DnIAFtHDAPu/lPFaaokn1TN9AOPXoxb2cEeh+oDcUQD4zZG6Ukvh9+Hw8XiFBG+jEm6ekCvawTjnlZmBIw8YPJKEjrZv8LWfKhnVebRbmehawmnrZxUALCp39EjrcsIltYw4gefbd/Z9kIr8r3yVZfuq7U6vd8PBuCiDZHlKM1Lz4Ns24WK96nYe6V9Lt3WUERh6xt8JtuFrNHBiQ="
19-
20-
# enable wildcards in filenames
21-
file_glob: true
22-
23-
# upload sdist
24-
file: dist/*
25-
26-
# avoid stashing sdist
27-
skip_cleanup: true
28-
29-
# create releases on tags only
30-
on:
31-
tags: true
32-
33-
# deploy to PyPI
34-
- provider: script
35-
36-
# upload sdist to PyPI
37-
script: twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
38-
39-
# avoid stashing sdist
40-
skip_cleanup: true
41-
42-
# deploy on tags only
43-
on:
44-
tags: true
19+
- provider: script
20+
script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\",
21+
\"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\"
22+
}" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases'
23+
on:
24+
branch: master
25+
- provider: pypi
26+
user: "$PYPI_USERNAME"
27+
password: "$PYPI_PASSWORD"
28+
on:
29+
branch: master
30+
notifications:
31+
slack:
32+
secure: lJklhcBVjDT6KzUNa3RFHXdXSeH7ytuuGrkZ5ZcR72CXMoTf2pMJTzPwRLWOp6lCSdDC9Y8MWLrcg/e33dJga4Jlp9alOmWqeqesaFjfee4st8vAsgNbv8/RajPH1gD2bnkt8oIwUzdHItdb5AucKFYjbH2g0d8ndoqYqUeBLrnsT1AP5G/Vi9OHC9OWNpR0FKaZIJE0Wt52vkPMH3sV2mFeIskByPB+56U5y547mualKxn61IVR/dhYBEtZQJuSvnwKHPOn9Pkk7cCa+SSSeTJ4w5LboY8T17otaYNauXo46i1bKIoGiBcCcrJyQHHiPQmcq/YU540MC5Wzt9YXUycmJzRi347oyQeDee27wV3XJlWMXuuhbtJiKCFny7BTQ160VATlj/dbwIzN99Ra6/BtTumv/6LyTdKIuVjdAkcN8dtdDW1nlrQ29zuPNCcXXzJ7zX7kQaOCUV1c2OrsbiH/0fE9nknUORn97txqhlYVi0QMS7764wFo6kg0vpmFQRkkQySsJl+TmgcZ01AlsJc2EMMWVuaj9Af9JU4/4yalqDiXIh1fOYYUZnLfOfWS+MsnI+/oLfqJFyMbrsQQTIjs+kTzbiEdhd2R4EZgusU/xRFWokS2NAvahexrRhRQ6tpAI+LezPrkNOR3aHiykBf+P9BkUa0wPp6V2Ayc6q0=

Makefile

Lines changed: 0 additions & 22 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,11 @@
44

55
Supports Python 2 and Python 3.
66

7-
## Development
8-
9-
Requires [Docker Engine](https://docs.docker.com/engine/installation/).
10-
11-
make bash
12-
make deb # builds .deb
13-
147
## Installation
158

16-
1. Download the latest release per https://github.com/cs50/python-cs50/releases
17-
1. Extract `python-cs50-*`
18-
1. `cd python-cs50-*`
19-
1. `make install`
9+
```
10+
pip install cs50
11+
```
2012

2113
## Usage
2214

@@ -31,8 +23,6 @@ Requires [Docker Engine](https://docs.docker.com/engine/installation/).
3123
s = cs50.get_string();
3224

3325
## TODO
34-
35-
* Add install target to Makefile.
3626
* Conditionally install for Python 2 and/or Python 3.
3727
* Add targets for `pacman`, `rpm`.
3828
* Add tests.

cs50/cs50.py

Lines changed: 0 additions & 81 deletions
This file was deleted.

cs50/sql.py

Lines changed: 0 additions & 52 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
install_requires=["SQLAlchemy"],
1414
keywords="cs50",
1515
name="cs50",
16+
package_dir={"": "src"},
1617
packages=["cs50"],
1718
url="https://github.com/cs50/python-cs50",
18-
version="1.3.0"
19+
version="2.0.0"
1920
)
File renamed without changes.

0 commit comments

Comments
 (0)