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

Python 2.7 and 3.7 compatibility #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Python 2.7 and 3.7 compatibility #18

wants to merge 3 commits into from

Conversation

kgaughan
Copy link

@kgaughan kgaughan commented Mar 2, 2019

(I'm pulling my previous #17 into this PR, which fixes up setup.py.)

This PR adds a small compatibility layer to gitosis that allows it to run on both Python 2.7 and Python 3 (though I've only tested it with 3.7 so far), along with porting the code to use that layer, and to use syntax that works on both Python 2.7 and Python 3.

Additionally, I took advantage of a few things, such as using the file object returned by open() as a context manager to simplify and clean-up some of the file-handling code, and removed the test for the standard templates, as more modern versions of git don't install these by default.

I threw in a tox configuration file to aid with running the test suite.

@@ -18,7 +18,7 @@ def subdir_contents(path):

setup(
name = "gitosis",
version = "0.2",
version = "0.3",
Copy link
Author

@kgaughan kgaughan May 28, 2020

Choose a reason for hiding this comment

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

This fixes #17 #13.

@boussou
Copy link

boussou commented Oct 3, 2022

is this project still maintained?

@kgaughan
Copy link
Author

kgaughan commented Oct 7, 2022

I think it's safe to say it isn't, sadly.

@boussou
Copy link

boussou commented Oct 7, 2022

True.
For people reading here, I moved to Gitolite (written in perl)

@kgaughan
Copy link
Author

I've been considering forking the project completely, but I'd like to get @tv42's blessing first. Just haven't had the time.

@tv42
Copy link
Owner

tv42 commented Jan 19, 2023

@kgaughan You are welcome to fork and maintain a more up-to-date version, but please use a different name.

I have a slow-burn desire to write a Gitosis v2, with lessons learned in the intervening years.

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.

3 participants