|
1 |
| -import ast |
2 | 1 | import atexit
|
3 | 2 | import os.path
|
4 | 3 | import platform
|
@@ -169,24 +168,6 @@ def restore_cencode():
|
169 | 168 | )
|
170 | 169 |
|
171 | 170 |
|
172 |
| -def version(sass_filename='sass.py'): |
173 |
| - with open(sass_filename) as f: |
174 |
| - tree = ast.parse(f.read(), sass_filename) |
175 |
| - for node in tree.body: |
176 |
| - if isinstance(node, ast.Assign) and len(node.targets) == 1: |
177 |
| - target, = node.targets |
178 |
| - if isinstance(target, ast.Name) and target.id == '__version__': |
179 |
| - return node.value.s |
180 |
| - |
181 |
| - |
182 |
| -def readme(): |
183 |
| - try: |
184 |
| - with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f: |
185 |
| - return f.read() |
186 |
| - except OSError: |
187 |
| - pass |
188 |
| - |
189 |
| - |
190 | 171 | class upload_doc(distutils.cmd.Command):
|
191 | 172 | """Uploads the documentation to GitHub pages."""
|
192 | 173 |
|
@@ -237,53 +218,6 @@ def finalize_options(self):
|
237 | 218 |
|
238 | 219 |
|
239 | 220 | setup(
|
240 |
| - name='libsass', |
241 |
| - description='Sass for Python: ' |
242 |
| - 'A straightforward binding of libsass for Python.', |
243 |
| - long_description=readme(), |
244 |
| - version=version(), |
245 | 221 | ext_modules=[sass_extension],
|
246 |
| - packages=['sassutils'], |
247 |
| - py_modules=['pysassc', 'sass', 'sasstests'], |
248 |
| - package_data={ |
249 |
| - '': [ |
250 |
| - 'README.rst', |
251 |
| - 'test/*.sass', |
252 |
| - ], |
253 |
| - }, |
254 |
| - license='MIT License', |
255 |
| - author='Hong Minhee', |
256 |
| - author_email='minhee' '@' 'dahlia.kr', |
257 |
| - url='https://sass.github.io/libsass-python/', |
258 |
| - download_url='https://github.com/sass/libsass-python/releases', |
259 |
| - entry_points={ |
260 |
| - 'distutils.commands': [ |
261 |
| - 'build_sass = sassutils.distutils:build_sass', |
262 |
| - ], |
263 |
| - 'distutils.setup_keywords': [ |
264 |
| - 'sass_manifests = sassutils.distutils:validate_manifests', |
265 |
| - ], |
266 |
| - 'console_scripts': [ |
267 |
| - ['pysassc = pysassc:main'], |
268 |
| - ], |
269 |
| - }, |
270 |
| - classifiers=[ |
271 |
| - 'Development Status :: 5 - Production/Stable', |
272 |
| - 'Environment :: Web Environment', |
273 |
| - 'Intended Audience :: Developers', |
274 |
| - 'License :: OSI Approved :: MIT License', |
275 |
| - 'Operating System :: OS Independent', |
276 |
| - 'Programming Language :: C', |
277 |
| - 'Programming Language :: C++', |
278 |
| - 'Programming Language :: Python :: 3', |
279 |
| - 'Programming Language :: Python :: Implementation :: CPython', |
280 |
| - 'Programming Language :: Python :: Implementation :: PyPy', |
281 |
| - 'Programming Language :: Python :: Implementation :: Stackless', |
282 |
| - 'Topic :: Internet :: WWW/HTTP', |
283 |
| - 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', |
284 |
| - 'Topic :: Software Development :: Code Generators', |
285 |
| - 'Topic :: Software Development :: Compilers', |
286 |
| - ], |
287 |
| - python_requires='>=3.8', |
288 | 222 | cmdclass=cmdclass,
|
289 | 223 | )
|
0 commit comments