Skip to content

Commit

Permalink
Merge pull request #133 from asottile/remove_unstable
Browse files Browse the repository at this point in the history
Remove support for unstable
  • Loading branch information
asottile committed Mar 10, 2016
2 parents c4a4f5b + 66e8c30 commit 3e4c44b
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import shutil
import sys
import tempfile
import time

from setuptools import Extension, setup

Expand Down Expand Up @@ -156,17 +155,6 @@ def version(sass_filename='sass.py'):
return node.value.s


def get_unstable_commit():
try:
with open('.unstable-release') as f:
return f.read().strip() or None
except (IOError, OSError):
return


unstable_commit = get_unstable_commit()


def readme():
try:
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
Expand Down Expand Up @@ -204,12 +192,11 @@ def run(self):


setup(
name='libsass' + ('-unstable' if unstable_commit else ''),
name='libsass',
description='SASS for Python: '
'A straightforward binding of libsass for Python.',
long_description=readme(),
version=version() + (time.strftime('.%Y%m%d.') + unstable_commit
if unstable_commit else ''),
version=version(),
ext_modules=[sass_extension],
packages=['sassutils'],
py_modules=['sass', 'sassc', 'sasstests'],
Expand Down

0 comments on commit 3e4c44b

Please sign in to comment.