Skip to content

Commit

Permalink
Add a README.txt in zip files and brython.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Quentel committed May 17, 2017
1 parent 77dd462 commit 260fe53
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions scripts/make_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
pdir = os.path.dirname(os.getcwd())
# version info
version = [3, 3, 0, "alpha", 0]
implementation = [3, 3, 2, 'dev', 0]
implementation = [3, 3, 2, 'final', 0]

# version name
vname = '.'.join(str(x) for x in implementation[:3])
Expand Down Expand Up @@ -151,7 +151,7 @@ def run():
dist3 = zipfile.ZipFile(dest_path + '.zip', mode='w',
compression=zipfile.ZIP_DEFLATED)

paths = ['demo.html', 'brython.js', 'brython_stdlib.js']
paths = ['README.txt', 'demo.html', 'brython.js', 'brython_stdlib.js']

for arc, wfunc in ((dist1, dist1.add), (dist2, dist2.add),
(dist3, dist3.write)):
Expand Down
6 changes: 4 additions & 2 deletions setup/brython.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
action="store_true")
args = parser.parse_args()

files = 'README.txt', 'demo.html', 'brython.js', 'brython_stdlib.js'

if args.install:
print('Installing Brython in an empty directory')

Expand All @@ -29,15 +31,15 @@
import sys
sys.exit()

for path in 'demo.html', 'brython.js', 'brython_stdlib.js':
for path in files:
shutil.copyfile(os.path.join(src_path, path), path)

if args.update:
print('Update Brython scripts')

src_path = os.path.join(os.path.dirname(__file__), 'data')

for path in 'demo.html', 'brython.js', 'brython_stdlib.js':
for path in files:
shutil.copyfile(os.path.join(src_path, path), path)

if args.reset:
Expand Down
7 changes: 7 additions & 0 deletions setup/data/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To run the demo, start the built-in Python HTTP server by

python -m http.server 8000

and load http://localhost:8000/demo.html in the browser address bar.

For more information please visit http://brython.info.
3 changes: 2 additions & 1 deletion setup/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
setup(
name='brython',

version='3.3.1',
version='3.3.2',

description='Brython is an implementation of Python 3 running in the browser',

Expand Down Expand Up @@ -61,6 +61,7 @@
# have to be included in MANIFEST.in as well.
package_data={
'data': [
'README.txt',
'demo.html',
'brython.js',
'brython_stdlib.js'
Expand Down

0 comments on commit 260fe53

Please sign in to comment.