-
Notifications
You must be signed in to change notification settings - Fork 14
Converted README.md to long_desc #70
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
Open
sroopsai
wants to merge
8
commits into
OpenRoberta:develop
Choose a base branch
from
sroopsai:develop
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c296a29
small cleanup
roop-sai b3b3b9a
changed 'is' comparison operator to '=='
roop-sai fb66801
Converted README.md to long_desc
roop-sai ad64232
Merge branch 'develop' of https://github.com/OpenRoberta/robertalab-e…
roop-sai 35bd7e0
Merge branch 'develop' of https://github.com/OpenRoberta/robertalab-e…
roop-sai 0585b2b
Converted README.md to long_description
roop-sai 38eedb6
Converted README.md to Long_description
roop-sai 7046991
Converted README.md to long_description
roop-sai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,27 +2,39 @@ | |
|
|
||
| import codecs | ||
| import os | ||
| from distutils.core import setup | ||
| from setuptools import setup | ||
| import pathlib | ||
|
|
||
| version = '?' | ||
| version = '1.7.4+1.0.0' | ||
| root = os.path.dirname(os.path.abspath(__file__)) | ||
| # Path to __version__ module | ||
| version_file = os.path.join(root, 'roberta', '__version__.py') | ||
| # Check if this is a source distribution. | ||
| # If not create the __version__ module containing the version | ||
| if not os.path.exists(os.path.join(root, 'PKG-INFO')): | ||
| fd = codecs.open(version_file, 'w', 'utf-8') | ||
| fd.write('version = %r\n' % os.getenv('VERSION', '?')) | ||
| fd.write('version = %r\n' % os.getenv('VERSION', version)) | ||
| fd.close() | ||
| # Load version | ||
|
|
||
| exec(open(version_file).read()) | ||
|
|
||
| # TODO: convert README.md to long_desc | ||
| # https://gist.github.com/aubricus/9184003#file-setup_snippet-py | ||
|
|
||
| HERE = pathlib.Path(__file__).parent | ||
|
|
||
| # The text of the README file | ||
| path = HERE/"README.md" | ||
|
|
||
| with path.open(mode='r') as fid: | ||
| README = fid.read() | ||
|
|
||
| setup(name='openrobertalab', | ||
| version=version, | ||
| description='lab.open-roberta.org connector for ev3dev.org', | ||
| long_description=README, | ||
| long_description_content_type='text/markdown', | ||
| author='Stefan Sauer', | ||
| author_email='[email protected]', | ||
| url='https://www.open-roberta.org/', | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding a version here is not good since I don't want to manually update it here. This is currently injectsed like this:
https://github.com/OpenRoberta/robertalab-ev3dev/blob/develop/debian/rules#L12
maybe it would be better to use None as a default and fail if it not importable from the environment.