Skip to content
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

Verify if required files are in /dist/ and removed pathlib dependency #24

Merged
merged 7 commits into from
Jul 8, 2023

Conversation

Wolfmyths
Copy link
Contributor

I saw these as TODO so I thought I would give them a shot.

Related to #9

  • Added a checker for the files required to run setup.py
  • Moved source variable from line 72 to line 29 as it is needed there first
  • Removed pathlib dependency with os.path

@ThiaudioTT ThiaudioTT self-requested a review June 27, 2023 19:33
@ThiaudioTT
Copy link
Owner

ThiaudioTT commented Jun 27, 2023

Thank you for opening the PR. I will test and review it when possible

@ThiaudioTT ThiaudioTT added QA We need to test it enhancement New feature or request labels Jun 27, 2023
src/setup.py Outdated Show resolved Hide resolved
@ThiaudioTT ThiaudioTT self-requested a review July 3, 2023 23:10
Copy link
Owner

@ThiaudioTT ThiaudioTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Change the things that I noted and I will test and merge it

src/setup.py Outdated Show resolved Hide resolved
src/setup.py Outdated Show resolved Hide resolved
@ThiaudioTT
Copy link
Owner

Also update version.json in the root folder, this is an enhancement. So update to v0.3.0

@ThiaudioTT
Copy link
Owner

I created a page that can help:

https://github.com/ThiaudioTT/hoi4-presence/wiki/Folder-structure

Wolfmyths added 2 commits July 3, 2023 23:07
Now checks if runRPC.bat is valid

Added variable for the batch folder path

Added exception handling for not being able to find the batch folder

Made os.listdir(source) in a with statement so it wasn't called more than once within the for loop

Made exceptions easier to read

Updated version.json to 0.3.0
@ThiaudioTT ThiaudioTT self-requested a review July 4, 2023 12:49
Copy link
Owner

@ThiaudioTT ThiaudioTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I will test when time becomes available

src/discordRPC/version.json Outdated Show resolved Hide resolved
Changed runRPC.bat to be in src\discordRPC and updated code in setup.py

Removed \batch\ and updated code in setup.py

Updated path in runRPC.bat line 5 to not depend on the .bat's file location

Reverted changes to src\version.json and applied them to the correct version.json
@ThiaudioTT ThiaudioTT self-requested a review July 4, 2023 16:56
Copy link
Owner

@ThiaudioTT ThiaudioTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am getting an error, and it wasn't possible to test further.

src/discordRPC/runRPC.bat Outdated Show resolved Hide resolved
src/setup.py Outdated Show resolved Hide resolved
Reverted changes to runRPC.bat from prev commit

Removed with statement in setup.py

Made else exception easier to signify that's there's an error by adding an "Error:" prefix
@ThiaudioTT ThiaudioTT self-requested a review July 8, 2023 19:43
Copy link
Owner

@ThiaudioTT ThiaudioTT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ThiaudioTT ThiaudioTT merged commit 2a4a14f into ThiaudioTT:main Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request QA We need to test it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants