Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-wilson committed Feb 1, 2021
1 parent a9d4aaa commit 7d6418d
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/homebrew/Sailboat.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Created with sailboat, the Python releaser

# v0.24.5-rc.2
# v0.24.6

class Sailboat < Formula
include Language::Python::Virtualenv
Expand Down
Binary file removed dist/pypi/sailboat-0.24.5rc2.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/pypi/sailboat-0.24.6.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion sailboat.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: sailboat
Version: 0.24.5rc2
Version: 0.24.6
Summary: A quick and easy way to distribute your Python projects!
Home-page: https://github.com/cole-wilson/sailboat
Author: Cole Wilson
Expand Down
1 change: 1 addition & 0 deletions sailboat.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pypi = sailboat.builders:PyPi
quickstart = sailboat.core:QuickStart
release = sailboat.core:Release
remove = sailboat.core:Remove
setcodeversion = sailboat.other:SetVersion
tasks = sailboat.other:Tasks
wizard = sailboat.core:Wizard
workflow = sailboat.core:Actions
Expand Down
7 changes: 5 additions & 2 deletions sailboat.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ description = ""
url = "https://github.com/cole-wilson/sailboat"
keywords = ""
license = "MIT"
latest_build = "0.24.5-rc.2"
latest_build = "0.24.6"
author = "Cole Wilson"
latest_release = "0.24.5-rc.1"
latest_release = "0.24.5-rc.2"
release-notes = "a"


Expand Down Expand Up @@ -45,6 +45,8 @@ bundle_id = "xyz.colewilson.sailboat"

[build.build_docs_readme]

[build.setcodeversion]

[build.pypi.commands]
sail = "__main__.main"
sailboat = "__main__.main"
Expand All @@ -67,6 +69,7 @@ workflow = "sailboat.core:Actions"
github = "sailboat.core:Git"
github_release = "sailboat.core:GithubRelease"
build_docs_readme = "sailboat.other:BuildDocs"
setcodeversion = "sailboat.other:SetVersion"


# Release Routines:
Expand Down
3 changes: 2 additions & 1 deletion sailboat/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# This file must exist, empty or not
# Added by Sailboat:
__version__ = "0.24.5-rc.5"
3 changes: 3 additions & 0 deletions sailboat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ def main():
# =============================================================================
plugins = json.loads(open(prefix+'plugins.json').read())

if 'v' in switches or 'version' in switches:
print('Sailboat version {}\n\nHelp:\ncontact [email protected]'.format(sailboat.__version__))
sys.exit(0)
if 'refresh' in switches or 'r' in switches or plugins=={} or (len(plugins.keys())!=4):
plugins = refreshEntries()
print('reloaded plugins')
Expand Down
Binary file modified sailboat/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file modified sailboat/__pycache__/__main__.cpython-38.pyc
Binary file not shown.
Binary file modified sailboat/__pycache__/other.cpython-38.pyc
Binary file not shown.
18 changes: 17 additions & 1 deletion sailboat/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,23 @@
"""

class SetVersion(Plugin):
_type = "build"
_show = False
def run(self):
try:
file = open(self.data['short_name'] + os.sep + '__init__.py')
data = file.read()
file.close()
if "__version__" in data:
data = re.sub("^__version__.*",'# Added by Sailboat:\n__version__ = "{}"\n'.format(self.version),data)
else:
data = "# Added by Sailboat:\n__version__ = \"{}\"\n".format(self.version) + data
file = open(self.data['short_name'] + os.sep + '__init__.py','w+')
file.write(data)
file.close()
except:
pass
class BuildDocs(Plugin):
_type = "build"
_show = False
Expand Down
11 changes: 10 additions & 1 deletion sailboat/plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
"release": true,
"show": true,
"type": "build"
},
"setcodeversion": {
"default_os": "linux",
"description": "<no description provided>",
"dist": "sailboat",
"order": 0,
"release": false,
"show": false,
"type": "build"
}
},
"command": {
Expand Down Expand Up @@ -132,7 +141,7 @@
},
"wizard": {
"default_os": "linux",
"description": "configure you project or a plugin.",
"description": "configure your project or a plugin.",
"dist": "sailboat",
"order": 0,
"release": false,
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

options = {
"name":"sailboat",
"version":"0.24.5-rc.2",
"version":"0.24.6",
"scripts":[],
"entry_points":{'console_scripts': ['sail=sailboat.__main__:main', 'sailboat=sailboat.__main__:main'], 'sailboat_plugins': ['quickstart=sailboat.core:QuickStart', 'pypi=sailboat.builders:PyPi', 'homebrew=sailboat.builders:Homebrew', 'pyinstaller=sailboat.builders:PyInstaller', 'dev=sailboat.core:Develop', 'release=sailboat.core:Release', 'build=sailboat.build:Build', 'wizard=sailboat.core:Wizard', 'remove=sailboat.core:Remove', 'add=sailboat.core:Add', 'plugins=sailboat.core:ManagePlugins', 'git=sailboat.core:Git', 'tasks=sailboat.other:Tasks', 'workflow=sailboat.core:Actions', 'github=sailboat.core:Git', 'github_release=sailboat.core:GithubRelease', 'build_docs_readme=sailboat.other:BuildDocs']},
"entry_points":{'console_scripts': ['sail=sailboat.__main__:main', 'sailboat=sailboat.__main__:main'], 'sailboat_plugins': ['quickstart=sailboat.core:QuickStart', 'pypi=sailboat.builders:PyPi', 'homebrew=sailboat.builders:Homebrew', 'pyinstaller=sailboat.builders:PyInstaller', 'dev=sailboat.core:Develop', 'release=sailboat.core:Release', 'build=sailboat.build:Build', 'wizard=sailboat.core:Wizard', 'remove=sailboat.core:Remove', 'add=sailboat.core:Add', 'plugins=sailboat.core:ManagePlugins', 'git=sailboat.core:Git', 'tasks=sailboat.other:Tasks', 'workflow=sailboat.core:Actions', 'github=sailboat.core:Git', 'github_release=sailboat.core:GithubRelease', 'build_docs_readme=sailboat.other:BuildDocs', 'setcodeversion=sailboat.other:SetVersion']},
"author":"Cole Wilson",
"author_email":"[email protected]",
"description":"A quick and easy way to distribute your Python projects!",
Expand Down

0 comments on commit 7d6418d

Please sign in to comment.