-
Notifications
You must be signed in to change notification settings - Fork 80
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Recognizing macOS Platform #55
Comments
Hi @crisluengo, This is the sequence of commands I use to publish on GitHib. It would be kind of you, if you could help me find the problem, that cause the history deletion.
|
@piccolomo I think I recommend using one of the available GUI clients for git (e.g. GitKraken, which is free for public projects), which can preview the changes you're about to do to the remote branch (in this case what's kept on the cloud, vs what's kept locally). |
@piccolomo in short:
if you need to do |
I think it's worth trying to restore your commit history. It can help with tracking down bugs as well (contributors could use If possible, I'd suggest finding a friend or colleague who could help guide you through restoring the history. But I think this process should work assuming you have a copy of the pre-4.0 repo still on your computer (if you don't you could potentially grab one from one of the forked repos):
At this point you can copy any of your work in progress files into this new directory and continue working as you were before (hopefully not ever needing to use Note: I haven't tested this which is why I suggest getting someone who knows a bit more about git to look over your shoulder while you do this. |
@ethack If you look at the network (forks) chart, you'll see that this history deletion was done at multiple points in the history of the project, and so there are several disconnected master branches. I think the best way to reconstruct the history would be to cherry-pick commits in chronological order from various forks, resolve any conflicts and amend the time and author to the commits' original. Unfortunately, I don't know how to automate parts or all of this procedure (list all unique commits across all forks in chronological order, filter out those that were never merged to the main fork, cherry-pick/rebase/merge the remaining commits to a single linear branch such that all conflicts are resolved by taking the contents of the newer commit). |
Hi @crisluengo, I reply now to the original issue report. I should have sorted this in the newly updated 4.1.0 version, available on github and pypi. I have removed the Please let me know if the issue persists. Thanks also for the git hub guidance! P.S. @Dev-iL, @ethack If you are still up for restoring the GitHub history, I may need the exact terminal commands. Thanks and all the best, |
The code that determines the platform (in
_utility.platform.py
) doesn't work for macOS, and it doesn't work for most flavors of Unix:On macOS,
platform
is"darwin"
, which contains"win"
and therefore gets labeled "windows".I recommend rewriting that function to:
Since you only ever check this value for Windows, I see no benefit in making a distinction between flavors of Unix. If you do want to make that distinction, why not just return the value of
sys.platform
for Unix systems?Similarly, your function
_utility.platform.shell()
returns"cmd"
in any shell that is not Bash. On macOS, the new default is Zsh (which may people use on Linux too), and I'm sure there are people out there still using Csh and even Ksh. But it looks like this value is never actually used anywhere, so I guess it doesn't matter.I won't submit a pull request, because this repository seems to have erased all its history. If you want people to contribute code, you should not do that.
The text was updated successfully, but these errors were encountered: