diff --git a/creating-my-web.html b/creating-my-web.html index 8c896af..c51b711 100644 --- a/creating-my-web.html +++ b/creating-my-web.html @@ -139,9 +139,13 @@ clone and deploy it easily like this:
https://github.com/balkian/balkian.github.com cd balkian.github.com jekyll serve -w -I will keep updating this post with information about: * Some Jekyll -plugins that might be useful * What CSS tricks I learnt * The webfonts -I used * The badge on the left side of the page
+I will keep updating this post with information about:
+-[distutils] # this tells distutils what package indexes you can push to -index-servers = - pypi # the live PyPI - pypitest # test PyPI +
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 +13 | [distutils] # this tells distutils what package indexes you can push to
+index-servers =
+ pypi # the live PyPI
+ pypitest # test PyPI
[pypi] # authentication details for live PyPI
repository = https://pypi.python.org/pypi
@@ -136,8 +147,8 @@ memorability over describing the functionality.
[pypitest] # authentication details for test PyPI
repository = https://testpypi.python.org/pypi
username = { your_username }
-
-As you can see, you need to register both in the main pypi + |
As you can see, you need to register both in the main pypi repository and the testing server. @@ -145,6 +156,7 @@ The usernames and passwords might be different, that is up to you!
This should be the structure:
root-dir/ # Any name you want setup.py @@ -159,32 +171,48 @@ root-dir/ # Any name you want
-[metadata]
+
1 +2 | [metadata]
description-file = README.md
-
-The markdown README is the de facto standard in Github, but you can + |
The markdown README is the de facto standard in Github, but you can also use rST (reStructuredText), the standard in the python community.
{% highlight python %} from distutils.core import setup setup( name = -'mypackage', packages = ['mypackage'], # this must be the same as the -name above version = '{ version }', description = '{ description }', -author = '{ name }', author_email = '{ email }', url = -'https://github.com/{user}/{package}', # URL to the github repo -download_url = 'https://github.com/{user}/{repo}/tarball/{version}', -keywords = ['websockets', 'display', 'd3'], # list of keywords that -represent your package classifiers = [], ) {% endhighlight %}
-You might notice that the download_url points to a Github URL. We could +
1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 +10 +11 +12 | from distutils.core import setup
+
+setup(name = 'mypackage',
+ packages = ['mypackage'], # this must be the same as the name above
+ version = '{ version }',
+ description = '{ description }',
+ author = '{ name }',
+ email = '{ email }',
+ url = 'https://github.com/{user}/{package}', # URL to the github repo
+ download\_url = 'https://github.com/{user}/{repo}/tarball/{version}',
+ keywords = ['websockets', 'display', 'd3'], # list of keywords that represent your package
+ classifiers = [], )
+ |
You might notice that the download_url points to a Github URL. We could host our package anywhere, but Github is a convenient option. To create the tarball and the zip packages, you only need to tag a tag in your repository and push it to github:
--git tag {version} -m "{ Description of this tag/version}" +
1 +2 | git tag {version} -m "{ Description of this tag/version}"
git push --tags origin master
-
- |
The result can be seen here.
1 | mkvirtualenv -p /usr/bin/python3.3 eurolovemap
|
Since Heroku uses python 2.7 by default, we have to tell it which