diff --git a/README.md b/README.md index 620cd9c0..3a9bc69f 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ Development **[Blog](https://trilarion.blogspot.com/search/label/osgames)** / **[Statistics](statistics.md#statistics)** about entries [comment]: # (start of autogenerated content, do not edit) -**[Games](entries/tocs/_games.md#Games)** (1470) - **[Tools](entries/tocs/_tools.md#Tools)** (48) - **[Frameworks](entries/tocs/_frameworks.md#Frameworks)** (95) - **[Libraries](entries/tocs/_libraries.md#Libraries)** (46) +**[Games](entries/tocs/_games.md#Games)** (1475) - **[Tools](entries/tocs/_tools.md#Tools)** (46) - **[Frameworks](entries/tocs/_frameworks.md#Frameworks)** (95) - **[Libraries](entries/tocs/_libraries.md#Libraries)** (15) -By category: **[Action](entries/tocs/_action.md#action)** (273), **[Adventure](entries/tocs/_adventure.md#adventure)** (59), **[Arcade](entries/tocs/_arcade.md#arcade)** (158), **[Board](entries/tocs/_board.md#board)** (26), **[Cards](entries/tocs/_cards.md#cards)** (21), **[Educational](entries/tocs/_educational.md#educational)** (13), **[Framework](entries/tocs/_framework.md#framework)** (95), **[Game engine](entries/tocs/_game-engine.md#game-engine)** (157), **[Library](entries/tocs/_library.md#library)** (46), **[Music](entries/tocs/_music.md#music)** (16), **[Platform](entries/tocs/_platform.md#platform)** (69), **[Puzzle](entries/tocs/_puzzle.md#puzzle)** (158), **[Remake](entries/tocs/_remake.md#remake)** (568), **[Role playing](entries/tocs/_role-playing.md#role-playing)** (220), **[Simulation](entries/tocs/_simulation.md#simulation)** (124), **[Sports](entries/tocs/_sports.md#sports)** (25), **[Strategy](entries/tocs/_strategy.md#strategy)** (297), **[Tool](entries/tocs/_tool.md#tool)** (48), **[Visual novel](entries/tocs/_visual-novel.md#visual-novel)** (7) +By category: **[Action](entries/tocs/_action.md#action)** (274), **[Adventure](entries/tocs/_adventure.md#adventure)** (59), **[Arcade](entries/tocs/_arcade.md#arcade)** (158), **[Board](entries/tocs/_board.md#board)** (26), **[Cards](entries/tocs/_cards.md#cards)** (21), **[Educational](entries/tocs/_educational.md#educational)** (13), **[Framework](entries/tocs/_framework.md#framework)** (95), **[Game engine](entries/tocs/_game-engine.md#game-engine)** (159), **[Library](entries/tocs/_library.md#library)** (15), **[Music](entries/tocs/_music.md#music)** (16), **[Platform](entries/tocs/_platform.md#platform)** (69), **[Puzzle](entries/tocs/_puzzle.md#puzzle)** (159), **[Remake](entries/tocs/_remake.md#remake)** (568), **[Role playing](entries/tocs/_role-playing.md#role-playing)** (220), **[Simulation](entries/tocs/_simulation.md#simulation)** (125), **[Sports](entries/tocs/_sports.md#sports)** (25), **[Strategy](entries/tocs/_strategy.md#strategy)** (297), **[Tool](entries/tocs/_tool.md#tool)** (46), **[Visual novel](entries/tocs/_visual-novel.md#visual-novel)** (7) -By platform: **[Windows](entries/tocs/_windows.md#windows)** (524), **[Linux](entries/tocs/_linux.md#linux)** (500), **[macOS](entries/tocs/_macos.md#macos)** (296), **[Android](entries/tocs/_android.md#android)** (149), **[iOS](entries/tocs/_ios.md#ios)** (22), **[Web](entries/tocs/_web.md#web)** (152) +By platform: **[Windows](entries/tocs/_windows.md#windows)** (517), **[Linux](entries/tocs/_linux.md#linux)** (492), **[macOS](entries/tocs/_macos.md#macos)** (289), **[Android](entries/tocs/_android.md#android)** (147), **[iOS](entries/tocs/_ios.md#ios)** (21), **[Web](entries/tocs/_web.md#web)** (152) [comment]: # (end of autogenerated content) diff --git a/code/archive_detect_submodules.py b/code/archive_detect_submodules.py index 807bddac..44ab70c3 100644 --- a/code/archive_detect_submodules.py +++ b/code/archive_detect_submodules.py @@ -5,7 +5,6 @@ repositories to be checked out. Works on bare repositories. import json import re -import urllib.parse from utils.utils import * from utils.archive import * diff --git a/code/archives.json b/code/archives.json index d4a12037..48281ce4 100644 --- a/code/archives.json +++ b/code/archives.json @@ -1,11 +1,9 @@ { "git": [ "git://git.blender.org/blender.git", - "git://git.colm.net/ragel.git", "git://opensimulator.org/git/opensim", "http://git.pond.sub.org/empserver", "http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=fairymax.git", - "https://anongit.freedesktop.org/git/pkg-config.git", "https://anongit.kde.org/ksudoku.git", "https://bitbucket.org/Knitter/puzzlemoppet.git", "https://bitbucket.org/SteveSmith16384/teamtactics.git", @@ -126,13 +124,11 @@ "https://git.savannah.nongnu.org/git/stellarengine.git", "https://git.savannah.nongnu.org/git/tangomon.git", "https://git.tartarus.org/simon/puzzles.git", - "https://git.tukaani.org/xz.git", "https://git.tuxfamily.org/baller/baller.git", "https://git.tuxfamily.org/boohu/boohu.git", "https://git.tuxfamily.org/fanwor/fanwor.git", "https://git.tuxfamily.org/harmonist/harmonist.git", "https://git.tuxfamily.org/rba/rogueboxadventures.git", - "https://git.xiph.org/vorbis.git", "https://git.xonotic.org/xonotic/xonotic.git", "https://gitea.it/rixty/OpenValley.git", "https://github.com/00-Evan/shattered-pixel-dungeon.git", @@ -176,6 +172,7 @@ "https://github.com/Blecki/dwarfcorp.git", "https://github.com/BlindMindStudios/StarRuler2-Source.git", "https://github.com/Blzut3/CatacombSDL.git", + "https://github.com/Bollos00/LibreMines.git", "https://github.com/BrooklynKing/Grimsonland.git", "https://github.com/BrunoAOR/Space-Harrier-Clone.git", "https://github.com/Bubu/android-dice-game.git", @@ -248,7 +245,6 @@ "https://github.com/GarageGames/Torque2D.git", "https://github.com/GarageGames/Torque3D.git", "https://github.com/GentenStudios/QuartzEngine.git", - "https://github.com/GerHobbelt/pthread-win32.git", "https://github.com/GlPortal/RadixEngine.git", "https://github.com/GlPortal/glPortal.git", "https://github.com/Gnomescroll/Gnomescroll.git", @@ -550,6 +546,7 @@ "https://github.com/aroldanju/raptor-call-of-the-shadows.git", "https://github.com/arturkot/the-house-game.git", "https://github.com/arx/ArxLibertatis.git", + "https://github.com/asc-community/MxEngine.git", "https://github.com/asiekierka/reconstruction-of-super-zzt.git", "https://github.com/asiekierka/reconstruction-of-zzt.git", "https://github.com/asiekierka/zeta.git", @@ -578,7 +575,6 @@ "https://github.com/bni/orbium.git", "https://github.com/boardgameio/boardgame.io.git", "https://github.com/bobthekingofegypt/BobBall.git", - "https://github.com/boostorg/boost.git", "https://github.com/bote-team/bote.git", "https://github.com/bradhannah/Ultima5Redux.git", "https://github.com/bradharding/doomretro.git", @@ -675,7 +671,6 @@ "https://github.com/dorkster/freeblocks.git", "https://github.com/dougmencken/HeadOverHeels.git", "https://github.com/doukutsu-rs/doukutsu-rs.git", - "https://github.com/doxygen/doxygen.git", "https://github.com/dozingcat/Vector-Pinball.git", "https://github.com/dreamchess/dreamchess.git", "https://github.com/drodin/TuxRider.git", @@ -755,7 +750,6 @@ "https://github.com/ghewgill/puzzles.git", "https://github.com/gideros/gideros.git", "https://github.com/ginkgo/pink-pony.git", - "https://github.com/glennrp/libpng.git", "https://github.com/gliptic/liero.git", "https://github.com/goblinhack/goblinhack.git", "https://github.com/godotengine/godot.git", @@ -778,7 +772,6 @@ "https://github.com/haleymt/CrystalQuest.git", "https://github.com/hankmorgan/UnderworldExporter.git", "https://github.com/haqu/tiny-wings.git", - "https://github.com/harfbuzz/harfbuzz.git", "https://github.com/haroldo-ok/datastorm.git", "https://github.com/hedgewars/hw.git", "https://github.com/henkboom/pax-britannica.git", @@ -821,7 +814,6 @@ "https://github.com/jazztickets/emptyclip.git", "https://github.com/jazztickets/irrlamb.git", "https://github.com/jazzyjester/Mario-Game.git", - "https://github.com/jbeder/yaml-cpp.git", "https://github.com/jcarolus/android-chess.git", "https://github.com/jdah/minecraft-weekend.git", "https://github.com/jdmclark/gorc.git", @@ -852,6 +844,7 @@ "https://github.com/jwvhewitt/dmeternal.git", "https://github.com/jwvhewitt/gearhead-1.git", "https://github.com/jwvhewitt/gearhead-2.git", + "https://github.com/kacperks/Fractal_Engine.git", "https://github.com/kantoks/skrupel.git", "https://github.com/karlb/castle-combat.git", "https://github.com/kazzmir/paintown.git", @@ -886,12 +879,10 @@ "https://github.com/llopisdon/monsters_and_mushrooms.git", "https://github.com/lo-th/3d.city.git", "https://github.com/love2d/love.git", - "https://github.com/lua/lua.git", "https://github.com/luciusDXL/TheForceEngine.git", "https://github.com/lufte/lona.git", "https://github.com/lvella/xevil.git", "https://github.com/mackers/xultris.git", - "https://github.com/madler/zlib.git", "https://github.com/magarena/magarena.git", "https://github.com/magefree/mage.git", "https://github.com/maikmerten/c64-nuclearreaction.git", @@ -944,14 +935,12 @@ "https://github.com/nicolasbrailo/PianOli.git", "https://github.com/nicolasgramlich/AndEngine.git", "https://github.com/nicupavel/openpanzer.git", - "https://github.com/nigels-com/glew.git", "https://github.com/nikki-and-the-robots/nikki.git", "https://github.com/nlarn/nlarn.git", "https://github.com/nodef0/gorillas-rs.git", "https://github.com/nornagon/openc2e.git", "https://github.com/notapixelstudio/superstarfighter.git", "https://github.com/nukeykt/NBlood.git", - "https://github.com/numpy/numpy.git", "https://github.com/nuvie/nuvie.git", "https://github.com/nxengine/nxengine-evo.git", "https://github.com/obfusk/sokobang.git", @@ -973,7 +962,6 @@ "https://github.com/openitg/openitg.git", "https://github.com/openlegend/core-rules.git", "https://github.com/opensludge/opensludge.git", - "https://github.com/openssl/openssl.git", "https://github.com/opentibia/server.git", "https://github.com/opentibia/yatc.git", "https://github.com/opentomb/OpenTomb.git", @@ -1016,14 +1004,11 @@ "https://github.com/prophile/xsera.git", "https://github.com/protoman/rockbot.git", "https://github.com/ptitSeb/friking-shark.git", - "https://github.com/ptitSeb/gl4es.git", "https://github.com/pushover/pushover.github.io.git", "https://github.com/pwiecz/command_series.git", "https://github.com/pwmarcz/netacka.git", "https://github.com/pychess/pychess.git", "https://github.com/pygame/pygame.git", - "https://github.com/pyglet/pyglet.git", - "https://github.com/python-pillow/Pillow.git", "https://github.com/python-sge/sge.git", "https://github.com/q-gears/q-gears.git", "https://github.com/q4a/scourge.git", @@ -1151,7 +1136,6 @@ "https://github.com/svkaiser/TurokEX.git", "https://github.com/svkaiser/strife-ve.git", "https://github.com/svn2github/numptyphysics.git", - "https://github.com/swig/swig.git", "https://github.com/synkarius/micemen.git", "https://github.com/taisei-project/taisei.git", "https://github.com/tales/sourceoftales.git", @@ -1164,6 +1148,7 @@ "https://github.com/teruk/movbizz.git", "https://github.com/textadventures/squiffy.git", "https://github.com/textbrowser/maxit.git", + "https://github.com/tgstation/tgstation.git", "https://github.com/the-butterfly-effect/tbe.git", "https://github.com/the3dfxdude/7kaa.git", "https://github.com/theZiz/hase.git", @@ -1186,7 +1171,6 @@ "https://github.com/tube42/candymem.git", "https://github.com/tukkek/javelin.git", "https://github.com/turulomio/glparchis.git", - "https://github.com/twisted/twisted.git", "https://github.com/ufo2000/ufo2000.git", "https://github.com/ufoai/ufoai.git", "https://github.com/undefined-darkness/open-horizon.git", @@ -1220,7 +1204,6 @@ "https://github.com/w84death/Tanks-of-Freedom.git", "https://github.com/watabou/PD-classes.git", "https://github.com/watabou/pixel-dungeon.git", - "https://github.com/weidai11/cryptopp.git", "https://github.com/wesleywerner/nova-pinball-engine.git", "https://github.com/wesleywerner/nova-pinball.git", "https://github.com/wesnoth/wesnoth.git", @@ -1231,8 +1214,6 @@ "https://github.com/worldforge/cyphesis.git", "https://github.com/worldforge/ember.git", "https://github.com/wsdfhjxc/taponium.git", - "https://github.com/wxWidgets/Phoenix.git", - "https://github.com/wxWidgets/wxWidgets.git", "https://github.com/xLAva/JediAcademyLinux.git", "https://github.com/xLAva/JediOutcastLinux.git", "https://github.com/xenris/liquid-wars-android.git", @@ -1517,8 +1498,6 @@ "https://gitlab.com/xonotic/xonotic.git", "https://gitlab.gnome.org/GNOME/gnome-chess.git", "https://gitlab.gnome.org/GNOME/gnome-mines.git", - "https://gitlab.gnome.org/GNOME/gtk.git", - "https://gitlab.gnome.org/GNOME/libxml2.git", "https://gitlab.gnome.org/GNOME/quadrapassel.git", "https://invent.kde.org/education/gcompris.git", "https://invent.kde.org/games/granatier.git", @@ -1528,7 +1507,6 @@ "https://invent.kde.org/games/ksnakeduel.git", "https://invent.kde.org/games/palapeli.git", "https://repo.or.cz/intricacy.git", - "https://repo.or.cz/openal-soft.git", "https://repo.or.cz/pachi.git", "https://repo.or.cz/tennix.git", "https://salsa.debian.org/games-team/bloboats.git", diff --git a/code/backlog.txt b/code/backlog.txt index d35b115e..a7bba195 100644 --- a/code/backlog.txt +++ b/code/backlog.txt @@ -1,21 +1,8 @@ -http://svn.assembla.com/svn/gdpl/ -http://www.dianneandpaul.net/CSBwin/ -http://www.happypenguin.org/show?XKobo (offline) -http://www.ifwiki.org/index.php/Main_Page -http://www.layabox.com/en/ -http://www.lesfleursdunormal.fr/static/informatique/old/index_en.html -http://www.linuxdevcenter.com/pub/a/linux/2003/04/24/exult.html -http://www.myandroidonline.com/category/games/ -http://www.netgore.com/ -http://www.oletus.fi/games/ -http://www.paulscode.com/games/ -http://www.ph2.net/zugspiel/ http://www.plasmapong.com/plasma-pong/plasma-pong/ http://www.rpgtoolkit.net/ http://www.rtsoft.com/novashell/ http://www.sandboxgamemaker.com/ http://www.scirra.com/construct-classic -http://www.siedler25.org/index.php?com=dynamic&mod=1&lang=en&PHPSESSID=0hmj4aug1fqa80jbk15kcafh71 http://www.silversecond.com/WolfRPGEditor/ http://www.spheredev.org/ http://www.surfline.ne.jp/hachi/xsoldier.html @@ -50,17 +37,12 @@ https://futurepinball.com/ https://gdevelop-app.com/ https://github.blog/2014-01-06-github-game-off-ii-winners/ https://github.blog/2021-05-19-ludum-dare-48-staff-picks/ -https://github.com/asc-community/MxEngine -https://github.com/tgstation/tgstation -https://gitorious.org/index-list.html (are there other interesting games) -https://jcrpg.blogspot.de/ https://libregamewiki.org/Alexei:_Part_IX https://libregamewiki.org/CameliaGirls https://libregamewiki.org/Childish_Cannoneer https://libregamewiki.org/index.php?title=Libregamewiki_talk:Community_Portal&oldid=25410#Some_long_term_ideas https://libregamewiki.org/Libregamewiki:Suggested_games#Likely_sources_for_more_free_games https://lichess.org/api -https://moaiwebsite.github.io/ https://odr.chalmers.se/handle/20.500.12380/219006 https://osdn.net/softwaremap/trove_list.php?form_cat=80 https://pipoypipagames.itch.io/cows-revenge (https://github.com/Dariasteam/Cows-Revenge) diff --git a/code/backlog_enhanced.txt b/code/backlog_enhanced.txt index a9550e65..83814595 100644 --- a/code/backlog_enhanced.txt +++ b/code/backlog_enhanced.txt @@ -7,6 +7,8 @@ https://empiredirectory.net/index.php/downloads/viewdownload/6-server-software/1 http://www.divgo.net/ (in spanish difficult to detect sources) https://github.com/neuromancer/re-private-eye.git (moved to scummvm) and is part of scummvm http://www.hard-light.net/ (Free Space Open, Knossos, Mods, https://github.com/scp-fs2open/fs2open.github.com, https://wiki.hard-light.net/index.php/Getting_started) +http://svn.assembla.com/svn/gdpl/ (not sure what links there and what kind of game it is, license?) +https://web.archive.org/web/20161230103538/http://www.linuxdevcenter.com/pub/a/linux/2003/04/24/exult.html roguelike @@ -90,6 +92,11 @@ https://blends.debian.org/games/tasks/ https://blends.debian.org/games/tasks/racing http://www.goldenstudios.or.id/products/games/index.php http://www.goldenstudios.or.id/products/GTGE/ +https://gitorious.org/index-list.html (are there other interesting games) +http://www.dianneandpaul.net/CSBwin/ +http://www.lesfleursdunormal.fr/static/informatique/old/index_en.html +http://www.oletus.fi/games/ +http://www.paulscode.com/games/ github collections @@ -116,6 +123,10 @@ https://en.wikipedia.org/wiki/MUD_client (all there) special https://alternativeto.net/ (query with only open source as option) +http://www.happypenguin.org (linux game tomb) +https://web.archive.org/web/20121010121342/http://www.happypenguin.org/list?sort=title +https://www.ifwiki.org/index.php/Main_Page (is there software contained or contents with CC license maybe that could be converted...) +https://web.archive.org/web/20161215063433/http://www.linuxdevcenter.com/topics/linux/games github topics diff --git a/code/conversions/aatraders.json b/code/custom-conversions/aatraders.json similarity index 100% rename from code/conversions/aatraders.json rename to code/custom-conversions/aatraders.json diff --git a/code/conversions/aatraders_source_release_to_git.py b/code/custom-conversions/aatraders_source_release_to_git.py similarity index 100% rename from code/conversions/aatraders_source_release_to_git.py rename to code/custom-conversions/aatraders_source_release_to_git.py diff --git a/code/conversions/dfend_reloaded_source_releases_to_git.py b/code/custom-conversions/dfend_reloaded_source_releases_to_git.py similarity index 100% rename from code/conversions/dfend_reloaded_source_releases_to_git.py rename to code/custom-conversions/dfend_reloaded_source_releases_to_git.py diff --git a/code/conversions/dungeon_crawl_source_releases_to_git.py b/code/custom-conversions/dungeon_crawl_source_releases_to_git.py similarity index 100% rename from code/conversions/dungeon_crawl_source_releases_to_git.py rename to code/custom-conversions/dungeon_crawl_source_releases_to_git.py diff --git a/code/conversions/lechemindeladam_svn_to_git.py b/code/custom-conversions/lechemindeladam_svn_to_git.py similarity index 100% rename from code/conversions/lechemindeladam_svn_to_git.py rename to code/custom-conversions/lechemindeladam_svn_to_git.py diff --git a/code/conversions/phaos.json b/code/custom-conversions/phaos.json similarity index 100% rename from code/conversions/phaos.json rename to code/custom-conversions/phaos.json diff --git a/code/conversions/phaos_source_release_to_git.py b/code/custom-conversions/phaos_source_release_to_git.py similarity index 100% rename from code/conversions/phaos_source_release_to_git.py rename to code/custom-conversions/phaos_source_release_to_git.py diff --git a/code/github_entries.txt b/code/github_entries.txt new file mode 100644 index 00000000..d88af415 --- /dev/null +++ b/code/github_entries.txt @@ -0,0 +1,3 @@ +[ + "zztgo.md" +] \ No newline at end of file diff --git a/code/github_import.py b/code/github_import.py index edbfd7ac..cae2e973 100644 --- a/code/github_import.py +++ b/code/github_import.py @@ -1,26 +1,39 @@ """ Uses the Github API to learn more about the Github projects. + +Updates for example, the starring information. """ +# TODO remove Boost C++ developers and others libraries that aren't that interesting +# TODO remove developers again? +# TODo try to identify main developers (number of commits or change of lines...) + import os import json from utils import constants as c, utils, osg, osg_parse, osg_github gh_entries_file = os.path.join(c.code_path, 'github_entries.txt') prefix = 'https://github.com/' +MINIMAL_CONTRIBUTIONS = 5 -blog_alias = {'http://k776.tumblr.com/': 'https://k776.tumblr.com/', 'http://timpetricola.com': 'https://timpetricola.com', - 'http:/code.schwitzer.ca': 'https://code.schwitzer.ca/', 'http:\\www.vampier.net': 'https://www.vampier.net/'} +blog_alias = {'http://k776.tumblr.com/': 'https://k776.tumblr.com/', + 'http://timpetricola.com': 'https://timpetricola.com', + 'http:/code.schwitzer.ca': 'https://code.schwitzer.ca/', + 'http:\\www.vampier.net': 'https://www.vampier.net/'} ignored_blogs = ('https://uto.io',) ignored_languages = ('CSS', 'HTML', 'CMake', 'XSLT', 'ShaderLab') -language_aliases = {'VBA': 'Visual Basic', 'Common Lisp': 'Lisp', 'Game Maker Language': 'Game Maker Script', 'NewLisp': 'Lisp'} +language_aliases = {'VBA': 'Visual Basic', 'Common Lisp': 'Lisp', 'Game Maker Language': 'Game Maker Script', + 'NewLisp': 'Lisp', 'Awk': 'AWK', 'Visual Basic': 'Basic', 'FreeBasic': 'Basic'} -ignored_repos = ('https://github.com/jtc0de/Blitwizard.git','https://github.com/IceReaper/KKnD.git', - 'https://github.com/KaidemonLP/Open-Fortress-Source.git', 'https://github.com/danielcrenna/TrueCraft.git') +# these gave some errors (but you may try them again or remove them from this list) +ignored_repos = ('https://github.com/jtc0de/Blitwizard.git', + 'https://github.com/KaidemonLP/Open-Fortress-Source.git', + 'https://github.com/danielcrenna/TrueCraft.git') name_aliases = {'Andreas Rosdal': 'Andreas Røsdal', 'davefancella': 'Dave Fancella', 'himiloshpetrov': 'Milosh Petrov', - 'Jeremy Monin': 'Jeremy D. Monin', 'lennertclaeys': 'Lennert Claeys', 'malignantmanor': 'Malignant Manor', + 'Jeremy Monin': 'Jeremy D. Monin', 'lennertclaeys': 'Lennert Claeys', + 'malignantmanor': 'Malignant Manor', 'turulomio': 'Turulomio', '_Shaman': 'Shaman', 'alexandreSalconiDenis': 'Alexandre Salconi-Denis', 'buginator': 'Buginator', 'CiprianKhlud': 'Ciprian Khlud', 'dericpage': 'Deric Page', 'DI Murat Sari': 'Murat Sari', 'DolceTriade': 'Dolce Triade', 'DreamingPsion': 'Dreaming Psion', @@ -30,7 +43,8 @@ name_aliases = {'Andreas Rosdal': 'Andreas Røsdal', 'davefancella': 'Dave Fance def collect_github_entries(): """ - Reads the entries of the database and collects all entries with github as repository + Reads the entries of the database and collects all entries with a Github repository. Just for convenience to limit + the number of entries to iterate on later. """ # read entries @@ -51,8 +65,7 @@ def collect_github_entries(): def github_import(): """ - - :return: + Import various information from Github repositories (like contributors) or stars for Github repos """ private_properties = json.loads(utils.read_text(c.private_properties_file)) @@ -65,7 +78,7 @@ def github_import(): try: # loop over each entry for index, file in enumerate(files): - print(' process {}'.format(file)) + print(' process {} ({})'.format(file, index)) # read entry entry = osg.read_entry(file) @@ -84,9 +97,10 @@ def github_import(): # is archived if info['archived']: if not osg.is_inactive(entry): - print('warning: repo is archived but not inactive state??') + print('warning: repo is archived but not inactive state, check state') # add archive to repo comment new_comments.append('@archived') + # TODO check for repos that aren't archived anymore but are marked as such # add created comment new_comments.append('@created {}'.format(info['created'].year)) @@ -105,7 +119,7 @@ def github_import(): if comments: comments = comments.split(',') comments = [c.strip() for c in comments] - comments = [c for c in comments if not c.startswith('@')] # delete old ones + comments = [c for c in comments if not c.startswith('@')] # delete old ones comments += new_comments else: comments = new_comments @@ -122,13 +136,14 @@ def github_import(): for contributor in info['contributors']: if contributor.type != 'User': continue - if contributor.contributions < 4: + if contributor.contributions < MINIMAL_CONTRIBUTIONS: continue # contributor.login/name/blog name = contributor.name if not name: name = contributor.login name = name_aliases.get(name, name) + name = name.strip() # sometimes they have trailing spaces (for whatever reason) nickname = '{}@GH'.format(contributor.login) blog = contributor.blog if blog: @@ -154,14 +169,14 @@ def github_import(): dev['Contact'] = dev.get('Contact', []) + [nickname] if blog and blog not in dev.get('Home', []): dev['Home'] = dev.get('Home', []) + [blog] - # TODO add to games entries! + if entry['Title'] not in dev['Games']: + dev['Games'].append(entry['Title']) else: print(' dev "{}" ({}) added to developer database'.format(name, nickname)) all_developers[name] = {'Name': name, 'Contact': [nickname], 'Games': [entry['Title']]} if blog: all_developers[name]['Home'] = [blog] - entry['Code repository'] = code_repositories osg.write_entry(entry) except: @@ -176,8 +191,7 @@ def github_import(): def github_starring_synchronization(): """ - - :return: + Which Github repositories haven't I starred yet. """ private_properties = json.loads(utils.read_text(c.private_properties_file)) @@ -186,7 +200,6 @@ def github_starring_synchronization(): # loop over each entry and collect list of repos all_repos = [] for index, file in enumerate(files): - # read entry entry = osg.read_entry(file) @@ -216,14 +229,12 @@ def github_starring_synchronization(): print(', '.join(unstarred)) - if __name__ == "__main__": - - # collect entries + # collect entries (run this only once) # collect_github_entries() # import information from gh - # github_import() + github_import() # which github repos haven't I starred - github_starring_synchronization() + # github_starring_synchronization() diff --git a/code/is_already_included.py b/code/helpers/is_already_included.py similarity index 100% rename from code/is_already_included.py rename to code/helpers/is_already_included.py diff --git a/code/list_python_external_imports.py b/code/helpers/list_python_external_imports.py similarity index 100% rename from code/list_python_external_imports.py rename to code/helpers/list_python_external_imports.py diff --git a/code/html/base.jinja b/code/html/base.jinja index 5d304767..360e23f2 100644 --- a/code/html/base.jinja +++ b/code/html/base.jinja @@ -13,9 +13,17 @@
{#- navigation bar -#}