Skip to content

Commit

Permalink
fix git clone time out problem
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 9, 2024
1 parent 1687b0d commit f4196b9
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
Change log
================================================================================

0.0.4 - 10.11.2024
0.0.5 - 09.11.2024
--------------------------------------------------------------------------------

**Added**

#. `#12 <https://github.com/moremoban/gitfs2/issues/12>`_:fix github protocol
timeout problem

0.0.4 - 11.10.2024
--------------------------------------------------------------------------------

**Added**
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Get a file inside a python package
>>> import fs
>>> git_fs = fs.open_fs("git://github.com/moremobans/pypi-mobans.git!/templates")
>>> git_fs.readtext("_version.py.jj2")
'__version__ = "0.0.4"\n__author__ = "C.W."\n'
'__version__ = "0.0.5"\n__author__ = "C.W."\n'
Get from a different branch
Expand All @@ -52,7 +52,7 @@ Get from a different branch
>>> import fs
>>> git_fs = fs.open_fs("git://github.com/moremobans/pypi-mobans.git?branch=master!/templates")
>>> git_fs.read("_version.py.jj2")
'__version__ = "0.0.4"\n__author__ = "C.W."\n'
'__version__ = "0.0.5"\n__author__ = "C.W."\n'
Checkout submodules recursively
Expand Down
8 changes: 7 additions & 1 deletion changelog.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: gitfs2
organisation: moremoban
releases:
- changes:
- action: Added
details:
- "`#12`:fix github protocol timeout problem"
version: 0.0.5
date: 09.11.2024
- changes:
- action: Added
details:
- "`#12`:fix github protocol timeout problem"
version: 0.0.4
date: 10.11.2024
date: 11.10.2024
- changes:
- action: Added
details:
Expand Down
6 changes: 3 additions & 3 deletions gitfs2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ organisation: "moremoban"
author: "C.W."
contact: "[email protected]"
company: "moban dev team"
version: "0.0.4"
current_version: "0.0.4"
release: "0.0.4"
version: "0.0.5"
current_version: "0.0.5"
release: "0.0.5"
copyright_year: 2019
license: MIT
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion gitfs2/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.0.4"
__version__ = "0.0.5"
__author__ = "C.W."
2 changes: 1 addition & 1 deletion gitfs2/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GitRequire(object):
def __init__(
self, git_url=None, branch=None, submodule="False", reference=None
):
self.git_url = git_url.replace("git://", "ssh://git@")
self.git_url = git_url.replace("git://", "https://")
self.submodule = convert_submodule(submodule)
self.branch = branch
self.reference = reference
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

NAME = "gitfs2"
AUTHOR = "C.W."
VERSION = "0.0.4"
VERSION = "0.0.5"
EMAIL = "[email protected]"
LICENSE = "MIT"
ENTRY_POINTS = {
Expand All @@ -44,7 +44,7 @@
"Python file system 2 over GitPython"
)
URL = "https://github.com/moremoban/gitfs2"
DOWNLOAD_URL = "%s/archive/0.0.4.tar.gz" % URL
DOWNLOAD_URL = "%s/archive/0.0.5.tar.gz" % URL
FILES = ["README.rst", "CHANGELOG.rst"]
KEYWORDS = [
"python",
Expand Down Expand Up @@ -81,8 +81,8 @@
PUBLISH_COMMAND = "{0} setup.py sdist bdist_wheel upload -r pypi".format(sys.executable)
HERE = os.path.abspath(os.path.dirname(__file__))

GS_COMMAND = ("gease gitfs2 v0.0.4 " +
"Find 0.0.4 in changelog for more details")
GS_COMMAND = ("gease gitfs2 v0.0.5 " +
"Find 0.0.5 in changelog for more details")
NO_GS_MESSAGE = ("Automatic github release is disabled. " +
"Please install gease to enable it.")
UPLOAD_FAILED_MSG = (
Expand Down

0 comments on commit f4196b9

Please sign in to comment.