-
Notifications
You must be signed in to change notification settings - Fork 1
Refactor file structure #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
59adc31
remove gitignored files
lishaduck 154474e
add gitignore
lishaduck 9b612c9
delete data files
lishaduck 00a42fb
feat(github): add dependabot.yml
lishaduck e7e1732
feat(poetry): initialize poetry
lishaduck da83178
switch readme.txt -> readme.md
lishaduck 01577d9
move game to bipolev folder
lishaduck 7446182
add black and isort
lishaduck be8ae70
reformat files
lishaduck 25373f7
add docstring to init
lishaduck 3c8ccb5
fix: imports
lishaduck 765c379
fix: add some typing to remove unsafe defaults
lishaduck ae47ef1
fix: add encoding to 'open's
lishaduck 85ad233
fix: current version in pyproject.toml
lishaduck 74f4732
feat(ci/cd): create a release workflow
lishaduck e8bdac8
update gitignore
lishaduck 3bd6e18
refactor: bipoleV/ -> bipole5/
lishaduck 4ba99c4
format the toml
lishaduck b9b3e1c
fix: current_directory, version on start page
lishaduck 97a07ca
feat: add back saving
lishaduck e28fc26
fix: fix the gitignore again
lishaduck 7e515cd
docs: update readme
lishaduck e1e90a2
Update minimum python version
lishaduck 85e7f30
add auto-py-to-exe
lishaduck 7730a1f
update publish.yml
lishaduck 9a24487
Update publish.yml
lishaduck 022b787
feat: use pyinstaller, not auto-py-to-exe
lishaduck c2ec59f
fix: move save files
lishaduck 3163503
fix: remove deprecated image tools
lishaduck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "pip" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| schedule: | ||
| interval: "daily" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: "What type of bump?" | ||
| required: true | ||
| type: choice | ||
| options: | ||
| - patch | ||
| - minor | ||
| - major | ||
| - prepatch | ||
| - preminor | ||
| - premajor | ||
| - prerelease | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test on ${{ matrix.python-version }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
| steps: | ||
| - uses: actions/checkout@v3.2.0 | ||
| with: | ||
| submodules: true | ||
| - name: Install poetry | ||
| run: pipx install poetry==1.3.1 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: "poetry" | ||
| - name: Install dependencies | ||
| run: poetry install | ||
| - name: Test with pytest | ||
| run: poetry run pytest | ||
|
|
||
| bump: | ||
| name: Bump | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
| steps: | ||
| - uses: actions/checkout@v3.2.0 | ||
| with: | ||
| submodules: true | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Bump version | ||
| run: poetry version ${{ github.inputs.version }} | ||
| - name: Build | ||
| run: pyinstaller --noconfirm --onedir --console "./bipole5/BipoleV.py" | ||
| - name: Upload release artifact | ||
| uses: actions/upload-artifact@v3.1.1 | ||
| with: | ||
| # Artifact name | ||
| name: Build Directory | ||
| path: output/ | ||
| if-no-files-found: warn | ||
| # Duration after which artifact will expire in days. 0 means using default retention. | ||
| # Minimum 1 day. Maximum 90 days unless changed from the repository settings page. | ||
| retention-days: 7 | ||
|
|
||
| # making a release, and tagging the build output must be done manually |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,312 @@ | ||||||||||
| # THESE SHOULD BE IGNORED, BUT ARE NOT YET, DUE TO LACK OF PROPER GENERATION AT STARTUP | ||||||||||
| #save.dat | ||||||||||
| #autosave.dat | ||||||||||
|
Comment on lines
+2
to
+3
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
|
||||||||||
| output/ | ||||||||||
|
|
||||||||||
| # Byte-compiled / optimized / DLL files | ||||||||||
| __pycache__/ | ||||||||||
| *.py[cod] | ||||||||||
| *$py.class | ||||||||||
|
|
||||||||||
| # C extensions | ||||||||||
| *.so | ||||||||||
|
|
||||||||||
| # Distribution / packaging | ||||||||||
| .Python | ||||||||||
| build/ | ||||||||||
| develop-eggs/ | ||||||||||
| dist/ | ||||||||||
| downloads/ | ||||||||||
| eggs/ | ||||||||||
| .eggs/ | ||||||||||
| lib/ | ||||||||||
| lib64/ | ||||||||||
| parts/ | ||||||||||
| sdist/ | ||||||||||
| var/ | ||||||||||
| wheels/ | ||||||||||
| share/python-wheels/ | ||||||||||
| *.egg-info/ | ||||||||||
| .installed.cfg | ||||||||||
| *.egg | ||||||||||
| MANIFEST | ||||||||||
|
|
||||||||||
| # PyInstaller | ||||||||||
| # Usually these files are written by a python script from a template | ||||||||||
| # before PyInstaller builds the exe, so as to inject date/other infos into it. | ||||||||||
| *.manifest | ||||||||||
| *.spec | ||||||||||
|
|
||||||||||
| # Installer logs | ||||||||||
| pip-log.txt | ||||||||||
| pip-delete-this-directory.txt | ||||||||||
|
|
||||||||||
| # Unit test / coverage reports | ||||||||||
| htmlcov/ | ||||||||||
| .tox/ | ||||||||||
| .nox/ | ||||||||||
| .coverage | ||||||||||
| .coverage.* | ||||||||||
| .cache | ||||||||||
| nosetests.xml | ||||||||||
| coverage.xml | ||||||||||
| *.cover | ||||||||||
| *.py,cover | ||||||||||
| .hypothesis/ | ||||||||||
| .pytest_cache/ | ||||||||||
| cover/ | ||||||||||
|
|
||||||||||
| # Translations | ||||||||||
| *.mo | ||||||||||
| *.pot | ||||||||||
|
|
||||||||||
| # Django stuff: | ||||||||||
| *.log | ||||||||||
| local_settings.py | ||||||||||
| db.sqlite3 | ||||||||||
| db.sqlite3-journal | ||||||||||
|
|
||||||||||
| # Flask stuff: | ||||||||||
| instance/ | ||||||||||
| .webassets-cache | ||||||||||
|
|
||||||||||
| # Scrapy stuff: | ||||||||||
| .scrapy | ||||||||||
|
|
||||||||||
| # Sphinx documentation | ||||||||||
| docs/_build/ | ||||||||||
|
|
||||||||||
| # PyBuilder | ||||||||||
| .pybuilder/ | ||||||||||
| target/ | ||||||||||
|
|
||||||||||
| # Jupyter Notebook | ||||||||||
| .ipynb_checkpoints | ||||||||||
|
|
||||||||||
| # IPython | ||||||||||
| profile_default/ | ||||||||||
| ipython_config.py | ||||||||||
|
|
||||||||||
| # pyenv | ||||||||||
| # For a library or package, you might want to ignore these files since the code is | ||||||||||
| # intended to run in multiple environments; otherwise, check them in: | ||||||||||
| # .python-version | ||||||||||
|
|
||||||||||
| # pipenv | ||||||||||
| # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||||||||||
| # However, in case of collaboration, if having platform-specific dependencies or dependencies | ||||||||||
| # having no cross-platform support, pipenv may install dependencies that don't work, or not | ||||||||||
| # install all needed dependencies. | ||||||||||
| #Pipfile.lock | ||||||||||
|
|
||||||||||
| # poetry | ||||||||||
| # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. | ||||||||||
| # This is especially recommended for binary packages to ensure reproducibility, and is more | ||||||||||
| # commonly ignored for libraries. | ||||||||||
| # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control | ||||||||||
| #poetry.lock | ||||||||||
|
|
||||||||||
| # pdm | ||||||||||
| # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. | ||||||||||
| #pdm.lock | ||||||||||
| # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it | ||||||||||
| # in version control. | ||||||||||
| # https://pdm.fming.dev/#use-with-ide | ||||||||||
| .pdm.toml | ||||||||||
|
|
||||||||||
| # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||||||||||
| __pypackages__/ | ||||||||||
|
|
||||||||||
| # Celery stuff | ||||||||||
| celerybeat-schedule | ||||||||||
| celerybeat.pid | ||||||||||
|
|
||||||||||
| # SageMath parsed files | ||||||||||
| *.sage.py | ||||||||||
|
|
||||||||||
| # Environments | ||||||||||
| .env | ||||||||||
| .venv | ||||||||||
| env/ | ||||||||||
| venv/ | ||||||||||
| ENV/ | ||||||||||
| env.bak/ | ||||||||||
| venv.bak/ | ||||||||||
|
|
||||||||||
| # Spyder project settings | ||||||||||
| .spyderproject | ||||||||||
| .spyproject | ||||||||||
|
|
||||||||||
| # Rope project settings | ||||||||||
| .ropeproject | ||||||||||
|
|
||||||||||
| # mkdocs documentation | ||||||||||
| /site | ||||||||||
|
|
||||||||||
| # mypy | ||||||||||
| .mypy_cache/ | ||||||||||
| .dmypy.json | ||||||||||
| dmypy.json | ||||||||||
|
|
||||||||||
| # Pyre type checker | ||||||||||
| .pyre/ | ||||||||||
|
|
||||||||||
| # pytype static type analyzer | ||||||||||
| .pytype/ | ||||||||||
|
|
||||||||||
| # Cython debug symbols | ||||||||||
| cython_debug/ | ||||||||||
|
|
||||||||||
| # PyCharm | ||||||||||
| # JetBrains specific template is maintained in a separate JetBrains.gitignore that can | ||||||||||
| # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||||||||||
| # and can be added to the global gitignore or merged into this file. For a more nuclear | ||||||||||
| # option (not recommended) you can uncomment the following to ignore the entire idea folder. | ||||||||||
| #.idea/ | ||||||||||
|
|
||||||||||
| # Windows thumbnail cache files | ||||||||||
| Thumbs.db | ||||||||||
| Thumbs.db:encryptable | ||||||||||
| ehthumbs.db | ||||||||||
| ehthumbs_vista.db | ||||||||||
|
|
||||||||||
| # Dump file | ||||||||||
| *.stackdump | ||||||||||
|
|
||||||||||
| # Folder config file | ||||||||||
| [Dd]esktop.ini | ||||||||||
|
|
||||||||||
| # Recycle Bin used on file shares | ||||||||||
| $RECYCLE.BIN/ | ||||||||||
|
|
||||||||||
| # Windows Installer files | ||||||||||
| *.cab | ||||||||||
| *.msi | ||||||||||
| *.msix | ||||||||||
| *.msm | ||||||||||
| *.msp | ||||||||||
|
|
||||||||||
| # Windows shortcuts | ||||||||||
| *.lnk | ||||||||||
|
|
||||||||||
| # General | ||||||||||
| .DS_Store | ||||||||||
| .AppleDouble | ||||||||||
| .LSOverride | ||||||||||
|
|
||||||||||
| # Icon must end with two \r | ||||||||||
| Icon | ||||||||||
|
|
||||||||||
|
|
||||||||||
| # Thumbnails | ||||||||||
| ._* | ||||||||||
|
|
||||||||||
| # Files that might appear in the root of a volume | ||||||||||
| .DocumentRevisions-V100 | ||||||||||
| .fseventsd | ||||||||||
| .Spotlight-V100 | ||||||||||
| .TemporaryItems | ||||||||||
| .Trashes | ||||||||||
| .VolumeIcon.icns | ||||||||||
| .com.apple.timemachine.donotpresent | ||||||||||
|
|
||||||||||
| # Directories potentially created on remote AFP share | ||||||||||
| .AppleDB | ||||||||||
| .AppleDesktop | ||||||||||
| Network Trash Folder | ||||||||||
| Temporary Items | ||||||||||
| .apdisk | ||||||||||
|
|
||||||||||
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||||||||||
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||||||||||
|
|
||||||||||
| # User-specific stuff | ||||||||||
| .idea/**/workspace.xml | ||||||||||
| .idea/**/tasks.xml | ||||||||||
| .idea/**/usage.statistics.xml | ||||||||||
| .idea/**/dictionaries | ||||||||||
| .idea/**/shelf | ||||||||||
|
|
||||||||||
| # AWS User-specific | ||||||||||
| .idea/**/aws.xml | ||||||||||
|
|
||||||||||
| # Generated files | ||||||||||
| .idea/**/contentModel.xml | ||||||||||
|
|
||||||||||
| # Sensitive or high-churn files | ||||||||||
| .idea/**/dataSources/ | ||||||||||
| .idea/**/dataSources.ids | ||||||||||
| .idea/**/dataSources.local.xml | ||||||||||
| .idea/**/sqlDataSources.xml | ||||||||||
| .idea/**/dynamic.xml | ||||||||||
| .idea/**/uiDesigner.xml | ||||||||||
| .idea/**/dbnavigator.xml | ||||||||||
|
|
||||||||||
| # Gradle | ||||||||||
| .idea/**/gradle.xml | ||||||||||
| .idea/**/libraries | ||||||||||
|
|
||||||||||
| # Gradle and Maven with auto-import | ||||||||||
| # When using Gradle or Maven with auto-import, you should exclude module files, | ||||||||||
| # since they will be recreated, and may cause churn. Uncomment if using | ||||||||||
| # auto-import. | ||||||||||
| # .idea/artifacts | ||||||||||
| # .idea/compiler.xml | ||||||||||
| # .idea/jarRepositories.xml | ||||||||||
| # .idea/modules.xml | ||||||||||
| # .idea/*.iml | ||||||||||
| # .idea/modules | ||||||||||
| # *.iml | ||||||||||
| # *.ipr | ||||||||||
|
|
||||||||||
| # CMake | ||||||||||
| cmake-build-*/ | ||||||||||
|
|
||||||||||
| # Mongo Explorer plugin | ||||||||||
| .idea/**/mongoSettings.xml | ||||||||||
|
|
||||||||||
| # File-based project format | ||||||||||
| *.iws | ||||||||||
|
|
||||||||||
| # IntelliJ | ||||||||||
| out/ | ||||||||||
|
|
||||||||||
| # mpeltonen/sbt-idea plugin | ||||||||||
| .idea_modules/ | ||||||||||
|
|
||||||||||
| # JIRA plugin | ||||||||||
| atlassian-ide-plugin.xml | ||||||||||
|
|
||||||||||
| # Cursive Clojure plugin | ||||||||||
| .idea/replstate.xml | ||||||||||
|
|
||||||||||
| # SonarLint plugin | ||||||||||
| .idea/sonarlint/ | ||||||||||
|
|
||||||||||
| # Crashlytics plugin (for Android Studio and IntelliJ) | ||||||||||
| com_crashlytics_export_strings.xml | ||||||||||
| crashlytics.properties | ||||||||||
| crashlytics-build.properties | ||||||||||
| fabric.properties | ||||||||||
|
|
||||||||||
| # Editor-based Rest Client | ||||||||||
| .idea/httpRequests | ||||||||||
|
|
||||||||||
| # Android studio 3.1+ serialized cache file | ||||||||||
| .idea/caches/build_file_checksums.ser | ||||||||||
|
|
||||||||||
|
|
||||||||||
| .vscode/* | ||||||||||
| !.vscode/settings.json | ||||||||||
| !.vscode/tasks.json | ||||||||||
| !.vscode/launch.json | ||||||||||
| !.vscode/extensions.json | ||||||||||
| !.vscode/*.code-snippets | ||||||||||
| .vscode/ | ||||||||||
|
|
||||||||||
| # Local History for Visual Studio Code | ||||||||||
| .history/ | ||||||||||
|
|
||||||||||
| # Built Visual Studio Code Extensions | ||||||||||
| *.vsix | ||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checks for dep updates daily