Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rename readme and use it from setuptools

Signed-off-by: lericson <ludvig@lericson.se>
  • Loading branch information...
commit 32d1ac3f7a43f454a9c6df868ec9d81e4a8850c8 1 parent 6adafeb
Johan Bergström jbergstroem authored committed

Showing 2 changed files with 12 additions and 72 deletions. Show diff stats Hide diff stats

  1. 0  README → README.rst
  2. +12 72 setup.py
0  README → README.rst
File renamed without changes
84 setup.py
... ... @@ -1,75 +1,16 @@
1   -"""\
2   -=========
3   -CleverCSS
4   -=========
  1 +import os
5 2
6   -CleverCSS is a small markup language for CSS inspired by Python that can be used
7   -to build a style sheet in a clean and structured way. In many ways it's cleaner
8   -and more powerful than CSS2 is.
  3 +f = open("README.rst")
  4 +try:
  5 + try:
  6 + readme_text = f.read()
  7 + except:
  8 + readme_text = ""
  9 +finally:
  10 + f.close()
9 11
10   -The most obvious difference to CSS is the syntax: it is indentation based and
11   -not flat. While this is obviously against the Python Zen, it's nonetheless a
12   -good idea for structural styles.
13   -
14   -
15   -Nutshell
16   -========
17   -
18   -To get an idea of how CleverCSS works you can see a small example below. Note
19   -the indentation based syntax and how you can nest rules::
20   -
21   - ul#comments, ol#comments:
22   - margin: 0
23   - padding: 0
24   -
25   - li:
26   - padding: 0.4em
27   - margin: 0.8em 0 0.8em
28   -
29   - h3:
30   - font-size: 1.2em
31   - p:
32   - padding: 0.3em
33   - p.meta:
34   - text-align: right
35   - color: #ddd
36   -
37   -Of course you can do the very same in CSS, but because of its flat nature the
38   -code would look more verbose. The following piece of code is the CleverCSS
39   -output of the above file::
40   -
41   - ul#comments,
42   - ol#comments {
43   - margin: 0;
44   - padding: 0;
45   - }
46   -
47   - ul#comments li,
48   - ol#comments li {
49   - padding: 0.4em;
50   - margin: 0.8em 0 0.8em;
51   - }
52   -
53   - ul#comments li h3,
54   - ol#comments li h3 {
55   - font-size: 1.2em;
56   - }
57   -
58   - ul#comments li p,
59   - ol#comments li p {
60   - padding: 0.3em;
61   - }
62   -
63   - ul#comments li p.meta,
64   - ol#comments li p.meta {
65   - text-align: right;
66   - color: #dddddd;
67   - }
68   -
69   -But that's only a small example of what you can do with CleverCSS. Have a look
70   -at the following documentation of CleverCSS for more details.
71   -"""
72 12 from distutils.core import setup
  13 +
73 14 setup(
74 15 name='CleverCSS',
75 16 author='Armin Ronacher',
@@ -78,9 +19,8 @@
78 19 url='http://sandbox.pocoo.org/clevercss/',
79 20 py_modules=['clevercss'],
80 21 description='funky css preprocessor dammit',
81   - long_description=__doc__,
  22 + long_description=readme_text,
82 23 classifiers=[
83 24 'License :: OSI Approved :: BSD License',
84   - 'Programming Language :: Python'
85   - ]
  25 + 'Programming Language :: Python']
86 26 )

0 comments on commit 32d1ac3

Please sign in to comment.
Something went wrong with that request. Please try again.