moved archived source repositories to gitlab.com/osgames

This commit is contained in:
Trilarion
2018-09-11 13:24:14 +02:00
parent 878d5365a7
commit 23b9cd53e5
88 changed files with 289 additions and 253 deletions

View File

@ -115,33 +115,8 @@
"https://github.com/SupSuper/OpenXcom.git",
"https://github.com/TVTower/TVTower.git",
"https://github.com/TobiasBielefeld/Simple-Solitaire.git",
"https://github.com/Trilarion/armies.git",
"https://github.com/Trilarion/avanor.git",
"https://github.com/Trilarion/blacknova.git",
"https://github.com/Trilarion/boson.git",
"https://github.com/Trilarion/crownandcutlass.git",
"https://github.com/Trilarion/dark-oberon.git",
"https://github.com/Trilarion/deity.git",
"https://github.com/Trilarion/dungeonmap.git",
"https://github.com/Trilarion/endlessdungeons.git",
"https://github.com/Trilarion/eos-game.git",
"https://github.com/Trilarion/freetrain.git",
"https://github.com/Trilarion/glest.git",
"https://github.com/Trilarion/howc.git",
"https://github.com/Trilarion/jewelhunt.git",
"https://github.com/Trilarion/jquest.git",
"https://github.com/Trilarion/low.git",
"https://github.com/Trilarion/mars.git",
"https://github.com/Trilarion/monstrosity.git",
"https://github.com/Trilarion/mpango.git",
"https://github.com/Trilarion/radakan.git",
"https://github.com/Trilarion/rpdungeon.git",
"https://github.com/Trilarion/sge2d.git",
"https://github.com/Trilarion/spaceopera.git",
"https://github.com/Trilarion/spacetraderjava.git",
"https://github.com/Trilarion/ura-game.git",
"https://github.com/Trilarion/vegatrek.git",
"https://github.com/Trilarion/xforceffd.git",
"https://github.com/Tuxemon/Tuxemon.git",
"https://github.com/Vakarias/farcolony.git",
"https://github.com/ValyriaTear/ValyriaTear.git",
@ -319,62 +294,87 @@
"https://github.com/xesf/twin-e.git",
"https://github.com/xoreos/xoreos.git",
"https://github.com/zaki/irrlicht.git",
"https://gitlab.com/Trilarion/aatraders.git",
"https://gitlab.com/Trilarion/antichess.git",
"https://gitlab.com/Trilarion/aplanetsrevenge.git",
"https://gitlab.com/Trilarion/attal.git",
"https://gitlab.com/Trilarion/blitzkrieg.git",
"https://gitlab.com/Trilarion/bmtactics.git",
"https://gitlab.com/Trilarion/civil.git",
"https://gitlab.com/Trilarion/civilwar.git",
"https://gitlab.com/Trilarion/coltoo.git",
"https://gitlab.com/Trilarion/conquests.git",
"https://gitlab.com/Trilarion/crimson.git",
"https://gitlab.com/Trilarion/devana.git",
"https://gitlab.com/Trilarion/digitalalovestory.git",
"https://gitlab.com/Trilarion/dragon-history.git",
"https://gitlab.com/Trilarion/dragon-hunt.git",
"https://gitlab.com/Trilarion/duelcommander.git",
"https://gitlab.com/Trilarion/dungeoncrawl.git",
"https://gitlab.com/Trilarion/galaxyng.git",
"https://gitlab.com/Trilarion/gm-tools.git",
"https://gitlab.com/Trilarion/gwiz.git",
"https://gitlab.com/Trilarion/h-world.git",
"https://gitlab.com/Trilarion/janag.git",
"https://gitlab.com/Trilarion/koboldsquest2.git",
"https://gitlab.com/Trilarion/kursk.git",
"https://gitlab.com/Trilarion/lechemindeladam.git",
"https://gitlab.com/Trilarion/lincity.git",
"https://gitlab.com/Trilarion/machinations.git",
"https://gitlab.com/Trilarion/mercenarycommander.git",
"https://gitlab.com/Trilarion/metalmech.git",
"https://gitlab.com/Trilarion/murderpd.git",
"https://gitlab.com/Trilarion/openrpgmaker.git",
"https://gitlab.com/Trilarion/orient.git",
"https://gitlab.com/Trilarion/phaosrpg.git",
"https://gitlab.com/Trilarion/pizza-business.git",
"https://gitlab.com/Trilarion/planets.git",
"https://gitlab.com/Trilarion/promisance-cvs.git",
"https://gitlab.com/Trilarion/pymapper.git",
"https://gitlab.com/Trilarion/rogueclone.git",
"https://gitlab.com/Trilarion/sentient-storage.git",
"https://gitlab.com/Trilarion/sharpkonquest.git",
"https://gitlab.com/Trilarion/skrupel.git",
"https://gitlab.com/Trilarion/slaygame.git",
"https://gitlab.com/Trilarion/spicetrade.git",
"https://gitlab.com/Trilarion/tbots.git",
"https://gitlab.com/Trilarion/theclans.git",
"https://gitlab.com/Trilarion/tuxracer.git",
"https://gitlab.com/Trilarion/uwadv.git",
"https://gitlab.com/Trilarion/wargamer.git",
"https://gitlab.com/Trilarion/watomic.git",
"https://gitlab.com/Trilarion/worldofheroes.git",
"https://gitlab.com/Trilarion/xarchon.git",
"https://gitlab.com/Trilarion/xconq.git",
"https://gitlab.com/Trilarion/zangband.git",
"https://gitlab.com/evol/evol-all.git",
"https://gitlab.com/freedroid/freedroid-src.git",
"https://gitlab.com/manaplus/manaplus.git",
"https://gitlab.com/osgames/aatraders.git",
"https://gitlab.com/osgames/antichess.git",
"https://gitlab.com/osgames/aplanetsrevenge.git",
"https://gitlab.com/osgames/armies.git",
"https://gitlab.com/osgames/attal.git",
"https://gitlab.com/osgames/avanor.git",
"https://gitlab.com/osgames/blacknova.git",
"https://gitlab.com/osgames/blitzkrieg.git",
"https://gitlab.com/osgames/bmtactics.git",
"https://gitlab.com/osgames/boson.git",
"https://gitlab.com/osgames/civil.git",
"https://gitlab.com/osgames/civilwar.git",
"https://gitlab.com/osgames/coltoo.git",
"https://gitlab.com/osgames/conquests.git",
"https://gitlab.com/osgames/crimson.git",
"https://gitlab.com/osgames/crownandcutlass.git",
"https://gitlab.com/osgames/dark-oberon.git",
"https://gitlab.com/osgames/deity.git",
"https://gitlab.com/osgames/devana.git",
"https://gitlab.com/osgames/digitalalovestory.git",
"https://gitlab.com/osgames/dragon-history.git",
"https://gitlab.com/osgames/dragon-hunt.git",
"https://gitlab.com/osgames/duelcommander.git",
"https://gitlab.com/osgames/dungeoncrawl.git",
"https://gitlab.com/osgames/dungeonmap.git",
"https://gitlab.com/osgames/endlessdungeons.git",
"https://gitlab.com/osgames/eos-game.git",
"https://gitlab.com/osgames/freetrain.git",
"https://gitlab.com/osgames/galaxyng.git",
"https://gitlab.com/osgames/glest.git",
"https://gitlab.com/osgames/gm-tools.git",
"https://gitlab.com/osgames/gwiz.git",
"https://gitlab.com/osgames/h-world.git",
"https://gitlab.com/osgames/howc.git",
"https://gitlab.com/osgames/janag.git",
"https://gitlab.com/osgames/jewelhunt.git",
"https://gitlab.com/osgames/jquest.git",
"https://gitlab.com/osgames/koboldsquest2.git",
"https://gitlab.com/osgames/kursk.git",
"https://gitlab.com/osgames/lechemindeladam.git",
"https://gitlab.com/osgames/lincity.git",
"https://gitlab.com/osgames/low.git",
"https://gitlab.com/osgames/machinations.git",
"https://gitlab.com/osgames/mars.git",
"https://gitlab.com/osgames/mercenarycommander.git",
"https://gitlab.com/osgames/metalmech.git",
"https://gitlab.com/osgames/monstrosity.git",
"https://gitlab.com/osgames/murderpd.git",
"https://gitlab.com/osgames/openrpgmaker.git",
"https://gitlab.com/osgames/orient.git",
"https://gitlab.com/osgames/phaosrpg.git",
"https://gitlab.com/osgames/pizza-business.git",
"https://gitlab.com/osgames/planets.git",
"https://gitlab.com/osgames/promisance-cvs.git",
"https://gitlab.com/osgames/pymapper.git",
"https://gitlab.com/osgames/radakan.git",
"https://gitlab.com/osgames/rogueclone.git",
"https://gitlab.com/osgames/rpdungeon.git",
"https://gitlab.com/osgames/sentient-storage.git",
"https://gitlab.com/osgames/sge2d.git",
"https://gitlab.com/osgames/sharpkonquest.git",
"https://gitlab.com/osgames/skrupel.git",
"https://gitlab.com/osgames/slaygame.git",
"https://gitlab.com/osgames/spaceopera.git",
"https://gitlab.com/osgames/spicetrade.git",
"https://gitlab.com/osgames/tbots.git",
"https://gitlab.com/osgames/theclans.git",
"https://gitlab.com/osgames/tuxracer.git",
"https://gitlab.com/osgames/ura-game.git",
"https://gitlab.com/osgames/uwadv.git",
"https://gitlab.com/osgames/vegatrek.git",
"https://gitlab.com/osgames/wargamer.git",
"https://gitlab.com/osgames/watomic.git",
"https://gitlab.com/osgames/worldofheroes.git",
"https://gitlab.com/osgames/xarchon.git",
"https://gitlab.com/osgames/xconq.git",
"https://gitlab.com/osgames/xforceffd.git",
"https://gitlab.com/osgames/zangband.git",
"https://gitlab.com/pingus/pingus.git",
"https://gitlab.com/solarus-games/zsdx.git",
"https://gitlab.com/xonotic/xonotic.git",

View File

@ -314,12 +314,23 @@ def parse_entry(content):
# store in info
info[field.lower()] = v
# state must contain either beta or mature but not both
# state (essential field) must contain either beta or mature but not both, but at least one
v = info['state']
for t in v:
if t != 'beta' and t != 'mature' and not t.startswith('inactive since '):
print('Error: Unknown state tage "{}" in entry "{}"'.format(t, info['title']))
return info # so that the rest can run through
if 'beta' in v != 'mature' in v:
print('State must be one of <"beta", "mature"> in entry "{}"'.format(info['title']))
print('Error: State must be one of <"beta", "mature"> in entry "{}"'.format(info['title']))
return info # so that the rest can run through
# extract inactive year
phrase = 'inactive since '
inactive_year = [x[len(phrase):] for x in v if x.startswith(phrase)]
assert len(inactive_year) <= 1
if inactive_year:
info['inactive'] = inactive_year[0]
# urls in home, download, play and code repositories must start with http or https (or git) and should not contain space
for field in ['home', 'download', 'play', 'code repository']:
if field in info:
@ -335,12 +346,13 @@ def parse_entry(content):
if repo.startswith('https://github.com/') and not repo.endswith('.git'):
print('Github repo {} in entry "{}" should end on .git.'.format(repo, info['title']))
# extract inactive
phrase = 'inactive since '
inactive_year = [x[len(phrase):] for x in info['state'] if x.startswith(phrase)]
assert len(inactive_year) <= 1
if inactive_year:
info['inactive'] = inactive_year[0]
# check valid platform tags
valid_platforms = ('Android', 'Windows', 'Linux', 'macOS', 'Browser')
if 'platform' in info:
for platform in info['platform']:
if platform not in valid_platforms:
print('Error: invalid platform tag "{}" in entry "{}"'.format(platform, info['title']))
return info # so that the rest can run through
return info
@ -551,6 +563,23 @@ def generate_statistics():
c_cpp_project_not_cmake.sort()
statistics += '##### C and C++ projects with a build system different from CMake ({})\n\n'.format(len(c_cpp_project_not_cmake)) + ', '.join(c_cpp_project_not_cmake) + '\n\n'
# Platform
statistics += '## Platform\n\n'
field = 'platform'
# get all platforms together
platforms = []
for info in infois:
if field in info:
platforms.extend(info[field])
unique_platforms = set(platforms)
unique_platforms = [(l, platforms.count(l) / len(platforms)) for l in unique_platforms]
unique_platforms.sort(key=lambda x: x[0]) # first sort by name
unique_platforms.sort(key=lambda x: -x[1]) # then sort by occurrence (highest occurrence first)
unique_platforms = ['- {} ({:.1f}%)'.format(x[0], x[1]*100) for x in unique_platforms]
statistics += '##### Platforms frequency\n\n' + '\n'.join(unique_platforms) + '\n\n'
with open(statistics_path, mode='w', encoding='utf-8') as f:
f.write(statistics)