File tree Expand file tree Collapse file tree 9 files changed +47
-46
lines changed Expand file tree Collapse file tree 9 files changed +47
-46
lines changed Original file line number Diff line number Diff line change 1
1
. *
2
2
! .gitignore
3
- * .pyc
4
- __pycache__ /
5
- build /
3
+ ! .travis.yml
4
+ dist /
5
+ * .egg-info /
Original file line number Diff line number Diff line change
1
+ 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
+
11
+ deploy :
12
+ provider : script
13
+
14
+ # upload to PyPI
15
+ script : twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD dist/*
16
+
17
+ # avoid stashing sdist
18
+ skip_cleanup : true
Original file line number Diff line number Diff line change 1
- BUILD_DIR = build
2
- DESCRIPTION = CS50 Library for Python
3
- MAINTAINER = CS50 <sysadmins@cs50.harvard.edu>
4
- NAME = python-cs50
5
- OLD_NAME = lib50-python
6
- VERSION = 1.3.0
7
-
8
- .PHONY : bash
9
- bash :
10
- docker run -i --rm -t -v " $( PWD) " :/root cs50/cli
11
-
12
1
.PHONY : build
13
2
build : clean
14
- mkdir -p " $( BUILD_DIR) " /usr/lib/python2.7/dist-packages/cs50
15
- cp src/* " $( BUILD_DIR) " /usr/lib/python2.7/dist-packages/cs50
16
- mkdir -p " $( BUILD_DIR) " /usr/lib/python3/dist-packages/cs50
17
- cp src/* " $( BUILD_DIR) " /usr/lib/python3/dist-packages/cs50
3
+ python setup.py sdist
18
4
19
5
.PHONY : clean
20
6
clean :
21
- rm -rf " $( BUILD_DIR ) "
7
+ rm -rf * .egg-info dist
22
8
23
- .PHONY : deb
24
- deb : build
25
- fpm \
26
- -C " $( BUILD_DIR) " \
27
- -m " $( MAINTAINER) " \
28
- -n " $( NAME) " \
29
- -p " $( BUILD_DIR) " \
30
- -s dir \
31
- -t deb \
32
- -v " $( VERSION) " \
33
- --after-install after-install.sh \
34
- --conflicts " $( NAME) (<< $( VERSION) ), $( OLD_NAME) " \
35
- --deb-no-default-config-files \
36
- --depends python \
37
- --depends python3 \
38
- --description " $( DESCRIPTION) " \
39
- --replaces " $( NAME) (<= $( VERSION) ), $( OLD_NAME) " \
40
- --provides " $( NAME) " \
41
- --provides " $( OLD_NAME) " \
42
- usr
9
+ .PHONY : install
10
+ install : build
11
+ pip install dist/cs50* .tar.gz
Original file line number Diff line number Diff line change 1
1
# CS50 Library for Python
2
2
3
+ [ ![ Build Status] ( https://travis-ci.org/cs50/python-cs50.svg?branch=master )] ( https://travis-ci.org/cs50/python-cs50 )
4
+
3
5
Supports Python 2 and Python 3.
4
6
5
7
## Development
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ from setuptools import setup
2
+
3
+ setup (
4
+ author = "CS50" ,
5
+ author_email = "sysadmins@cs50.harvard.edu" ,
6
+ classifiers = [
7
+ "Intended Audience :: Developers" ,
8
+ "Programming Language :: Python" ,
9
+ "Programming Language :: Python :: 3" ,
10
+ "Topic :: Software Development :: Libraries :: Python Modules"
11
+ ],
12
+ description = "CS50 library for Python" ,
13
+ install_requires = ["SQLAlchemy" ],
14
+ keywords = "cs50" ,
15
+ name = "cs50" ,
16
+ packages = ["cs50" ],
17
+ url = "https://github.com/cs50/python-cs50" ,
18
+ version = "1.3.0"
19
+ )
You can’t perform that action at this time.
0 commit comments