Git Product home page Git Product logo

client's Introduction

FA Forever Client

Stories in Ready


master develop
Build Status Appveyor Status Build Status Appveyor Status
Coverage Status Coverage Status

This is the source code for the FA Forever Lobby.

Pre-requisites are:

  • Python 3.4+

  • PyQt5 >=5.8

  • Requirements as in the requirements file.

    pip install -r requirements.txt

Contributing

By contributing, you agree to license your work to the FAForever project in such a way that it can forever be distributed under the conditions of the GPL v3.0 license.

Code-Style

Downlord's FAF Client Contribution Guidelines

Issues, PRs, and commit formatting

  1. Open an issue for every improvement or problem you want to work on
  2. Open a PR that references the issue, name of the feature branch for the PR should start with issue number
  3. Use reasonably structured commits in your PR, for example like this:
    1. Cosmetic changes necessary to prepare your work
    2. Infrastructure / low level changes necessary for your high-level feature/fix
    3. Implementation of your feature/fix
    4. Additional work, such as localizations
  4. Use "Closes #xxx" in commit messages
  5. Changelog messages of the form * Fix the foo #issue (@myname #pr) are appreciated when done in a final rebase after PR is marked "ready", but otherwise tend to cause annoying merge conflicts
  6. PRs without test coverage for all logic will not be accepted

Small fixes by contributors who "own" (have recently made commits on) the part of the project they are making changes on may be fast-tracked, but when in doubt open at least a PR with a descriptive title and description.

Running on Windows

https://github.com/FAForever/client/wiki/Windows-Dev-Py36

Running on Linux

This guide is about runnning the client from source repository. For a ready-made Arch-Linux package follow the instructions in the wiki.

Clone this repository locally:

git clone https://github.com/FAForever/client.git faf-client

Create a python3(!) virtualenv for installing its dependencies:

virtualenv ./faf-client-venv --system-site-packages
./faf-client-venv/bin/pip install -r ./faf-client/requirements.txt

Note that many distributions have separate names for Python 2 and Python 3 virtualenv, such as "virtualenv" and "virtualenv3" - ensure you're using the Python 3 specific version on your distribution!

Now download the faf-uid executable:

wget https://github.com/FAForever/uid/releases/download/v4.0.4/faf-uid -O ./faf-client/lib/faf-uid
chmod +x ./faf-client/lib/faf-uid

Note that the faf-uid smurf protection executable needs to run xrandr, lspci, lsblk and uname to gather unique system information. Additionally the lsblk command must support the "--json" flag, which was added in util-linux-2.27.

Run the client:

cd ./faf-client && PATH=$PATH:./lib ../faf-client-venv/bin/python src/__main__.py

For more information see the wiki.

Running unit tests

Before running unit tests, set PYTEST_QT_API as follows:

export PYTEST_QT_API='pyqt5'

Run the lobby from the main directory using:

python3 src

Run the unit test suite using:

python3 runtests.py

License

GPLv3. See the license file.

client's People

Contributors

wesmania avatar sheeo avatar chriskitching avatar duk3luk3 avatar grothefaf avatar hardlysoftly avatar crotalus avatar idragonfire avatar yorick-ne avatar blackclaws avatar aeoncleanse avatar brutus5000 avatar eximius avatar faf5678 avatar timwolters avatar micheljung avatar muellni avatar haraldweber avatar moritzvossking avatar vnznznz avatar flyingthunder avatar jvdwetering avatar pierto avatar athorley avatar codingsquirrel avatar evangalea avatar poida avatar iczero avatar

Watchers

James Cloos avatar Allister avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.