1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
Commit graph

136 commits

Author SHA1 Message Date
Juhani Numminen
2412d58fcd Skip all python2 tests by default
python2 is deprecated
2021-02-07 16:43:17 +02:00
Juhani Numminen
6a55a0b262 Move tests so that standard library unittest discovery finds them 2021-02-07 16:24:45 +02:00
Juhani Numminen
0d0b39e4bc travis: config rewrite to have osx working again
Do not attempt to run python2 tests on osx.

Homebrew updating was taking a long time, causing timeouts.

Reduced the number of homebrew formulas to cut down install time.
Some of the removed ones are already provided in the osx image.

osx_image updated because only the newer ones work without
travis's homebrew addon flag 'update: true'
https://changelog.travis-ci.com/xcode-11-3-1-xcode-11-2-1-xcode-11-1-and-xcode11-images-updated-142286

Config updated with the help of live validator:
https://config.travis-ci.com/explore

Added sudo flag "-H" to "sudo pip*" as pip suggests.

Trying to make use of cached of $HOME/perl_modules.
2021-01-22 14:34:07 +02:00
cardset
93793c01db Again cardset-viewer
- changed the imports
- added shebang
- changed a lot of variable names because of pylint: doesn't conform to snake_case naming style
2020-11-12 10:05:14 +02:00
cardset
afe0e080c0 Update cardset_viewer.py
Nächster Versuch
2020-11-12 10:05:14 +02:00
cardset
d6e197f8c8 Update cardset_viewer.py
Rewritten
2020-11-12 10:05:14 +02:00
Shlomi Fish
94927cbbc0 add a get-up-and-running script
See: https://sourceforge.net/p/pysolfc/discussion/503709/thread/b37cd50f/
2020-11-02 14:21:24 +02:00
Juhani Numminen
a8a262a68c AppVeyor fix: change py2exe to pyinstaller
py2exe seems abandoned and still requires python < 3.4
while attrs does not support such an old python version anymore.

* https://ci.appveyor.com/project/shlomif/pysolfc/builds/35127928

To accommodate pyinstaller's directory layout, dist was changed to
dist/pysol in scripts/create_iss.py.

scripts/build.bat had become unmaintained and outdated.
2020-10-08 15:04:36 +03:00
Juhani Numminen
bf9ce90a5b Refactor cardset config.txt parser to a new module 2020-10-06 14:35:28 +03:00
Shlomi Fish
e2c11a7ba0 fix flake8 + tidyall tests 2020-08-27 11:52:59 +03:00
Roderik Ploszek
068d72d634 test Windows version in the installer
Windows XP SP3 or higher is required
see issue #161
2020-05-25 11:30:25 +02:00
Shlomi Fish
0961401105 fix tests 2019-11-13 08:39:59 +02:00
Shlomi Fish
a8dbceec93 valid xhtml5 2019-08-16 16:30:39 +03:00
lb@lb7520
18febbe240 cardconv updated.
png images converted from gifs by IM resulted in an indexed png format. This
lead to Problems with tranparency, especially with ganijfa and hanafuda
cardsets. To circumvent these problems IM had to be advised to produce
32 bit mode rgba format.
affects android apk build process only.
2019-08-13 10:00:49 +02:00
Juhani Numminen
fdebf13171 android: adapt to python3.
android: Install p4a using pip
Add 'set -e' to sh scripts, they must stop upon any error
README.md: kivy does not specifically require python2
android: Overhaul initialization scripts
android: Simplify apk build scripts by using the 'common' file
Merge the scripts cardconv and cardsetsgiftobmp
android: Fix startup script shebang to python3
android: Simplify mkkeystore and ignore the keystore file
android: Fix up debian prerequisites

The package cython (as opposed to cython3) even caused me to produce
an apk that did not start (TypeError: must be str, not bytes).

Android SDK requires java8; install and set as the default.

The build processes complained about lld and libtinfo5; added in.

mercurial (or hg) is seemingly unused.

The pip pcakges were needed by android/initsdk.py which is gone.

android: Ensure that the html files are built
2019-08-08 19:12:44 +03:00
Juhani Numminen
dbe4a96ac9 repack-min-cardsets: Remove temporary directory before copying (github #135)
If the directory is not removed, on the second run of the script,
duplicated subdirectories will be created, e.g.
    $dest_vbase/cardset-standard/cardset-standard/
that will essentially double the unpacked size.
2019-07-28 19:06:36 +03:00
Shlomi Fish
602f9ebc93 add missing attribute.
See https://github.com/shlomif/PySolFC/issues/129 .
2019-07-26 00:04:07 +03:00
Juhani Numminen
45f8c312a4 Simplify po/pysol.pot generation 2019-07-19 01:38:40 +03:00
Shlomi Fish
0aad4261d8 appveyor fix #1 - os.sep 2019-07-14 08:58:46 +03:00
Shlomi Fish
2d60bdf726 travis / py3 fix - str.replace. 2019-05-05 21:16:07 +03:00
Shlomi Fish
6317008876 traverse the tree for matching modules.
To avoid misses.
2019-04-30 17:35:43 +03:00
Shlomi Fish
33c8f6e375 add tests. 2019-04-30 17:20:47 +03:00
Shlomi Fish
9af86cddfb Extract a common module/library/header.
This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.
2019-04-29 15:14:36 +03:00
Shlomi Fish
90323173a7 Extract a common module/library/header.
This is Refactoring / code cleanup.

See:

* https://refactoring.com/catalog/extractMethod.html

* https://en.wikipedia.org/wiki/Code_refactoring

* https://www.refactoring.com/

* https://www.joelonsoftware.com/2002/01/23/rub-a-dub-dub/

Some small optimisations may have slipped in as well.
2019-04-29 15:08:04 +03:00
Shlomi Fish
0c19541e8d Allow to skip python2 tests.
So one won't have to have these deps installed.
2019-01-18 20:41:07 +02:00
Shlomi Fish
ed18fd8156 Order imports based on flake8-import-order.
Tested on ci. See https://github.com/PyCQA/flake8-import-order . In the
process did some other cleanups and
https://en.wikipedia.org/wiki/Code_refactoring .
2019-01-11 23:55:06 +02:00
Shlomi Fish
8980adbd35 skip gtk tests on macos x.
travis-ci/etc.
2018-11-12 13:34:48 +02:00
Shlomi Fish
b142366595 Fix exception in the Wasp variant.
See https://sourceforge.net/p/pysolfc/bugs/31/ .

unable to move cards in py3.
2018-10-08 23:19:59 +03:00
Shlomi Fish
8d208f8ed6 Add a repack script for the cardsets.
See https://github.com/shlomif/PySolFC/issues/89 .
2018-09-23 11:16:54 +03:00
Shlomi Fish
5f2cc55655 Add a bare option to reduce html boilerplate.
For including in the site.
2018-09-06 10:28:36 +03:00
Shlomi Fish
5de21adc3b fix formatting 2018-09-02 02:42:09 +03:00
Shlomi Fish
75531481aa validate as html5. 2018-09-02 02:37:19 +03:00
Shlomi Fish
a8f297208b Refactoring: generate dup code. 2018-05-12 20:45:21 +03:00
Shlomi Fish
5c663272c5 Add the first ver of the script. 2018-05-09 18:06:17 +03:00
Shlomi Fish
d88d43025c travis test the make dist+make test scheme. 2018-05-09 13:07:50 +03:00
Shlomi Fish
2f114469b5 add py2 tests 2018-05-01 17:52:17 +03:00
Shlomi Fish
6304994ed4 add py2 tests 2018-05-01 17:45:37 +03:00
Shlomi Fish
6ec197daaf Add py2 tests. 2018-05-01 17:36:41 +03:00
Shlomi Fish
7860f47363 generate some duplicate code. 2018-05-01 17:28:02 +03:00
Shlomi Fish
661c23e1b0 refactor. 2018-04-15 18:43:26 +03:00
Shlomi Fish
39cd81d663 Refactor/optimize: get rid of TAP.Simple.
It was underused and unneeded.
2018-04-15 17:41:09 +03:00
Roderik Ploszek
b4a55cd1fd Change bundled Hanafuda cardset
Hanafuda 200 Years contains all card bottoms, therefore it's compatible
with all Hanafuda games (that was not the case with the Kintengu
cardset).
2018-04-15 13:44:20 +02:00
Roderik Ploszek
ed61804855 Bundle MSVC++ redistributable with the installer
Installer checks for presence of msvcr100.dll library in the System32 folder (or
SysWOW64 in case of 64 bit systems). If not present, it will install it
(version 2010 SP1 x86).
2018-03-24 17:58:32 +01:00
Shlomi Fish
055718d2e9 flake8 2018-03-21 10:45:12 +02:00
Roderik Ploszek
57485fac95 Maintain compatibility with Python 2 2018-03-20 23:03:53 +01:00
Roderik Ploszek
0bd7b44ed5 flake8 2018-03-19 23:10:24 +01:00
Roderik Ploszek
92a5a341c5 Convert scripts/pygettext.py to python 3 2018-03-19 19:38:38 +01:00
Roderik Ploszek
f1161cdae0 Convert scripts/all_games.py to python 3 2018-03-19 18:28:13 +01:00
Roderik Ploszek
819dbc6a2e Add Windows installer build to appveyor
It also bundles locales and a few cardsets.
2018-03-19 17:14:52 +01:00
Roderik Ploszek
ef041c6249 Show all pages in the installation wizard 2018-03-19 16:12:15 +01:00