Skip to content

Commit b505e3c

Browse files
committed
Preparations for packaging to PyPI + TravisCi
1 parent 9418d4b commit b505e3c

File tree

8 files changed

+24
-12
lines changed

8 files changed

+24
-12
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ __pycache__
22
/.idea
33
/.tox
44
/env
5+
/build
6+
/demosys_py.egg-info
7+
/dist

.travis.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: python
2+
sudo: false
3+
install:
4+
- pip install tox-travis flake8
5+
script:
6+
- tox
7+
env:
8+
- TOXENV=py36

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
recursive-include demosys *.py
2-
recursive-include testproject *.py
1+
recursive-include demosys *.py *.glsl *.md
2+
recursive-include testproject *.py *.png *.glsl *.mp3

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
[![pypi](https://img.shields.io/pypi/v/demosys-py.svg)](https://pypi.python.org/pypi/demosys-py)
3+
[![travis](https://travis-ci.org/Contraz/demosys-py.svg?branch=master)](https://travis-ci.org/Contraz/demosys-py)
4+
15
# demosys-py
26

37
A python 3.6 implementation of a C++ project used to create and prototype

demosys/view/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,14 @@ def key_event_callback(window, key, scancode, action, mods):
130130
CAMERA.move_state(camera.BACKWARD, False)
131131

132132
# UP
133-
elif key == glfw.KEY_UP:
133+
elif key == glfw.KEY_Q:
134134
if action == glfw.PRESS:
135135
CAMERA.move_state(camera.UP, True)
136136
if action == glfw.RELEASE:
137137
CAMERA.move_state(camera.UP, False)
138138

139139
# Down
140-
elif key == glfw.KEY_DOWN:
140+
elif key == glfw.KEY_E:
141141
if action == glfw.PRESS:
142142
CAMERA.move_state(camera.DOWN, True)
143143
if action == glfw.RELEASE:

requirements-test.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
1-
PyOpenGL==3.1.0
2-
glfw==1.4.0
3-
pyrr==0.8.2
4-
Pillow==4.0.0
5-
6-
tox
71
coverage==4.2
82
mock>=2.0.0

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[metadata]
2+
description-file = README.md

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
setup(
44
name="demosys-py",
55
version="0.1.0",
6-
description="OpenGL framework for python",
7-
url="soon",
6+
description="Modern OpenGL 4.1+ Prototype Framework inspired by Django",
7+
url="https://github.com/Contraz/demosys-py",
88
author="Einar Forselv",
99
author_email="eforselv@gmail.com",
1010
maintainer="Einar Forselv",
1111
maintainer_email="eforselv@gmail.com",
1212
packages=find_packages(),
1313
include_package_data=True,
14+
keywords = ['opengl', 'framework'],
1415
classifiers=[
1516
'Programming Language :: Python',
1617
'Environment :: MacOS X',

0 commit comments

Comments
 (0)