Skip to content

Commit

Permalink
extracted and separated contribution guidelines from readme
Browse files Browse the repository at this point in the history
also deleted not needed taskboard data
  • Loading branch information
Trilarion committed Jul 24, 2017
1 parent 455b569 commit a0ad2eb
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 89 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install:
- pip install -r requirements.txt

script:
- python test/test_runner.py
- python test/run_tests.py

notifications:
email: false
62 changes: 60 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Thank you for considering contributing to the [imperialism remake](http://remake.twelvepm.de/)
open source game project!
## Introduction

Thank you for considering contributing to the [Imperialism Remake](http://remake.twelvepm.de/)vproject!

Volunteers are always welcome. There are plenty of chances to take part in coding,
graphics design, discussing the game rules or just giving feedback.
Expand All @@ -12,3 +13,60 @@ by forking and pushing merge requests are preferred. Please use the
[issues tracker](https://github.com/Trilarion/imperialism-remake/issues) to report problems with
the game. Requests for enhancement should be posted in the community forum or if they more technical
(coding related) also at the issues tracker.


## Getting started

### Sources

The [source code](https://github.com/Trilarion/Imperialism-Remake) is on GitHub.

#### Using Git

[Download Git](http://git-scm.com/downloads) or on Windows install [TortoiseGit](https://code.google.com/p/tortoisegit/)
which conveniently integrates git with the explorer.

Git is not easy. Be careful. Here is a [tutorial](https://www.atlassian.com/git/tutorials/syncing).

Please use the usual fork and create pull request scheme for suggesting changes to the code.

### Developer documentation

- [![Documentation Status](https://readthedocs.org/projects/imperialism-remake-definition/badge/?version=latest)](http://imperialism-remake-definition.readthedocs.io/en/latest/?badge=latest) Game Design
- [![Documentation Status](https://readthedocs.org/projects/imperialism-remake-developer/badge/?version=latest)](http://imperialism-remake-developer.readthedocs.io/en/latest/?badge=latest) Developer Manual

### Python environment

Install [Python 3.X](https://www.python.org/downloads/). See also the [Python documentation](https://docs.python.org/3/).

Only PyQt5 and [PyYAML](http://pyyaml.org/wiki/PyYAML) are required for running. Sphinx and sphinx_rtd_theme for creating the documentation.

#### PyQt5

[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) is a Python binding of the Qt framework and is required for running.

PyQt5 has not much [documentation](http://pyqt.sourceforge.net/Docs/PyQt5/) on its own but the [API classes overview](http://doc.qt.io/qt-5/classes.html)
of the underlying C++ Qt 5.X framework is very useful since PyQt5 is almost 100% recreating it.

### Start the game

- Run file `source/imperialism_remake/start.py`
- Start with command line parameter "--debug" for (more) output on the console.
- A folder with log files and settings is created under "user folder/Imperialism Remake User Data" where "user folder" is the typical user folder of your system (Windows: C:/Users/XXX/, Linux: ~/.config/).

### Tests

All tests in folder `test` can be run by executing `test/run_tests.py`. We also use Travis CI to run the tests
automatically.

[![Build Status](https://travis-ci.org/Trilarion/imperialism-remake.svg?branch=master)](https://travis-ci.org/Trilarion/imperialism-remake)

### IDE

I use [PyCharm Community Edition](http://www.jetbrains.com/pycharm/download/). The `.idea` folder is included in the source, the project
can probably be opened directly with PyCharm.

### Packaging

Packaging on Linux and macOS has not progressed much so far. Windows packaging is with pynsist. Instructions will be added later.

82 changes: 11 additions & 71 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,83 +1,23 @@
# Imperialism Remake

**[Home](http://remake.twelvepm.de/) - [Community](http://remake.twelvepm.de/forum/) - [Sources](https://github.com/Trilarion/Imperialism-Remake) - [Download](http://remake.twelvepm.de/home/download/) - [Tasks](http://remake.twelvepm.de/tasks/) - [Contact](http://remake.twelvepm.de/home/contact/)**
**[Home](http://remake.twelvepm.de/) - [Community](http://remake.twelvepm.de/forum/) - [Sources](https://github.com/Trilarion/Imperialism-Remake) - [Download](http://remake.twelvepm.de/home/download/)**

## Documentation

- [![Documentation Status](https://readthedocs.org/projects/imperialism-remake/badge/?version=latest)](http://imperialism-remake.readthedocs.io/en/latest/?badge=latest) Player Manual
- [![Documentation Status](https://readthedocs.org/projects/imperialism-remake-definition/badge/?version=latest)](http://imperialism-remake-definition.readthedocs.io/en/latest/?badge=latest) Game Design
- [![Documentation Status](https://readthedocs.org/projects/imperialism-remake-developer/badge/?version=latest)](http://imperialism-remake-developer.readthedocs.io/en/latest/?badge=latest) Developer Manual

## Test

[![Build Status](https://travis-ci.org/Trilarion/imperialism-remake.svg?branch=master)](https://travis-ci.org/Trilarion/imperialism-remake)

## Requirements

- Minimal screen size: 1024 x 768
- Python (with some modules (see below) or included in a package)

## Getting Started

### Access the source code

The [source code](https://github.com/Trilarion/Imperialism-Remake) is on GitHub. You can also download a zipped
[one-time snapshot](https://github.com/Trilarion/imperialism-remake/archive/master.zip). Otherwise just register
with GitHub and [fork the project](https://github.com/Trilarion/imperialism-remake).

### Using Git

[Download Git](http://git-scm.com/downloads) or on Windows install [TortoiseGit](https://code.google.com/p/tortoisegit/)
which conveniently integrates git with the explorer.

Git is not easy. Be careful and read some instructions first. I liked this [tutorial](https://www.atlassian.com/git/tutorials/syncing).

- Once you forked the project, clone it on your computer with "git clone https://github.com/USER/Imperialism-Remake.git"
- Regularly get updates with fetch/pull
- Programm as usual (commit)
- When task is done, create pull request.
Imperialism Remake is an open source game project to create a game very similar to the original Imperialism. It is written in Python.

### Python
## Download and requirements

Download and install latest [Python 3.X](https://www.python.org/downloads/). The [Python documentation](https://docs.python.org/3/) is quite good.
The current version can be found on the [download page](http://remake.twelvepm.de/home/download/). The packages for Windows,
Linux and macOS (if existing) will provide Python environments. The minimal screen size is 1024x768.

#### 32 or 64 bit on Windows

Although it doesn't matter here, I use 64 bit and also deliver packages in 64 bit only.

### Third Party Modules for Python

Only PyQt5 and PyYAML are required for running.

Sphinx, PyInstaller are additionally required for development.

#### PyQt5

[PyQt5](https://www.riverbankcomputing.com/software/pyqt/download5) is a Python binding of the Qt framework and is required for running.

PyQt5 has not much [documentation](http://pyqt.sourceforge.net/Docs/PyQt5/) on its own but the [API classes overview](http://doc.qt.io/qt-5/classes.html)
of the underlying C++ Qt 5.X framework is very useful since PyQt5 is almost 100% recreating it.

#### PyYAML

[PyYAML](http://pyyaml.org/wiki/PyYAML) is required for running.

### Start

- Run file `source/imperialism_remake/start.py`
- Start with command line parameter "--debug" for (more) output on the console.
- A folder with log files and settings is created under "user folder/Imperialism Remake User Data" where "user folder" is the typical user folder of your system (Windows: C:/Users/XXX/, Linux: ~/.config/).
## Documentation

### IDE
[![Documentation Status](https://readthedocs.org/projects/imperialism-remake/badge/?version=latest)](http://imperialism-remake.readthedocs.io/en/latest/?badge=latest) Player Manual

I use [PyCharm Community Edition](http://www.jetbrains.com/pycharm/download/). Since the `.idea` folder is contained the project
can probably be opened directly with PyCharm. Another nice IDE is [Spyder](https://code.google.com/p/spyderlib/).
## Community

### Tools
The community is centered around the [forum](http://remake.twelvepm.de/forum/) and the [Github project](https://github.com/Trilarion/imperialism-remake).

- [Inno Setup](http://www.jrsoftware.org/isinfo.php) is needed for the creation of the Windows installer.
- Many graphics are edited with [Inkscape](http://www.inkscape.org/en/).
## Feedback and contributions

### Packaging
Please post feedback on the forum and/or follow the [contribution guidelines](https://github.com/Trilarion/imperialism-remake/blob/master/CONTRIBUTING.md).

Under construction.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
PyYAML>=3.1
PyQt5>=5.6
PyQt5>=5.5
2 changes: 2 additions & 0 deletions test/test_runner.py → test/run_tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3
#
# Imperialism remake
# Copyright (C) 2016 Trilarion
#
Expand Down
2 changes: 2 additions & 0 deletions tools/build_documentation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env python3

"""
Builds the documentation.
Expand Down
13 changes: 0 additions & 13 deletions tools/taskboard/cache_header.html

This file was deleted.

1 change: 0 additions & 1 deletion tools/taskboard/preferences.json

This file was deleted.

Binary file removed tools/taskboard/tasks.db
Binary file not shown.

0 comments on commit a0ad2eb

Please sign in to comment.