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

Remove MySQLdb/release.py from git #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

msabramo
Copy link
Contributor

because it's generated from metadata.cfg

and because I keep getting annoying diffs because of newline differences
-- e.g.:

$ git diff
diff --git a/MySQLdb/release.py b/MySQLdb/release.py
index 5c30a6c..4ce9412 100644
--- a/MySQLdb/release.py
+++ b/MySQLdb/release.py
@@ -1,4 +1,4 @@
-
-__author__ = "Andy Dustman <[email protected]>"
-version_info = (1,2,4,'final',1)
-__version__ = "1.2.4"
+
+__author__ = "Andy Dustman <[email protected]>"
+version_info = (1,2,4,'final',1)
+__version__ = "1.2.4"

Cc: @Haypo, @okin, @methane

@msabramo
Copy link
Contributor Author

@farcepest: What do you think?

@okin
Copy link

okin commented Apr 17, 2014

@msabramo just removing it will still get you new files of it. I'd prefer to fix the problem (probably newlines and/or whitespace). Quick fix would be putting the file into the .gitignore.

@msabramo
Copy link
Contributor Author

@okin: The reason for the diff is the checked in version has Windows line endings. I happen to use OS X and Linux.

Could change the line endings of the file but then Windows users would have problems.

I think it makes sense to remove the file since it's generated -- e.g.: like .pyc or .o files.

I guess I should add it to .gitignore though.

because it's generated from metadata.cfg

and because I keep getting annoying diffs because of newline differences
-- e.g.:

    $ git diff
    diff --git a/MySQLdb/release.py b/MySQLdb/release.py
    index 5c30a6c..4ce9412 100644
    --- a/MySQLdb/release.py
    +++ b/MySQLdb/release.py
    @@ -1,4 +1,4 @@
    -
    -__author__ = "Andy Dustman <[email protected]>"
    -version_info = (1,2,4,'final',1)
    -__version__ = "1.2.4"
    +
    +__author__ = "Andy Dustman <[email protected]>"
    +version_info = (1,2,4,'final',1)
    +__version__ = "1.2.4"
@msabramo
Copy link
Contributor Author

OK, added MySQLdb/release.py to .gitignore now.

@msabramo
Copy link
Contributor Author

Ping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants