Search found 466 matches

by Cjkjvfnby
Thu Jan 23, 2020 7:23 pm
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

I miss master build for my playtesting. My build is not compatiable with FOCS from master anymore. Can you provide a new one for me?
by Cjkjvfnby
Wed Jan 15, 2020 8:48 pm
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

My progress so far. PR with tests compatiable with Python 3 is ready for review. https://github.com/freeorion/freeorion/pull/2711 TODO: Work with problem places reported by pylint (Here is an example. https://github.com/freeorion/freeorion/pull/2709). Blocked by pr with tests. Setup mypy and check p...
by Cjkjvfnby
Sun Jan 12, 2020 11:15 am
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

There WIP list I maintains in PR description: First of all I'm waiting your PR and AI unit tests to be merged. Do something with ReadOnlyDict. Maybe we don't need it at all. Port charts script you found. And release SDK so python3 version can be built and tested with CI. Charts is a standalone scri...
by Cjkjvfnby
Sun Jan 12, 2020 10:39 am
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

Do we need to maintain Python2 compatibility? If so C++ code must be altered to support both version as well. It depends how fast we want to add python3. How far we from merging https://github.com/freeorion/freeorion/pull/2653? Can you produce a list of steps what should be done? Is it just press m...
by Cjkjvfnby
Sat Jan 11, 2020 11:22 am
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

I will add https://six.readthedocs.io/ library to the code.

Workflow:
  • copy library file to the project code
  • use it to archive compatibility
  • remove it and all usage after the migration is done
by Cjkjvfnby
Sat Jan 11, 2020 9:42 am
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

I want to join the python3 migration. Can someone provie me a python3 build for windows? My throughts about: https://github.com/freeorion/freeorion/pull/2653 I want to split it to smaller PRs. Do as much I can to make python2 code compatiable with python3 (print, iteritems, etc.). This will reduce d...
by Cjkjvfnby
Tue Aug 06, 2019 8:49 pm
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

As I understand python 3.5.7 is included to SDK.

I don't know how to switch to it, can you provide instructions?

Why 3.5.7? I will miss dataclasses 3.7 and Formatted string literals 3.6:
by Cjkjvfnby
Fri Mar 08, 2019 12:25 pm
Forum: Programming
Topic: How to build Windos build in Ubuntu(Docker)
Replies: 5
Views: 5278

Re: How to build Windos build in Ubuntu(Docker)

If I understand correctly you want to build freeorion for playing on windows. And you want to build/cross-compile from Linux? I have a Windows machine. I want to play develop the game on the machine I have. I do an AI stuff on Python, installing CDK and Visual Studio is not in my plans. I am famili...
by Cjkjvfnby
Fri Mar 08, 2019 12:13 pm
Forum: Programming
Topic: How to build Windos build in Ubuntu(Docker)
Replies: 5
Views: 5278

Re: How to build Windos build in Ubuntu(Docker)

As I know it is possible to build for the window from other operating systems but I need some instructions. No, that's not possible with Docker. Docker provides process isolation, not virtualization. You share the kernel with the host system and that limits the available user space application. Doc...
by Cjkjvfnby
Fri Mar 08, 2019 8:55 am
Forum: Programming
Topic: How to build Windos build in Ubuntu(Docker)
Replies: 5
Views: 5278

How to build Windos build in Ubuntu(Docker)

Hi, I am not friendly with C++ and freeorion build procedures. All I want is to build in one click, without installing SDK and other tools to my PC. Docker looks like a solution for that: create an image, start a container, take your build. As I know it is possible to build for the window from other...
by Cjkjvfnby
Sat Jan 26, 2019 6:19 pm
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

If to move from Ubuntu to Debian then it will be Debian 9 Stretch with https://packages.debian.org/stretch/libboost-python1.62-dev depends on 3.5 python3-dev. In Windows builds we ship all libs with the game. Any reason why we rely on local versions of libs for other platforms? Because on other (Li...
by Cjkjvfnby
Sat Jan 26, 2019 8:27 am
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Re: Python3 migration

o01eg wrote:
Wed Jan 23, 2019 7:24 pm
If to move from Ubuntu to Debian then it will be Debian 9 Stretch with https://packages.debian.org/stretch/lib ... on1.62-dev depends on 3.5 python3-dev.
In Windows builds we ship all libs with the game. Any reason why we rely on local versions of libs for other platforms?
by Cjkjvfnby
Sun Jan 20, 2019 4:57 pm
Forum: Programming
Topic: Python3 migration
Replies: 41
Views: 14452

Python3 migration

Being the last of the 2.x series, 2.7 will have an extended period of maintenance. Specifically, 2.7 will receive bugfix support until January 1, 2020. After the last release, 2.7 will receive no support. https://www.python.org/dev/peps/pep-0373/ We have less than a year. Why we need to migrate: on...
by Cjkjvfnby
Mon Dec 24, 2018 8:53 pm
Forum: Programming
Topic: The Git/GitHub Questions, Answers and Howto Thread
Replies: 194
Views: 47883

Re: The Git/GitHub Questions, Answers and Howto Thread

New GitHub feature "code owners". https://blog.github.com/2017-07-06-introducing-code-owners/#how-code-owners-work code owners will automatically be requested for review whenever a pull request touches the files they own. This might help to solve problems with contributors, who cannot assign PR to a...
by Cjkjvfnby
Sun Sep 23, 2018 10:34 am
Forum: Translations
Topic: Russian translate
Replies: 69
Views: 29940

Re: Russian translate

Eh, I came here to offer to do some translations, only to find out that you guys are already done with it and have found someone who fits the bill. You still can help with improving existing translation. The following type of issues may happen. Some of them hit English texts too. typos strange phra...