Skip to content

Commit f40230d

Browse files
committed
reorganizing files
1 parent e9c4a4f commit f40230d

File tree

3 files changed

+82
-47
lines changed

3 files changed

+82
-47
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"#How to create a setup file to install and share a python program\n",
10+
"from distutils.core import setup"
11+
]
12+
},
13+
{
14+
"cell_type": "code",
15+
"execution_count": null,
16+
"metadata": {},
17+
"outputs": [],
18+
"source": [
19+
"setup ( \n",
20+
" name = 'Program_Name',\n",
21+
" version = 'version_number',\n",
22+
" packages = ['program_name'],\n",
23+
" license = 'MIT',\n",
24+
" long_description = open('README.txt').read(),\n",
25+
")"
26+
]
27+
},
28+
{
29+
"cell_type": "code",
30+
"execution_count": null,
31+
"metadata": {},
32+
"outputs": [],
33+
"source": [
34+
"#Build a source distribution\n",
35+
"python setup.py sdist #current directory must be in directory containing setup.py"
36+
]
37+
},
38+
{
39+
"cell_type": "code",
40+
"execution_count": null,
41+
"metadata": {},
42+
"outputs": [],
43+
"source": [
44+
"#build a binary distribution\n",
45+
"python setup.py bdist"
46+
]
47+
},
48+
{
49+
"cell_type": "code",
50+
"execution_count": null,
51+
"metadata": {},
52+
"outputs": [],
53+
"source": [
54+
"#upload a package\n",
55+
"python setup.py register\n",
56+
"python setup.py sdist upload"
57+
]
58+
}
59+
],
60+
"metadata": {
61+
"kernelspec": {
62+
"display_name": "Python 3",
63+
"language": "python",
64+
"name": "python3"
65+
},
66+
"language_info": {
67+
"codemirror_mode": {
68+
"name": "ipython",
69+
"version": 3
70+
},
71+
"file_extension": ".py",
72+
"mimetype": "text/x-python",
73+
"name": "python",
74+
"nbconvert_exporter": "python",
75+
"pygments_lexer": "ipython3",
76+
"version": "3.7.5"
77+
}
78+
},
79+
"nbformat": 4,
80+
"nbformat_minor": 2
81+
}

create_setup.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"name": "python",
7474
"nbconvert_exporter": "python",
7575
"pygments_lexer": "ipython3",
76-
"version": "3.7.1"
76+
"version": "3.7.5"
7777
}
7878
},
7979
"nbformat": 4,

mergepdf.py

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

0 commit comments

Comments
 (0)